[ome-devel] OME.tiff with FLIM time gates that are not equally spaced in time

Munro, Ian i.munro at imperial.ac.uk
Mon Jul 30 20:48:04 BST 2018


Hi All

Since sending the mail below Romain has been in touch to say
“ There’s just a small problem is that I think it doesn’t overwrite files properly when there’s already a file with the same name.
I got some weird results doing that so I made sure they’re created each time."

This suggests  that a the problem of overwriting existing files, addressed by the 2nd of the 2 code snippets below, remains an issue.
My feeling is that this should be addressed in either the bio-formats Matlab plugin or at an even lower level?

What does the OME team think?

Best Wishes

Ian





On 17 Jul 2018, at 13:20, Munro, Ian <i.munro at imperial.ac.uk<mailto:i.munro at imperial.ac.uk>> wrote:

Hi Romain

Attached is a little Matlab script to create a FLIM OME-TIFF.
The first section just creates some dummy data.
The second part (after the tic at line 28) uses the bio-formats Matlab plugin to write this to a file.
Note that the variable “delays’ can contain any strings not just the regularly spaced ones used here.

This is quite old code now so maybe someone from the core OME team could have a quick look and see if it’s still ok?
In particular this line:

java.lang.System.setProperty('javax.xml.transform.TransformerFactory', 'com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl’);

may no longer be required.
Also we used to have problems when overwriting existing files. If this has since been addressed,
then this section:

if exist(outputPath, 'file') == 2
    delete(outputPath);
end

May no longer be required.
Hope that helps.

Best wishes.

Ian




<save_as_OMEtiff_Synthetic_Gated.m>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20180730/cb5735c3/attachment.html>


More information about the ome-devel mailing list