Page 1 of 1

Bio-Formats in MATLAB on Windows

PostPosted: Wed Oct 31, 2012 4:12 pm
by dballvt
Hello,

I'm trying to save an OME-TIFF file composed of regular tiff files using Bio-Formats in MATLAB. This works fine on a Mac, but on Windows 7, when I download the latest loci_tools.jar, add it to the MATLAB static java path, and try running bfsave, I get the following error:

Argument 'dimensionOrder' failed validation with error:
Unsupported ARRAYFUN input type: ome.xml.model.enums.DimensionOrder[]

Error in ==> ZstackProcess_BF at 76
bfsave(out_im,im_file,meta_txt,'XYZCT');

Re: Bio-Formats in MATLAB on Windows

PostPosted: Thu Nov 01, 2012 2:52 pm
by sbesson
Hi,

may I ask what version of Matlab you were using under Windows 7? I was able to reproduce your bug but I am not sure if it is related to Windows or the Matlab version.

Sebastien

Re: Bio-Formats in MATLAB on Windows

PostPosted: Thu Nov 01, 2012 3:29 pm
by dballvt
The MATLAB version on the Windows 7 machine is R2010a. In case its helpful, the version on the Mac is R2011a.

Re: Bio-Formats in MATLAB on Windows

PostPosted: Thu Nov 01, 2012 3:38 pm
by sbesson
Thanks,

It looks like this is Windows-specific bug as this is a fairly recent Matlab version. I committed a fix which is available here.
Can you try again with this function and let me know if it works?

Sebastien

Re: Bio-Formats in MATLAB on Windows

PostPosted: Thu Nov 01, 2012 4:01 pm
by dballvt
yes, that function works in both Windows 7 & Mac.

Thanks!

Re: Bio-Formats in MATLAB on Windows

PostPosted: Fri Nov 02, 2012 2:39 pm
by sbesson
Great,

for your information, a pull request has been opened here in order to integrate this bug fix in the code.

Sebastien