Login  Register

Open unrecognised stack

Posted by Michael Doube-2 on Apr 18, 2007; 10:44am
URL: http://imagej.273.s1.nabble.com/Open-unrecognised-stack-tp3699734.html

Hi all

I have some stacks that I'd like to open with ImageJ, more quickly than
having to go File->Import->Raw, and recovering stack dimensions with a
hex editor.

The recorded macro command goes like this:
run("Raw...", "open="+imagename+" image=8-bit width=900 height=160
offset=512 number=496 gap=0");

I can get the stack dimensions from the first 6 bytes of the header (512
B header) e.g. hex 84 03 A0 00 F0 01 = 900 x 160 x 496 pixels.

Is there a quick and dirty way to get the stack dimensions from the
header so that I can make a wee macro, or could a file opener plugin be
extended?

Cheers,

Mike

--
Michael Doube  BPhil BVSc MRCVS
PhD Student
Dental Institute
Queen Mary, University of London
New Rd
London  E1 1BB
United Kingdom

Phone +44 (0)20 7377 7000 ext 2681