Ij1 macro query to gather "true" uncompressed image size

for the life of me i cannot find a way to programatically query the size which appears in the status bar of the active image or stack (searches invariably turn up image size rather than storage/memory size).

the goal is to split large stacks into multiple smaller ones so that memory-intensive operations complete successfully. rather than divide by a static number, i’d rather base it on the actual memory encumbrance.

is there a way to do this?

thanks in advance,
ken

Upgrade to the latest ImageJ daily build (1.52u25) and you can get the size in bytes of the active image using

sizeInBytes = getValue("image.size");

2 Likes

wayne, you rock! tested and works great.

ken