AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
March 26, 2003 04:28PM
I'm afraid that BMP input to to3d is converted automatically to RGB, even if they are grayscale input images. If you have the latest version of the AFNI package, you could use 3dcalc to convert RGB to shorts using a command like

3calc -datum short -nscale -a rgb_dataset+orig -prefix short_dataset -expr "a"

Or you could convert your input RGB images to a byte-format PGM before running to3d, with a csh script like so

foreach z ( *.bmp )
bmptoppm $z | ppmtopgm > ${z}.pgm
end
to3d -geomparent rgb_dataset+orig *.pgm


bob cox
Subject Author Posted

to3d: RGB to Short

Sanghoon Ko March 26, 2003 10:44AM

Re: to3d: RGB to Short

bob cox March 26, 2003 04:28PM