fid=fopen('Capture_4.sfc','r');Note that this code was only tested with images directly saved after capture without any edits.
% read width and height informationfseek(fid,11,'bof');
Width = fread(fid,1,'uint32=>uint32')
Height = fread(fid,1,'uint32=>uint32')
% read the imagefseek(fid,273,'bof');
rgb=fread(fid,Width*Height*3,'uint8=>uint8');
fclose(fid);
% reshape 1xN vector to Width x Height x 3 (RGB) vectorrgb=permute(reshape(rgb,3,Width,Height),[3,2,1]);
image(rgb);
Electrical engineering, electronics, semiconductors, computer science, programming, and others.
Dienstag, 26. April 2011
Motic Microscope Camera SFC File Format
The Motic Microscope Camera software stores all images in their proprietary file format with extension ".sfc". Tthis simply contains binary pixel data. It can be viewed with Matlab with the following commands:
Abonnieren
Kommentare zum Post (Atom)
Keine Kommentare:
Kommentar veröffentlichen