Login  Register

Re: what's the maximum image size ImageJ can open and process

Posted by Chris Mawata on Mar 10, 2011; 12:42am
URL: http://imagej.273.s1.nabble.com/what-s-the-maximum-image-size-ImageJ-can-open-and-process-tp3685418p3685425.html

True indeed. The twos complement representation costs you one of the 32
slots :(
Chris

On 3/8/2011 4:43 AM, Stephan Preibisch wrote:

> Unfortunately it is even only 2^31 as Java only supports signed integers...
>
> Nice greetings, Stephan
>
>
>
> Am 08.03.2011 um 03:13 schrieb Chris Mawata<[hidden email]>:
>
>> It is not the computer that is the issue. The language is defined to have
>> an int as a 32 bit number (whether the underlying operating system is
>> 8 bit or 64 bit does not matter). Since arrays are defined to be indexed
>> by ints you have that an individual array can not have more entries than
>> 2^32.
>> Chris
>>
>> On 3/7/2011 8:10 PM, Meng Jun wrote:
>>> Dear Saalfeld,
>>>
>>> Thank you for reply,  but the fact is that my computer is 64-bit system and FIJi is also 64-bit version.
>>> So the limit is also 2G?
>>>
>>> Thanks
>>>
>>> Best,
>>>
>>> Jun
>>>
>>>
>>>
>>>
>>>
>>> At 2011-03-07£¬"Stephan Saalfeld"<[hidden email]>   wrote:
>>>
>>>> Dear Jun,
>>>>
>>>> ImageJ can handle images with max 2G pixels in the plane (x,y) and 2G
>>>> slices shared by all remaining dimensions (c,z,t).  That limit is set by
>>>> using Java arrays that are addressed through 32bit signed integers.
>>>>
>>>> We have developed ( and are currently developing ) ImgLib, a generic
>>>> image processing library for Java, with one of its aims being to break
>>>> this size limit.  ImgLib does this by supporting a variety of strategies
>>>> to keep pixels in memory, one of them being a set of custom size cells
>>>> (that would mean max 2Gx2G pixels distributed freely among the
>>>> dimensions).
>>>>
>>>> Keep an eye on the ImageJ2 development that makes use of ImgLib for
>>>> storing pixel data.
>>>>
>>>> http://imagejdev.org
>>>>
>>>> Best,
>>>> Stephan
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, 2011-03-07 at 18:46 +0800, Meng Jun wrote:
>>>>> Hi ImageJ users and developers,
>>>>>
>>>>> I was doing my research about RGB image stitching with the courtesy of  FiJi's stitching  plugin of 1.45b version.
>>>>> However, when the final stitched image size greater than some size, say 2.6G, it displayed incorrectlly.
>>>>> What's more, I failed to save the image.
>>>>> Although it seemed that I managed to save it, however, when I checked the size, it showed as 1K!
>>>>> And when I tried to open it , the software got stuck.
>>>>> I  am  wondering that does this has any relationship with my computer's local video memory which is 2.5G.
>>>>> Therefore, I wanna know what's the maximum image size  ImageJ can open and process.
>>>>>
>>>>> Or, dose  anyone has an idea about this or has the same experience?
>>>>> Any advice will be appreciated.
>>>>> Thanks in advance.
>>>>>
>>>>> Best Regards.
>>>>>
>>>>> Jun
>>>>>