Matlab and Preserving Image Geometry to measure Distances

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Matlab and Preserving Image Geometry to measure Distances

Nick Rubert
I would like to write image files under Matlab, possibly individual images
and stacks.  I work with medical images and its important to me that I be
able to preserve information about lengths and areas in the file headers,
and that imageJ be able to automatically read in this information in order
to make measurements on the image.  Would anyone be able to tell me what
file formats I could use to accomplish this, with a minimum of programming
involved?  I know ImageJ reads in image dimensions well from DICOM files,
but I'm not working with images that have applicable DICOM headers written
for them.

Nick
Reply | Threaded
Open this post in threaded view
|

Re: Matlab and Preserving Image Geometry to measure Distances

Wayne Rasband
 > I would like to write image files under Matlab, possibly
 > individual images and stacks.  I work with medical images
 > and its important to me that I be able to preserve
 > information about lengths and areas in the file headers,
 > and that imageJ be able to automatically read in this
 > information in order to make measurements on the image.
 > Would anyone be able to tell me what file formats I could
 > use to accomplish this, with a minimum of programming
 > involved?  I know ImageJ reads in image dimensions well
 > from DICOM files, but I'm not working with images that have
 > applicable DICOM headers written for them.

ImageJ reads the dimensions (inches or centemeters) specified by the
X_RESOLUTION, Y_RESOLUTION and RESOLUTION_UNIT tags in the headers of
TIFF files.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: Matlab and Preserving Image Geometry to measure Distances

Nick Rubert
I am setting XResolution, Yresolution and ResolutionUnit fields in the TIFF
file headers and these fields simply aren't being read by imageJ.  I expect
that setting these fields should affect the numbers imageJ displays for
width and height, but this isn't the case.  Is this something that can be
easily patched?