[Brains-users] problem saving image

Eugene Zeien eugene-zeien at uiowa.edu
Thu Mar 9 07:14:51 PST 2006


You will need to replace ".dcm" with ".hdr".
The strictAnalyze filter is trying to strip this off the filename
to replace it with ".img.gz", or vice-versa ;-)

Nifti image names probably have to end with ".nii"...
Yep, I tried it.  save as Flair_raw.dcm fails,
save as Flair_raw.nii succeeds.

Laura Acion wrote:
> Hi everybody,
> 
> I am trying to save a raw image. I do the following
> 
> 
> compute2 104% brains2
> Parsing brains2 configuration file (/opt/brains2/bin/brains2rc).
> Parsing brains2 configuration file (/raid0/homes/lacion/.brains2rc).
> cor:GLX 
> DP(2):GLX_RGBA,GLX_RED_SIZE,8,GLX_GREEN_SIZE,8,GLX_BLUE_SIZE,8,GLX_ALPH
> A_SIZE,8,GLX_DEPTH_SIZE,16,GLX_DOUBLEBUFFER
> GLX 
> DP(2):GLX_RGBA,GLX_RED_SIZE,8,GLX_GREEN_SIZE,8,GLX_BLUE_SIZE,8,GLX_ALPHA_SIZ 
> 
> E,8,GLX_DEPTH_SIZE,16,GLX_DOUBLEBUFFER
> GLX 
> DP(2):GLX_RGBA,GLX_RED_SIZE,8,GLX_GREEN_SIZE,8,GLX_BLUE_SIZE,8,GLX_ALPHA_SIZ 
> 
> E,8,GLX_DEPTH_SIZE,16,GLX_DOUBLEBUFFER
> GLX 
> DP(2):GLX_RGBA,GLX_RED_SIZE,8,GLX_GREEN_SIZE,8,GLX_BLUE_SIZE,8,GLX_ALPHA_SIZ 
> 
> E,8,GLX_DEPTH_SIZE,16,GLX_DOUBLEBUFFER
> axi: sag:surf:b2 show viewer tracker
> sourcing: /opt/brains2/bin/scripts/iplTkScripts/ipltkfbox.tcl
> b2 hide viewer axi
> b2 show viewer axi
> b2 hide viewer cor
> b2 show viewer cor
> b2 hide viewer sag
> b2 show viewer sag
> b2 hide viewer surf
> b2 show viewer surf
> b2 hide viewer tracker
> b2 load Image 
> /IPLlinux/raid1/structural/bob_MR/0193323/2005.07.05_11.03/0014/MR
> _0014_0001.dcm data-type= unsigned-8bit
> Object loaded with filter: gdcm
> number of distinct pixel values: 671
> WARNING:  'b2 load image' is loading an image of type UNSIGNED_16BIT 
> into image
> memory of type UNSIGNED_8BIT.
> This will exercise voxel conversion logic that attempts to preserve the 
> nature o
> f the data as per the image file.
> b2 save image 
> /IPLlinux/raid1/structural/bob_MR/0193323/2005.07.05_11.03/10_ACPC
> /FLAIR_raw.dcm strictAnalyze75 i1 data-type= unsigned-8bit plane= coronal
> 
> I get the following
> 
> SIMPLE_ERROR Failed to write image to the specified filter Module 
> /scratch/hjohnson/src/brains2/src/iplKernel/bkrwImage.cxx Function 
> bk_saveImage Lines 2218 Code 123456789
> 
> I tried also a nifti format and the axial plane with similar errors. I 
> run it on compute2 and on my own computer with the same result.
> 
> any ideas?
> Thanks a lot for your help with this!
> Best wishes,
> Laura
> _______________________________________________
> Brains-users mailing list
> Brains-users at www.psychiatry.uiowa.edu
> http://www.psychiatry.uiowa.edu/mailman/listinfo/brains-users
> 




More information about the Brains-users mailing list