We're Hiring!

Bio-Formats in MATLAB on Windows

Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats
Please note:
Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats

If you are having trouble with image files, there is information about reporting bugs in the Bio-Formats documentation. Please send us the data and let us know what version of Bio-Formats you are using. For issues with your code, please provide a link to a public repository, ideally GitHub.

Bio-Formats in MATLAB on Windows

Postby dballvt » Wed Oct 31, 2012 4:12 pm

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');
dballvt
 
Posts: 24
Joined: Wed Jul 14, 2010 1:45 pm

Re: Bio-Formats in MATLAB on Windows

Postby sbesson » Thu Nov 01, 2012 2:52 pm

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
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm

Re: Bio-Formats in MATLAB on Windows

Postby dballvt » Thu Nov 01, 2012 3:29 pm

The MATLAB version on the Windows 7 machine is R2010a. In case its helpful, the version on the Mac is R2011a.
dballvt
 
Posts: 24
Joined: Wed Jul 14, 2010 1:45 pm

Re: Bio-Formats in MATLAB on Windows

Postby sbesson » Thu Nov 01, 2012 3:38 pm

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
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm

Re: Bio-Formats in MATLAB on Windows

Postby dballvt » Thu Nov 01, 2012 4:01 pm

yes, that function works in both Windows 7 & Mac.

Thanks!
dballvt
 
Posts: 24
Joined: Wed Jul 14, 2010 1:45 pm

Re: Bio-Formats in MATLAB on Windows

Postby sbesson » Fri Nov 02, 2012 2:39 pm

Great,

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

Sebastien
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest