Login  Register

Orthogonal Views Size Correction Possible?

Posted by Derek Xu on Sep 29, 2017; 1:42pm
URL: http://imagej.273.s1.nabble.com/Orthogonal-Views-Size-Correction-Possible-tp5019461.html

Hello all,

First time post for me! I'm new to this so please forgive any seemingly dumb
questions.

Normally Othrogonal Views works great for me, but now when I try and run it,
I get this error message:
 
Exception in thread "Orthogonal Views" java.lang.IllegalArgumentException:
Width (0) and height (1024) must be > 0
        at java.awt.image.SampleModel.<init>(SampleModel.java:126)
        at
java.awt.image.ComponentSampleModel.<init>(ComponentSampleModel.java:146)
        at
java.awt.image.PixelInterleavedSampleModel.<init>(PixelInterleavedSampleModel.java:87)
        at
java.awt.image.PixelInterleavedSampleModel.createCompatibleSampleModel(PixelInterleavedSampleModel.java:144)
        at ij.process.ImageProcessor.getIndexSampleModel(ImageProcessor.java:2404)
        at ij.process.ShortProcessor.createBufferedImage(ShortProcessor.java:129)
        at ij.process.ShortProcessor.createImage(ShortProcessor.java:94)
        at ij.ImagePlus.getImage(ImagePlus.java:483)
        at ij.ImagePlus.show(ImagePlus.java:421)
        at ij.ImagePlus.show(ImagePlus.java:401)
        at ij.plugin.Orthogonal_Views.updateViews(Orthogonal_Views.java:271)
        at ij.plugin.Orthogonal_Views.exec(Orthogonal_Views.java:730)
        at ij.plugin.Orthogonal_Views.run(Orthogonal_Views.java:969)
        at java.lang.Thread.run(Thread.java:745)

I'm not sure why this is happening - I have a suspicion it might be because
something went wrong with the metadata not aquiring the right information
from the software about the objective lens used, etc., as ImageJ seems to
think my image is meters in length, not microns.

Is there a way to set the size of the image somehow (I've already tried
Image>Adjust>Size... and Canvas size... to work around this but nothing has
worked so far. Can anything be done? Also, where exactly can I find the code
for Orthogonal Viewer?

Thanks for the help!

Best,
Derek



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html