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  

|
April 20, 2009 07:25PM
Hi,

I have a bunch of masks in normal space that I'm back-projecting to individual space. I've already obtained the transformation and I'm looping through the masks using 3dAllineate -1Dmatrix_apply.

The atlas masks are all byte-valued and the same (short-valued) master volume is being used, but the datatypes of the individualized masks produced varies. In at least one case it comes out float-valued, contrary to the behavior described in 3dAllineate -help: "Default=convert output dataset to data format of source dataset".

Any idea why this is happening?

3dAllineate has an option to force float output, but no corresponding options for forcing other datatypes. (Otherwise I'd just be utilitarian and force the expected behavior. :-p ) Could you consider this also a request that -float be replaced with a general -datum option, as exists with a few other AFNI progs?

Thanks,
Terry

P.S. Here's the output of 3dinfo on both the two atlas masks and the two resulting individual masks.


before back-projection
=================

[tjnycum@despo56 AAL]$ pwd
/home/despo/enhance/Atlases/AAL

[tjnycum@despo56 AAL]$ 3dinfo custom_MNI_drewVAC.hdr
++ 3dinfo: AFNI version=AFNI_2008_07_18_1710 (Jan 15 2009) [64-bit]
*+ WARNING: Autocentering datasets because AFNI_ANALYZE_AUTOCENTER is set
*+ WARNING: Assuming view is +orig.
++ To change view or silence this message,
++ Set AFNI_ANALYZE_VIEW to the proper view
++ in your .afnirc file.
++ e.g.: AFNI_ANALYZE_VIEW = orig
*+ WARNING: ANALYZE origin ignored in file custom_MNI_drewVAC.hdr
++ If datasets are out of alignment,
++ Set AFNI_ANALYZE_ORIGINATOR = YES
++ in your .afnirc file.

Dataset File: custom_MNI_drewVAC.img
Identifier Code: ANZ_YViXsaE7yjxyMtEGpkh2wg Creation Date: Mon Apr 20 15:38:37 2009
Dataset Type: MRI Anatomy (-anat)
Byte Order: LSB_FIRST {assumed} [this CPU native = LSB_FIRST]
Storage Mode: ANALYZE files
Storage Space: 902629 (903 thousand) bytes
Data Axes Tilt: Unspecified, assumed plumb
Data Axes Orientation:
first (x) = Left-to-Right
second (y) = Posterior-to-Anterior
third (z) = Inferior-to-Superior [-orient LPI]
R-to-L extent: -90.000 [R] -to- 90.000 [L] -step- 2.000 mm [ 91 voxels]
A-to-P extent: -108.000 [A] -to- 108.000 [P] -step- 2.000 mm [109 voxels]
I-to-S extent: -90.000 -to- 90.000 [S] -step- 2.000 mm [ 91 voxels]
Number of values stored at each pixel = 1
-- At sub-brick #0 '?' datum type is byte [*0.00392157]


[tjnycum@despo56 AAL]$ 3dinfo custom_MNI_drewVAC_L.hdr
++ 3dinfo: AFNI version=AFNI_2008_07_18_1710 (Jan 15 2009) [64-bit]
[...same Analyze env var warnings...]

Dataset File: custom_MNI_drewVAC_L.img
Identifier Code: ANZ_7xp0UGveaAh51Wd5hw8A2Q Creation Date: Mon Apr 20 15:38:50 2009
Dataset Type: MRI Anatomy (-anat)
Byte Order: LSB_FIRST {assumed} [this CPU native = LSB_FIRST]
Storage Mode: ANALYZE files
Storage Space: 902629 (903 thousand) bytes
[...same geometry...]
Number of values stored at each pixel = 1
-- At sub-brick #0 '?' datum type is byte [*0.00392157]



after back-projection
================

[tjnycum@despo81 AAL]$ 3dinfo /tmp/temp_1012_custom_MNI_drewVAC.nii
++ 3dinfo: AFNI version=AFNI_2008_07_18_1710 (Jan 15 2009) [32-bit]

Dataset File: /tmp/temp_1012_custom_MNI_drewVAC.nii
Identifier Code: PRN_mOlc6Ps3T7esvOIIuPPOuQ Creation Date: Mon Apr 20 15:33:56 2009
Dataset Type: Anat Bucket (-abuc)
Byte Order: LSB_FIRST {assumed} [this CPU native = LSB_FIRST]
Storage Mode: NIFTI file
Storage Space: 1228800 (1.2 million) bytes
Geometry String: "MATRIX(-2,0,0,78.1073,0,-2,0,107.072,0,0,2,-123.364):80,120,128"
Data Axes Tilt: Plumb
Data Axes Orientation:
first (x) = Left-to-Right
second (y) = Posterior-to-Anterior
third (z) = Inferior-to-Superior [-orient LPI]
R-to-L extent: -79.893 [R] -to- 78.107 [L] -step- 2.000 mm [ 80 voxels]
A-to-P extent: -130.928 [A] -to- 107.072 [P] -step- 2.000 mm [120 voxels]
I-to-S extent: -123.364 -to- 130.636 [S] -step- 2.000 mm [128 voxels]
Number of values stored at each pixel = 1
-- At sub-brick #0 '?' datum type is byte: 0 to 1

----- HISTORY -----
[tjnycum@bleeped: Mon Apr 20 15:33:56 2009] 3dAllineate -master /home/despo/enhance/MRIdata_subjects/TRSE//1012/afni/r1012_mprage+orig.nii -mast_dxyz 2 -1Dmatrix_apply /home/despo/enhance/MRIdata_subjects/TRSE//1012/afni/r1012_mprage_stripped_toAAL.aff12.1D -final NN -prefix /tmp/temp_1012_custom_MNI_drewVAC.nii -quiet custom_MNI_drewVAC.hdr


[tjnycum@despo81 AAL]$ 3dinfo /tmp/temp_1012_custom_MNI_drewVAC_L.nii
++ 3dinfo: AFNI version=AFNI_2008_07_18_1710 (Jan 15 2009) [32-bit]

Dataset File: /tmp/temp_1012_custom_MNI_drewVAC_L.nii
Identifier Code: PRN_Zy7Q2PnLemxm2-cmtbZ_3g Creation Date: Mon Apr 20 15:33:56 2009
Dataset Type: Anat Bucket (-abuc)
Byte Order: LSB_FIRST {assumed} [this CPU native = LSB_FIRST]
Storage Mode: NIFTI file
Storage Space: 4915200 (4.9 million) bytes
[...same geometry...]
Number of values stored at each pixel = 1
-- At sub-brick #0 '?' datum type is float: 0 to 1

----- HISTORY -----
[tjnycum@bleeped: Mon Apr 20 15:33:56 2009] 3dAllineate -master /home/despo/enhance/MRIdata_subjects/TRSE//1012/afni/r1012_mprage+orig.nii -mast_dxyz 2 -1Dmatrix_apply /home/despo/enhance/MRIdata_subjects/TRSE//1012/afni/r1012_mprage_stripped_toAAL.aff12.1D -final NN -prefix /tmp/temp_1012_custom_MNI_drewVAC_L.nii -quiet custom_MNI_drewVAC_L.hdr

Subject Author Posted

3dAllineate's output datatype not matching source

Terry Nycum April 20, 2009 07:25PM

Re: 3dAllineate's output datatype not matching source

Daniel Glen April 21, 2009 12:27PM