register T1 image to MNI space and compute the transformation matrix
then take the inverse of that matrix
apply registration using inverse matrix to AAL atlas and tranform it into my subject space (T1 space)
now i am overlapping mask (tumor mask) with this atlas based image
tumor mask has three different labels. but in AAL atlas space intensity values has been changed so how i can get three different ROI based on tumor mask?
I think there may actually be two separate questions embedded in one statement:
transform it into my subject space … intensity values has been changed
mask (tumor mask) … how i can get three different ROI based on tumor mask?
@maxpietsch’s response addresses specifically point 1: If you have an image that contains unique integer labels, you need to use nearest-neighbour interpolation at the re-gridding step in order to preserve those values.
For point 2, it sounds like you have a single input parcellation image, containing more than one unique integer label, and you instead wish to have multiple mask images, where each image contains only those voxels corresponding to one specific parcel index. If this is the case, this is a separate step to the rest of the question, so got lost in communication. What you want in this case is the -eq operator in mrcalc. E.g. If you want a mask image that contains only those voxels where the value in the parcellation image is 3: