Gap between images in ImportDialog is limited to 2^15-1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Gap between images in ImportDialog is limited to 2^15-1

Hidenao IWAI
Hi,

I found that gepBetweenImages in the "Import RAW" dialog is limited to Integer due to casting double to int in ImportDialog.java as follows,

int gapBetweenImages = (int)gd.getNextNumber();

I think it is helpful that an alert comes up when you input more than 2^15 in the input dialog,

Actually, I encountered this issue when I tried to "Import Raw" for a huge stack image (11000 x 10000 pixels/image, and stack size is 240,000 slices) with sampling images every 1000 slices.
It took time to figure out because the stack image ImportDialog opened seems to be good.

Best regards,
Hidenao Yamada

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Gap between images in ImportDialog is limited to 2^15-1

Wayne Rasband-2
> On Feb 12, 2019, at 8:00 AM, Hidenao Yamada <[hidden email]> wrote:
>
> Hi,
>
> I found that gepBetweenImages in the "Import RAW" dialog is limited to Integer due to casting double to int in ImportDialog.java as follows,
>
> int gapBetweenImages = (int)gd.getNextNumber();

In the latest ImageJ daily build (1.42m14), gapBetweenImages is a long.

> I think it is helpful that an alert comes up when you input more than 2^15 in the input dialog,
>
> Actually, I encountered this issue when I tried to "Import Raw" for a huge stack image (11000 x 10000 pixels/image, and stack size is 240,000 slices) with sampling images every 1000 slices.

Do you really have a 24 terabyte stack? Are there disks that large?

  (11000*10000*240000)/(1024*1024*1024*1024) = 24.01


> It took time to figure out because the stack image ImportDialog opened seems to be good.
>
> Best regards,
> Hidenao Yamada

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Gap between images in ImportDialog is limited to 2^15-1

Hidenao IWAI
In reply to this post by Hidenao IWAI
Hi, Wayne

Sorry, I missed the type.
Correctly, the image size is 1100 x 10000 x 240000 bytes = 2.4TB

Beset,
Hidenao

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Gap between images in ImportDialog is limited to 2^15-1

Hidenao IWAI
In reply to this post by Hidenao IWAI
Hi Wayne,

I did try the daily build (1.52m16)
It works well !!  Now I can sample images correctly.

Thank you again.

Best regards,
Hidenao Yamada

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