matlab piece of code with java translator! ! ! Jiji Ji! ! !

Category: Eclipse
 
buliti
2013-08-20 05:04:54

Sponsored Links
fid = fopen (filename, 'r');% open file
file_point = fseek (fid, -512 * 512 * 2, 'eof'); % Set pointer at the end of file 512 * 512 * 2 Bytes
Image = zeros (512,512);% Define Image Array: 512 ; X 512
[C, count_C] = fread (fid, [512,512], 'uint16');% read matrix data
fclose (fid);

Image = C ';% get CCD Image ; Matrix, The command for display: imagesc (......)

IMG file which is read and displayed a piece of code, matlab Lane, how to write with java it, I wrote out the images are always displayed weird. Please expert help! ! !

Sponsored Links

Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.