External Email - Use Caution Dear All,
I found the cause if the shift I observed: I was cropping/uncropping image to speed up and my uncropping had a bug. FreeSurfer is OK. Thank you, Roman ________________________________ From: freesurfer-boun...@nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of Roman Fleysher <roman.fleys...@einsteinmed.org> Sent: Tuesday, February 23, 2021 12:59 PM To: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu> Subject: Re: [Freesurfer] segmentation is shifted with respect to NIFTI T1W CAUTION: This email comes from an external source; the attachments and/or links may compromise our secure environment. Do not open or click on suspicious emails. Please click on the “Phish Alert” button on the top right of the Outlook dashboard to report any suspicious emails. External Email - Use Caution Dear Douglas, Dear All, Trying to investigate the shift, I used the same pair of commands to convert several mgz files back to NIFTI and overlay on the original input T1W image. Some sort of mismatch begins with the orig.mgz file. I see small local compressions and stretches. Since this is the image that will be subsequently segmented, segmentation will not match input T1W image. Subsequent files: nu.mgz, T1.mgz and brainmask.mgz carry over distorted (compared to input) orig.mgz but appropriately modify intensity and masking as expected. However, I do not see overall 1 pixel shift in y-axis compared to the input image. This leads me to believe MGZ to NIFTI conversion is not the cause of the shift per se because I assume orientation information inside aseg.mgz is the same as in the other files. This of course could be wrong as I do not know details. Thank you, Roman ________________________________ From: freesurfer-boun...@nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of Roman Fleysher <roman.fleys...@einsteinmed.org> Sent: Tuesday, February 23, 2021 10:54 AM To: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu> Subject: Re: [Freesurfer] segmentation is shifted with respect to NIFTI T1W CAUTION: This email comes from an external source; the attachments and/or links may compromise our secure environment. Do not open or click on suspicious emails. Please click on the “Phish Alert” button on the top right of the Outlook dashboard to report any suspicious emails. External Email - Use Caution Thank you, Douglas. Then, fsroi as a work around is also right solution? I do not know what causes the issue: initial conversion of T1W from NIFTI to mgz, segmentation itself or transfer back to NIFTI. I do not know if other files (say brain mask) have the same issue. Looking into these. Roman ________________________________ From: freesurfer-boun...@nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of Douglas N. Greve <dgr...@mgh.harvard.edu> Sent: Tuesday, February 23, 2021 10:04 AM To: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu> Subject: Re: [Freesurfer] segmentation is shifted with respect to NIFTI T1W Those commands look right On 2/23/2021 9:27 AM, Roman Fleysher wrote: External Email - Use Caution Dear FreeSurfers, I am working with version 6, starting point is T1W image in NIFTI format. I typically transform segmentations back to native space in NIFTI format to be able to use other software (FSL and such). I noticed that segmentation is shifted by 1 pixel in one axis (y-axis). Mapping of segmentation is a two step process based on description in: MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be http://secure-web.cisco.com/14DqM_rQcbBn-nGEgc8ERSOlJDS5XCBOGcawvkrGbrLRtlGnyDBbW_-Aps2pM373UKgAGqUvTO4CL9A320ZkZGTrVmzg3I95zKaGsLdIZUzL-beTAOU18HRh3TNe1pVWhROdUB3q-0hEGkwIasyfZuHIQnjT8VzKzh_8ca2H2C9UJyI0fQ0oftOM7siUgDEkHVm-CCw7cpmqhdyyILRmX1aShahGbfgtlKFVTTOkVT10sOLLVUoPqK087gXunpLrLnbX4aCdj7YrfyM5HPHeBdw/http%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FFsAnat-to-NativeAnat<https://secure-web.cisco.com/1vN2HxUY5rQDdZUNdCQLvt5GG_BRtU6gTTACn32HfHKlBFtnwMCPoBg-IJI47eO_oW8atrEAo5b1tkd8EaViOUXLO6JfyAFwuv27g1rxBmiX3G7CH6AH8fUC4crXftNOMGVZcWAklewK5cs9OHWAnGw30DpkhcEb7zoNrort637_r4oIY6NGqXEXfeKbQc5zDuWXQWqE3KEbpTrXreyEskw/https%3A%2F%2Fnam04.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fsecure-web.cisco.com%252F1jZuSP6cdoMR28ZcTVnbcQ1PyizjSptahoQLgOekpRTyM8btHfhHcWcS7trC1OEXOvJ0p9MgILUHrffv33usd8AfFkrM6og4Sj92b_yCdsjNa1lsYgk5XvBVID8LWF0T2RY_WPHHL9eNPdPlfraPAhnVd5MBgJkb7hmYFhqE2_dMlFE6cKkVmZ5riYljnWmMH2mTjrAxU--4PVkPl_ZeIxw%252Fhttps%25253A%25252F%25252Fnam04.safelinks.protection.outlook.com%25252F%25253Furl%25253Dhttps%2525253A%2525252F%2525252Fsecure-web.cisco.com%2525252F1M4_ta3a2E5acZ9MeCgdLAgXc5emUi67iMNoqwkgtSyOERQZ1Gao59UhITHk05fdYZljFPYQWY5qP92eCfFPDAreu04zKXTczeazf_-xJevbYIy4dz5fteci8V2C0pv3TQXSKs0_8ZLGv45knCnDieqvCd_k8l_0_vEB32--DUk4yfqjcMpz0Pdy7VdXeZ9IkQ3RxJua2dsf9EsFXSc3OGeFLSQDeurK_cWZSxBjReN6QKRS-vbDq5tmbaPD1KEP5LZgFXgIcn7qyGn65ZTZNIA%2525252Fhttps%252525253A%252525252F%252525252Fnam04.safelinks.protection.outlook.com%252525252F%252525253Furl%252525253Dhttp%25252525253A%25252525252F%25252525252Fsecure-web.cisco.com%25252525252F1OQ80xn8YGeWjUO2KyO4RDGDpL87LZ0EBpX6Z7_yDHTAQnUvI_i-ZbX3oYGnWNGBEv3FGrWEfu7Q0-EGZNpUg5oWefQhW2PyflL-E_EDawtfFyF3JoxX9ejxMQcJ_IO4g-glHmBjogdC6b5ZDBj12aMiOPktjP3Q4et2CD9zxjZvyHw4RmulypFF1W7xr921ryGHf1Xcg23EWcl4SQf5PZRnflYvp9NMjHufQ237e-27rWqRrlssP2RVE8NKaUYSS1jXZXdgg9PzheIilaEj7MQ%25252525252Fhttp%2525252525253A%2525252525252F%2525252525252Fsurfer.nmr.mgh.harvard.edu%2525252525252Ffswiki%2525252525252FFsAnat-to-NativeAnat%2525252526data%252525253D04%25252525257C01%25252525257Croman.fleysher%252525252540einsteinmed.org%25252525257C96f9faa2bbde40007d7d08d8d80c756f%25252525257C9c01f0fd65e040c089a82dfd51e62025%25252525257C0%25252525257C0%25252525257C637496895306922337%25252525257CUnknown%25252525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%25252525253D%25252525257C1000%2525252526sdata%252525253DSaDVFX8UuiG80gySc8K%25252525252BpaonYXdKE%25252525252F1hhjGoEtGTG%25252525252Fg%25252525253D%2525252526reserved%252525253D0%252526data%25253D04%2525257C01%2525257Croman.fleysher%25252540einsteinmed.org%2525257C74256551a2cc4bf2b10608d8d8136ee6%2525257C9c01f0fd65e040c089a82dfd51e62025%2525257C0%2525257C0%2525257C637496925485667824%2525257CUnknown%2525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%2525253D%2525257C2000%252526sdata%25253DtgFLPLyNnjxuGYdMJR4Aj%2525252F%2525252FZrWivCw7MbkWNNlmMOzo%2525253D%252526reserved%25253D0%26data%3D04%257C01%257Croman.fleysher%2540einsteinmed.org%257Cbc78b82d290e45fa685c08d8d824dff1%257C9c01f0fd65e040c089a82dfd51e62025%257C0%257C0%257C637497000441018593%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C2000%26sdata%3D5Wh2hwEfMvfXCz4zNhv7mTJjFOw5pWbrKpwsd%252Bz5KuM%253D%26reserved%3D0> Specific commands are (schematically) : # realign to original MGZ mri_label2vol --seg inputSegmentationInMGZ --temp mri/orig/001.mgz --o outputSegmentationInOrigMGZ --regheader inputSegmentationInMGZ # convert to NIFTI (*.nii.gz) mri_convert --in_type mgz --out_type nii outputSegmentationInOrigMGZ outputSegmentationInOrigNIFTI.nii.gz Are these steps correct? I can shift NIFTI by one pixel using fslroi, but I want to be sure nothing else is happening and that this shift is the correct work around. Thank you, Roman _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu<mailto:Freesurfer@nmr.mgh.harvard.edu> MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1I89w2HX9YTBP8nejFsf9OBUB4ehuSqSMF4eM7Nn9GGDMnC1lOVYVWohl_9vhUpSVPReGOaVQeep5jfj8MYcHc1BB2FaK38v_gqaQYclm4QLGmAGx8lWGz_wlmiQHR8q9ZS51e1vmC_Xcj4h2a0rDtk-C36_nES0KZCPzXz0lrUyijY3hY4t7N3KTLS1SlZ9ABypDTNponyxqkrZg6CPKr3Ao9S2mBQYXZMufhFswPwXkdwGA99Xmep8iQSgQLT-yaKoJHuAu8_8oDV2PMRmVQQ/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer<https://secure-web.cisco.com/1ic4LlEMC9kSlUHkeVeqHUtP30Zrm7BUoyRj4YT0lhHxdPiajZ7um1eyPs5TeC0-vT5EDe_8VIqmf6nCXFoLa4pY7lWEOOxvvxx4WQVFJkQ98iTgtJlU2LxQ91M59ZNzY8upfN0lJx_Fo40V3r65x9gmwJYlhTY_3961TgdDj7ae0qe0Ep-V9qjvU1CTVNlRzz7ALwZQkdQp7u3BE3NJCQA/https%3A%2F%2Fnam04.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fsecure-web.cisco.com%252F1RGk21yZv2be1IjJ_Th6ex6FThUyfKZuUCaK0UvkDq9myjFmukKWH0xZxlWnzVltq_kdlBQZtLHruFXzfOxrXY00JE1YL8QJdr3YCtT6VUXechsfop7EKcyWGj8fZDdiJfx-V2FBIHx5Ia5YX5cMdZrgUpNsopzViwi1p17hsPPtuENcFai6M9752cnpoBR8v5RwI4-MkoltYG9227xiSaSreeQIBvZrybR7ZnyI3oYWLDLkNkLxXTDLa9_anuK9o%252Fhttps%25253A%25252F%25252Fnam04.safelinks.protection.outlook.com%25252F%25253Furl%25253Dhttps%2525253A%2525252F%2525252Fsecure-web.cisco.com%2525252F1utURVsPlLl-15O8f5hrgkEN3mDB0R7S_1u-zIhhTRNPAFoocncYJrm68LYIcmS-Sfe1W3BtV1UQ6wOcwhX5dmewq6peioG-_hCDoWjVlcIltX4uD1chCPwiNZO9XWAJeHGrzPRzTCrKdrRnRPJ7m-ExhTV9TcN-D1HKVQKxCSzz3NJO3AhF1tRJ47p6KItlxtmDznxaxgDuMoUdgLCp1TaNr4Qn6Tg_VPE--DY216EucToxTAnZuGd1yXEC7sBq967qmgq2-tXa02QK_87QQWQ%2525252Fhttps%252525253A%252525252F%252525252Fnam04.safelinks.protection.outlook.com%252525252F%252525253Furl%252525253Dhttps%25252525253A%25252525252F%25252525252Fmail.nmr.mgh.harvard.edu%25252525252Fmailman%25252525252Flistinfo%25252525252Ffreesurfer%2525252526data%252525253D04%25252525257C01%25252525257Croman.fleysher%252525252540einsteinmed.org%25252525257C96f9faa2bbde40007d7d08d8d80c756f%25252525257C9c01f0fd65e040c089a82dfd51e62025%25252525257C0%25252525257C0%25252525257C637496895306922337%25252525257CUnknown%25252525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%25252525253D%25252525257C1000%2525252526sdata%252525253D7tpUf1uae%25252525252B8WHiTlDDicR3q%25252525252BVeBVAZ2%25252525252FAN9CwHnDero%25252525253D%2525252526reserved%252525253D0%252526data%25253D04%2525257C01%2525257Croman.fleysher%25252540einsteinmed.org%2525257C74256551a2cc4bf2b10608d8d8136ee6%2525257C9c01f0fd65e040c089a82dfd51e62025%2525257C0%2525257C0%2525257C637496925485667824%2525257CUnknown%2525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%2525253D%2525257C2000%252526sdata%25253DVROcgFh3KcLRsk0566PgV4AyusU2xW3AKtuUND78SIg%2525253D%252526reserved%25253D0%26data%3D04%257C01%257Croman.fleysher%2540einsteinmed.org%257Cbc78b82d290e45fa685c08d8d824dff1%257C9c01f0fd65e040c089a82dfd51e62025%257C0%257C0%257C637497000441028543%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C2000%26sdata%3DLf9TITeEFQnQuPI3vo1BpeWIVBYG9UD92SnFr4OWnsk%253D%26reserved%3D0>
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer