[ITK] (no subject)

Timothee Evain tevain at telecom-paristech.fr
Thu Aug 6 04:05:20 EDT 2015


Hi,

To complete Jon suggestion, you could easily acces the volume (in voxels) of your segmentation with a ShapeLabelMap:
http://www.itk.org/Doxygen/html/classitk_1_1BinaryImageToShapeLabelMapFilter.html
It labels each binary object of an image and compute some features on it.
You can acces the volume with:
ShapeLabelFilter->GetOutput()->GetLabelObject(*Label of your segmentation*)->GetNumberOfPixels();

Tim

----- Mail original -----
De: "Jon Haitz Legarreta" <jhlegarreta at vicomtech.org>
À: "meikolin saimara" <kolin9105 at gmail.com>
Cc: community at itk.org
Envoyé: Mercredi 5 Août 2015 18:31:19
Objet: Re: [ITK] (no subject)

Hi Meikolin, 
if you count the number of voxels your tumour has, knowing the volume would imply multiplying the number of voxels by the resolution of your input dataset in all three dimensions. 
You can get the resolution of your image as 
ImageType::SpacingType spacing =  myImage->GetSpacing(); 
HTH, 
JON HAITZ 



On 5 August 2015 at 17:12, meikolin saimara < kolin9105 at gmail.com > wrote: 



Hello There 
I had problems with my thesis where I was very difficult to separate the brain tumor with the outer circumference of the brain or skull . 
if I can define a brain tumor I want to also calculate the volume of a brain tumor through a pixel value . 
I use the method of segmentation threshold without using visualization only ITK and I use dicom image. 
can you help me 
pleaz... 

_______________________________________________ 
Community mailing list 
Community at itk.org 
http://public.kitware.com/mailman/listinfo/community 



_______________________________________________
Community mailing list
Community at itk.org
http://public.kitware.com/mailman/listinfo/community


More information about the Community mailing list