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
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 list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
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 dgreve@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 CautionHi 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 listFreesurfer@nmr.mgh.harvard.eduhttps://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/15CTCr2koJ0pCHfaAX203c2eT8qJQwcndNFO0I-tV8amyEz... 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 https://secure-web.cisco.com/1F2NxclipTs9ebvlCQMzVboE5w-Td04Btx-V-1gnvOu3GS5... < https://secure-web.cisco.com/1F2NxclipTs9ebvlCQMzVboE5w-Td04Btx-V-1gnvOu3GS5... .
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 rrazmara1992@gmail.com wrote:
External Email - Use CautionThanks
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 dgreve@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 CautionHi 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 listFreesurfer@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-bipI6JNFn3pOahJivjU65wdU... 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-bipI6JNFn3pOahJivjU65wdU... 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_wnfWZ5PTdvgKzVPTL3Vs9R... 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_wnfWZ5PTdvgKzVPTL3Vs9R... 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-bipI6JNFn3pOahJivjU65wdU...
freesurfer@nmr.mgh.harvard.edu