<div dir="ltr">Hi Michael,<br><br> This is actually potentially some good news.<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Description: itk::ERROR: SCIFIOImageIO(0x9fa1ef8): Unknown pixel type: 0<br>
</blockquote><div id=":1m0" class=""><br></div><div id=":1m0" class="">This was the <a href="http://review.source.kitware.com/#/c/15092/">bug I found yesterday</a>. It is fixed on the latest master.<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Could I set some parameter using the itkSCIFIOImageIOTest utility?<br>
Where would I find some information about this?<br></blockquote><br></div><div id=":1m0" class="">Run itkSCIFIOImageIOTest with no params and it will print out all the possible options. You might want to try -w to get it to use the Bio-Formats writers for conversion. You also will want to set the # dimensions, pixel type, etc.. to match your dataset I believe, which could be why it failed on your .jpg.<br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">When I try to explicit instantiate an IO class like e.g.:<br>
ImageIOType::Pointer scifioIO = ImageIOType::New();<br>
writer->SetImageIO( scifioIO );<br></blockquote><br></div><div id=":1m0" class="">You might want to take a look at the <a href="https://github.com/scifio/scifio-imageio/blob/master/test/itkSCIFIOImageIOTest.cxx#L45">itkSCIFIOImageIOTest source</a>. It sounds like you're trying to do the same thing, right?<br>
</div><div id=":1m0" class=""><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
I've rebuilt and get the same error when trying to read the<br>
single-channel.ome.tif dataset with my little program which<br></blockquote><br></div><div id=":1m0" class="">OK! Back to the original problem. So I apologize, but I misunderstood your question.. I didn't realize this was coming up in a program you wrote (I thought it was in the itkSCIFIOImageIOTest). So can you share the code from your program that uses the SCIFIOImageIO? It looks like, however it's being used, the Java-side Bio-Formats reader isn't being initialized properly. This should be easy to fix, I just need to be able to reproduce the issue, to see if it's a bug in your code, or either the C++ or Java portions of the SCIFIOImageIO.<br>
<br>Thanks!<br></div><div id=":1m0" class="">Mark<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 11, 2014 at 12:20 AM, Michael Meuli <span dir="ltr"><<a href="mailto:michael.meuli@gmail.com" target="_blank">michael.meuli@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mark<br>
<br>
I've rebuilt and get the same error when trying to read the<br>
single-channel.ome.tif dataset with my little program which is the<br>
same whether JAVA_HOME is unset or set to e.g.<br>
"/home/michael/Colocalization/ITK-4.5.1-build/lib/jre":<br>
<div class=""><br>
Problem encoutered while reading image file : single-channel.ome.tif<br>
<br>
</div>itk::ExceptionObject (0x8c280e0)<br>
<div class="">Location: "unknown"<br>
File: /home/michael/Colocalization/ITK-4.5.1-build/Modules/Remote/SCIFIO/src/itkSCIFIOImageIO.cxx<br>
Line: 180<br>
</div>Description: itk::ERROR: SCIFIOImageIO(0x8c26fb0): SCIFIOImageIO<br>
<div class="">exited abnormally. Exception in thread "main"<br>
java.lang.IllegalStateException: ImageReader.getSeries: Current file<br>
should not be null; call setId(String) first<br>
at loci.formats.FormatTools.assertId(FormatTools.java:724)<br>
at loci.formats.ImageReader.getReader(ImageReader.java:200)<br>
at loci.formats.ImageReader.getSeries(ImageReader.java:441)<br>
at loci.formats.ReaderWrapper.getSeries(ReaderWrapper.java:343)<br>
at loci.scifio.itk.SCIFIOITKBridge.executeCommand(SCIFIOITKBridge.java:116)<br>
at loci.scifio.itk.SCIFIOITKBridge.executeCommand(SCIFIOITKBridge.java:108)<br>
at loci.scifio.itk.SCIFIOITKBridge.waitForInput(SCIFIOITKBridge.java:83)<br>
at loci.scifio.itk.SCIFIOITKBridge.executeCommand(SCIFIOITKBridge.java:161)<br>
at loci.scifio.itk.SCIFIOITKBridge.main(SCIFIOITKBridge.java:693)<br>
<br>
<br>
</div>Trying to read/write the single-channel.ome.tif dataset with the<br>
itkSCIFIOImageIOTest utility I get the following error:<br>
<br>
reader->GetUseStreaming(): 1<br>
done checking streaming usage<br>
ITK test driver caught an ITK exception:<br>
<br>
itk::ExceptionObject (0x9faaf70)<br>
Location: "unknown"<br>
File: /home/michael/Colocalization/ITK-4.5.1-build/Modules/Remote/SCIFIO/src/itkSCIFIOImageIO.cxx<br>
Line: 780<br>
Description: itk::ERROR: SCIFIOImageIO(0x9fa1ef8): Unknown pixel type: 0<br>
<br>
<br>
Trying to read/write a .jpg file to a .tif file with the<br>
itkSCIFIOImageIOTest utility I don't really get an error but a black<br>
picture:<br>
<br>
reader->GetUseStreaming(): 1<br>
done checking streaming usage<br>
Notes:<br>
<br>
<br>
Could I set some parameter using the itkSCIFIOImageIOTest utility?<br>
Where would I find some information about this?<br>
<br>
When I try to explicit instantiate an IO class like e.g.:<br>
ImageIOType::Pointer scifioIO = ImageIOType::New();<br>
writer->SetImageIO( scifioIO );<br>
<br>
I get the following compile time error:<br>
'SCIFIOImageIO' in namespace 'itk' does not name a type<br>
typedef itk::SCIFIOImageIO ImageIOType<br>
<br>
Will this be different in ITK 4.6.0? (as I can see it there in Doxygen<br>
but not in ITK 4.5.1)<br>
<br>
<br>
Thanks a lot<br>
<span class="HOEnZb"><font color="#888888">Michael<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 10 April 2014 19:43, Mark Hiner <<a href="mailto:hinerm@gmail.com">hinerm@gmail.com</a>> wrote:<br>
> Hi Michael,<br>
><br>
> I just updated the Java-side handling of null readers/ids. I couldn't<br>
> reproduce your exact issue, but it did look like there was the potential for<br>
> an unintended state that would cause the null id error you said.<br>
><br>
> Could you clear your /build directory and rebuild? (this will trigger a<br>
> download of the latest Java code) Then try again with the unset JAVA_HOME.<br>
><br>
>> /home/michael/Colocalization/ITK-4.5.1-build/lib/jre/bin<br>
><br>
><br>
> As a side note, I believe you need to set JAVA_HOME to the base of your java<br>
> directory (e.g. just<br>
> "/home/michael/Colocalization/ITK-4.5.1-build/lib/jre"). At least on OSX<br>
> 10.8.5, if I set include the /bin sub-directory, it doesn't actually<br>
> discover Java (slightly counter-intuitive if you're used to adding stuff to<br>
> your PATH). So you could try again with the distributed JRE as well.<br>
><br>
> For what it's worth, I am able to read/write the single-channel.ome.tif<br>
> dataset with the itkSCIFIOImageIOTest utility, on OSX with java 1.6.0_45.<br>
><br>
> Let us know how it goes!<br>
><br>
> Thanks,<br>
> Mark<br>
><br>
><br>
><br>
><br>
><br>
><br>
> On Thu, Apr 10, 2014 at 11:48 AM, Mark Hiner <<a href="mailto:hinerm@gmail.com">hinerm@gmail.com</a>> wrote:<br>
>><br>
>> Hi Michael,<br>
>><br>
>><br>
>>> I guess I just have to install the appropriate plug-in, as my format<br>
>>> is not listed here:<br>
>>> <a href="https://github.com/scifio/scifio" target="_blank">https://github.com/scifio/scifio</a><br>
>><br>
>><br>
>> I just wanted to let you know that the SCIFIOImageIO always checks formats<br>
>> using Bio-Formats. So there are no extra plugins you need to install; you<br>
>> were using it correctly (assuming your Java version is compatible).<br>
>><br>
>> Anyway, this looks like there could be legitimate bugs coming from Java<br>
>> land. I filed an issue for it, although I haven't been able to reproduce it<br>
>> yet as I am having a completely different issue regarding pixel types right<br>
>> now.<br>
>><br>
>> Once I can better reproduce/resolve these issues I'll let you know.<br>
>><br>
>> Thanks,<br>
>> Mark<br>
>><br>
>><br>
>><br>
>> On Thu, Apr 10, 2014 at 2:42 AM, Michael Meuli <<a href="mailto:michael.meuli@gmail.com">michael.meuli@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Hi Matt,<br>
>>><br>
>>> I'm sorry for my presumably stupid questions.<br>
>>> I guess I just have to install the appropriate plug-in, as my format<br>
>>> is not listed here:<br>
>>> <a href="https://github.com/scifio/scifio" target="_blank">https://github.com/scifio/scifio</a><br>
>>> (Didn't figure out yet how but I guess I eventually will)<br>
>>><br>
>>> Best regards and thanks again,<br>
>>> Michael<br>
>>><br>
>>> On 9 April 2014 22:14, Michael Meuli <<a href="mailto:michael.meuli@gmail.com">michael.meuli@gmail.com</a>> wrote:<br>
>>> > Hi Matt,<br>
>>> ><br>
>>> > If JAVA_HOME is unset:<br>
>>> ><br>
>>> > Problem encoutered while reading image file : single-channel.ome.tif<br>
>>> ><br>
>>> > itk::ExceptionObject (0x81520e0)<br>
>>> > Location: "unknown"<br>
>>> > File:<br>
>>> > /home/michael/Colocalization/ITK-4.5.1-build/Modules/Remote/SCIFIO/src/itkSCIFIOImageIO.cxx<br>
>>> > Line: 180<br>
>>> > Description: itk::ERROR: SCIFIOImageIO(0x8150fb0): SCIFIOImageIO<br>
>>> > exited abnormally. Exception in thread "main"<br>
>>> > java.lang.IllegalStateException: ImageReader.getSeries: Current file<br>
>>> > should not be null; call setId(String) first<br>
>>> > at loci.formats.FormatTools.assertId(FormatTools.java:724)<br>
>>> > at loci.formats.ImageReader.getReader(ImageReader.java:200)<br>
>>> > at loci.formats.ImageReader.getSeries(ImageReader.java:441)<br>
>>> > at loci.formats.ReaderWrapper.getSeries(ReaderWrapper.java:343)<br>
>>> > at<br>
>>> > loci.scifio.itk.SCIFIOITKBridge.executeCommand(SCIFIOITKBridge.java:116)<br>
>>> > at<br>
>>> > loci.scifio.itk.SCIFIOITKBridge.executeCommand(SCIFIOITKBridge.java:108)<br>
>>> > at<br>
>>> > loci.scifio.itk.SCIFIOITKBridge.waitForInput(SCIFIOITKBridge.java:83)<br>
>>> > at<br>
>>> > loci.scifio.itk.SCIFIOITKBridge.executeCommand(SCIFIOITKBridge.java:161)<br>
>>> > at loci.scifio.itk.SCIFIOITKBridge.main(SCIFIOITKBridge.java:693)<br>
>>> ><br>
>>> > Thanks,<br>
>>> > Michael<br>
>>> ><br>
>>> > On 8 April 2014 20:19, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>><br>
>>> > wrote:<br>
>>> >> Hi Michael,<br>
>>> >><br>
>>> >> If JAVA_HOME is unset?<br>
>>> >><br>
>>> >> Thanks,<br>
>>> >> Matt<br>
>>> >><br>
>>> >> On Tue, Apr 8, 2014 at 1:57 PM, Michael Meuli<br>
>>> >> <<a href="mailto:michael.meuli@gmail.com">michael.meuli@gmail.com</a>> wrote:<br>
>>> >>> Hi Matt,<br>
>>> >>><br>
>>> >>> Thanks a lot.<br>
>>> >>> I set JAVA_HOME to<br>
>>> >>> "/home/michael/Colocalization/ITK-4.5.1-build/lib/jre/bin" and still<br>
>>> >>> get the same error.<br>
>>> >>><br>
>>> >>> Thanks again,<br>
>>> >>> Michael<br>
>>> >>><br>
>>> >>><br>
>>> >>><br>
>>> >>><br>
>>> >>> On 7 April 2014 22:10, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>><br>
>>> >>> wrote:<br>
>>> >>>> Hi Michael,<br>
>>> >>>><br>
>>> >>>> Does it work with the JRE distributed with the module? I do not<br>
>>> >>>> think<br>
>>> >>>> Java 8 has been tested yet.<br>
>>> >>>><br>
>>> >>>> Thanks,<br>
>>> >>>> Matt<br>
>>> >>>><br>
>>> >>>> On Mon, Apr 7, 2014 at 3:34 PM, Michael Meuli<br>
>>> >>>> <<a href="mailto:michael.meuli@gmail.com">michael.meuli@gmail.com</a>> wrote:<br>
>>> >>>>> Hi,<br>
>>> >>>>><br>
>>> >>>>> I'm trying to read the test image "single-channel.ome.tif" from<br>
>>> >>>>><br>
>>> >>>>> <a href="http://www.openmicroscopy.org/site/support/ome-model/ome-tiff/data.html" target="_blank">http://www.openmicroscopy.org/site/support/ome-model/ome-tiff/data.html</a><br>
>>> >>>>> JAVA_HOME is set to "/usr/lib/jvm/java-8-oracle/jre/bin/java"<br>
>>> >>>>> Running "SCIFIOTestDriver itkSCIFIOImageIOTest" gives me a very<br>
>>> >>>>> similar error.<br>
>>> >>>>> I'm running Ubuntu 13.10 32bit with ITK-4.5.1<br>
>>> >>>>><br>
>>> >>>>> Below is the text of the error message:<br>
>>> >>>>><br>
>>> >>>>> Problem encoutered while reading image file :<br>
>>> >>>>> /home/michael/Colocalization/Data/single-channel.ome.tif<br>
>>> >>>>><br>
>>> >>>>> itk::ExceptionObject (0x8e283f0)<br>
>>> >>>>> Location: "unknown"<br>
>>> >>>>> File:<br>
>>> >>>>> /home/michael/Colocalization/ITK-4.5.1-build/Modules/Remote/SCIFIO/src/itkSCIFIOImageIO.cxx<br>
>>> >>>>> Line: 408<br>
>>> >>>>> Description: itk::ERROR: SCIFIOImageIO(0x8e27000): SCIFIOImageIO:<br>
>>> >>>>> ITKReadImageInformation error:<br>
>>> >>>>> Not a directory<br>
>>> >>>>><br>
>>> >>>>><br>
>>> >>>>> Many thanks<br>
>>> >>>>> Michael<br>
>>> >>>>><br>
>>> >>>>> _______________________________________________<br>
>>> >>>>> Community mailing list<br>
>>> >>>>> <a href="mailto:Community@itk.org">Community@itk.org</a><br>
>>> >>>>> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
>>> >>>>><br>
>><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div>