Orthogonal Views Size Correction Possible?

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.(SampleModel.java:126)
at
java.awt.image.ComponentSampleModel.(ComponentSampleModel.java:146)
at
java.awt.image.PixelInterleavedSampleModel.(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
Image>Adjust>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

Good day Derek Xu,

obviously this is a crosspost to/from the ImageJ-list.

Please study the ImageJ User Guide:
https://imagej.nih.gov/ij/docs/guide/146-30.html

The section about “Set Scale…” should be of special importance:
https://imagej.nih.gov/ij/docs/guide/146-30.html#toc-Subsection-30.8

Regards

Herbie