Posted by
Gabriel Landini on
Mar 20, 2014; 8:59pm
URL: http://imagej.273.s1.nabble.com/Losing-Metadata-Headers-tp5006962p5007021.html
On Thursday 20 Mar 2014 14:33:38 you wrote:
> To test this, I manually added metadata to a blank image (taking Metamorph
> out of the picture). Still the same result. The manually added metadata
> still did not get passed to subsequent images.
>
> This seems like a bug to me. I can't envision a situation where passing the
> header information from image to image would not be beneficial.
I can think of 3:
Confidential/patient data gets transmitted to other images without anybody
noticing it (like the infamous Word document "properties") and ends up
posted all over the net.
Metadata is inaccurate after processing the image (resolution, bit depth,
calibration, size). You send the image to somebody else and they make wrong
assumptions about the image.
Metadata could make images larger when it is not needed.
Despite that, I see the benefit to transfer metadata when you want it, and you
are sure it is accurate, so a better solution would be to have a command that
copies the metadata from one image into another.
There are already commands for this, not sure if they do what you want:
getMetadata("Info")
Returns the metadata (a string) from the "Info" property of the current image.
With DICOM images, this is the information (tags) in the DICOM header. See
also: setMetadata.
getMetadata("Label")
Returns the current slice label. The first line of the this label (up to 60
characters) is display as part of the image subtitle. With DICOM stacks,
returns the metadata from the DICOM header. See also: setMetadata.
setMetadata("Info", string)
Assigns the metadata in string to the "Info" image property of the current
image. This metadata is displayed by Image>Show Info and saved as part of the
TIFF header. See also: getMetadata.
setMetadata("Label", string)
Sets string as the label of the current image or stack slice. The first 60
characters, or up to the first newline, of the label are displayed as part of
the image subtitle. The labels are saved as part of the TIFF header. See also:
getMetadata.
Hope this helps.
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html