External Email - Use Caution        

Hi Reza,

The lesion class in samseg is a bit special, as the internal lesion
probabilities are thresholded (using the value passed on via the
--threshold flag, or a default value 0.3 if you didn't use that flag) to
obtain the voxels labeled as 99 in the segmentation output. In contrast,
the value in the .stats file is simply the sum (over all voxels) of those
internal lesion probabilities.

If you want to inspect the impact of the exact threshold value on the
number of voxels with label 99, you could run samseg with the
--save-posteriors flag to save the internal lesion probabilities (in
yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and
mri_segstats to obtain lesion volumes for different thresholds without
having to re-run sameg anew.

Hope this helps,

Koen


On Thu, Nov 16, 2023 at 9:45 AM reza razmara <rrazmara1...@gmail.com> wrote:

>         External Email - Use Caution
>
> Thanks
>
> The volume of lesions in label 99 in seg.mgz result is 745 mm^3.
>
> The samseg output for lesions in samseg.stats is 633 mm^3.
> Is it ok?
>
> On Thu, Nov 16, 2023, 5:57 PM Douglas N. Greve <dgr...@mgh.harvard.edu>
> wrote:
>
>> Internally, samseg uses partial volume to compute a more accurate volume.
>> They should still be very close though.
>>
>> On 11/16/2023 6:46 AM, reza razmara wrote:
>>
>>         External Email - Use Caution
>> Hi freesurfer team
>>
>> I use samseg for lesion segmentation. In the result of .stats i see the
>> lesions volume. But when i extract lesions seprately as a new file we know
>> that it uses the label 99 for extraction. But when i calculate the volume
>> of this extracted lesions which i created it seprately. The volume of these
>> two results are not the same.
>> The volume of extracted lesions seprately is higher than what samseg
>> automatically calculated in .stats file.
>> Why is this happened? Why the volumes are not the same. And how can i
>> calculate the lesions volume from extracted file that i created which is a
>> flair that i masked with label 99? How can i recalculate the lesions volume
>> from just exracted lesions filr without using samseg?
>>
>> Thanks a lot for your help
>>
>> _______________________________________________
>> Freesurfer mailing listfreesur...@nmr.mgh.harvard.edu*MailScanner has 
>> detected a possible fraud attempt from "secure-web.cisco.com" claiming to 
>> be* 
>> https://secure-web.cisco.com/1dgf0ZMbFvSp0W76GXxEdy-bipI6JNFn3pOahJivjU65wdUxJ6eVe3kYd9KJxorsUX5tDU_Y5YmF9bGHLmAW6sKYIyq1VY0SG9ZS5QffvMBnnpaE-QPnv5JvPAQFNtiQwaidJhJF4zw0Hce77L36IGh5cmAcE8Rmttcdw1Aj4QuracV9S47g5M_X-j7BVXwLN_eAoOl2X_C3G0BeQM0jJzKJhAYIf4NO0Co8dz6AV16hK3cW4Snwo65jyhgIkfBz1j4W9IUslQwbirJ5Bod_mBPOAoJIur7Z710WoSDptu-jXfia_SF3eD_hPi2TmIuJEUD73H5LoDxPtsx3XV_zr5A/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
>>  
>> <https://secure-web.cisco.com/15CTCr2koJ0pCHfaAX203c2eT8qJQwcndNFO0I-tV8amyEzvgW5nZH2sKSyWxKlideuhZz9GomHGPilRFqye3Xqsled-s-pmgpZSzWsMymEOUUF-3E6cyh4tWEW19H8kkKN8Q0T6-6B7QUOzPICVJFytFDwYg5_eeASPzTScTN16ReO-kiFppjmIT4uESEIByPM5NzMnJi4yX5-AckCXnsM1yIJjVypzvxhVTir5LBmO8kDN6lYpIS1Fmqg7orptVyFgf0sZ2raYI2X45tAYgLmKXUncOFSVgQeeRZSgRmP9jSNrZT2uKyL0lwqrYB1aDOH66KUvz3RMARiQMG-d20A/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer>
>>
>>
>> _______________________________________________
>> Freesurfer mailing list
>> 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/1dgf0ZMbFvSp0W76GXxEdy-bipI6JNFn3pOahJivjU65wdUxJ6eVe3kYd9KJxorsUX5tDU_Y5YmF9bGHLmAW6sKYIyq1VY0SG9ZS5QffvMBnnpaE-QPnv5JvPAQFNtiQwaidJhJF4zw0Hce77L36IGh5cmAcE8Rmttcdw1Aj4QuracV9S47g5M_X-j7BVXwLN_eAoOl2X_C3G0BeQM0jJzKJhAYIf4NO0Co8dz6AV16hK3cW4Snwo65jyhgIkfBz1j4W9IUslQwbirJ5Bod_mBPOAoJIur7Z710WoSDptu-jXfia_SF3eD_hPi2TmIuJEUD73H5LoDxPtsx3XV_zr5A/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
>> <https://secure-web.cisco.com/15CTCr2koJ0pCHfaAX203c2eT8qJQwcndNFO0I-tV8amyEzvgW5nZH2sKSyWxKlideuhZz9GomHGPilRFqye3Xqsled-s-pmgpZSzWsMymEOUUF-3E6cyh4tWEW19H8kkKN8Q0T6-6B7QUOzPICVJFytFDwYg5_eeASPzTScTN16ReO-kiFppjmIT4uESEIByPM5NzMnJi4yX5-AckCXnsM1yIJjVypzvxhVTir5LBmO8kDN6lYpIS1Fmqg7orptVyFgf0sZ2raYI2X45tAYgLmKXUncOFSVgQeeRZSgRmP9jSNrZT2uKyL0lwqrYB1aDOH66KUvz3RMARiQMG-d20A/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer>
>> The information in this e-mail is intended only for the person to whom it
>> is addressed.  If you believe this e-mail was sent to you in error and the
>> e-mail contains patient information, please contact the Mass General
>> Brigham Compliance HelpLine at *MailScanner has detected a possible
>> fraud attempt from "secure-web.cisco.com" claiming to be*
>> https://secure-web.cisco.com/1Nyg0gdftXCRBIe9tFt5zVvo_wnfWZ5PTdvgKzVPTL3Vs9R6lYFuczksNXFQzq965L88li8MLNeAtfJZupCIlDYjIjmVw5ukUHDp6coNbnYeHyDQh_qYT0XQY2lQx7hnuO5ukEqVr6AkbkYyXsgEGEfeSCnBLSZM4vL8Fzk2txyr-2Gp7yAWFJsIdMBNRZb7M6zsQzpK7Fyx2jj1fsT1R-Cd9CL5SO5-U_iEqyX0lYZUzQnZ3jrQ7vPOKtj5Ehvi3FAcHKxEiTe04U27FAd5K1Tx9k1a_6HVm0OgSfuXccKXmD8euLyKWhTUcUhu7yunhGhXTPEr7Q_yHjNcoybreHA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline
>> <https://secure-web.cisco.com/1F2NxclipTs9ebvlCQMzVboE5w-Td04Btx-V-1gnvOu3GS5Y9Y0D3yWRl8yXX8t7XlQ3jW5JuYVd0J2umagW3SRRpMYBM9Tuo9Km__M-_PNH1CnmuRAb4eHkY4s43_n6etLQ6DSBeBlNvpxoSCAiyko1slPFoQjQmsy9VEhDoxMrgKIFTAHrjuQB2crHH6KJmaqvR7jrslnIkjpw9An7ECNNnNMoFIz6_ArTMfD-wHZlKD_jyPJpHZP6E5LW7JeV_i4haH-3e5fyJyY-ebMTVcbR9q8XTzQ2PbypDtvIMkiro4RYAaH5r-Zju2Gy6EaB5CcYXYJiLy8xzyTcuRjZSgQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>
>> <*MailScanner has detected a possible fraud attempt from
>> "secure-web.cisco.com" claiming to be*
>> https://secure-web.cisco.com/1Nyg0gdftXCRBIe9tFt5zVvo_wnfWZ5PTdvgKzVPTL3Vs9R6lYFuczksNXFQzq965L88li8MLNeAtfJZupCIlDYjIjmVw5ukUHDp6coNbnYeHyDQh_qYT0XQY2lQx7hnuO5ukEqVr6AkbkYyXsgEGEfeSCnBLSZM4vL8Fzk2txyr-2Gp7yAWFJsIdMBNRZb7M6zsQzpK7Fyx2jj1fsT1R-Cd9CL5SO5-U_iEqyX0lYZUzQnZ3jrQ7vPOKtj5Ehvi3FAcHKxEiTe04U27FAd5K1Tx9k1a_6HVm0OgSfuXccKXmD8euLyKWhTUcUhu7yunhGhXTPEr7Q_yHjNcoybreHA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline
>> <https://secure-web.cisco.com/1F2NxclipTs9ebvlCQMzVboE5w-Td04Btx-V-1gnvOu3GS5Y9Y0D3yWRl8yXX8t7XlQ3jW5JuYVd0J2umagW3SRRpMYBM9Tuo9Km__M-_PNH1CnmuRAb4eHkY4s43_n6etLQ6DSBeBlNvpxoSCAiyko1slPFoQjQmsy9VEhDoxMrgKIFTAHrjuQB2crHH6KJmaqvR7jrslnIkjpw9An7ECNNnNMoFIz6_ArTMfD-wHZlKD_jyPJpHZP6E5LW7JeV_i4haH-3e5fyJyY-ebMTVcbR9q8XTzQ2PbypDtvIMkiro4RYAaH5r-Zju2Gy6EaB5CcYXYJiLy8xzyTcuRjZSgQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>>
>> .
>>
> _______________________________________________
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://secure-web.cisco.com/1dgf0ZMbFvSp0W76GXxEdy-bipI6JNFn3pOahJivjU65wdUxJ6eVe3kYd9KJxorsUX5tDU_Y5YmF9bGHLmAW6sKYIyq1VY0SG9ZS5QffvMBnnpaE-QPnv5JvPAQFNtiQwaidJhJF4zw0Hce77L36IGh5cmAcE8Rmttcdw1Aj4QuracV9S47g5M_X-j7BVXwLN_eAoOl2X_C3G0BeQM0jJzKJhAYIf4NO0Co8dz6AV16hK3cW4Snwo65jyhgIkfBz1j4W9IUslQwbirJ5Bod_mBPOAoJIur7Z710WoSDptu-jXfia_SF3eD_hPi2TmIuJEUD73H5LoDxPtsx3XV_zr5A/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Please note that this e-mail is not secure (encrypted).  If you do not wish to 
continue communication over unencrypted e-mail, please notify the sender of 
this message immediately.  Continuing to send or respond to e-mail after 
receiving this message means you understand and accept this risk and wish to 
continue to communicate over unencrypted e-mail. 

Reply via email to