[Insight-users] Still struggling with extracting information about objects resulting from a segmentation

Kishore Mosaliganti kishoreraom at gmail.com
Thu Mar 11 12:10:03 EST 2010


Hi Neal,

The minimum value of the segmentated image is 1 which means all the
background is 1 and 0. Maybe you should try:

converter->SetBackgroundValue( 1 );
converter->Update();

Kishore

On Thu, Mar 11, 2010 at 11:54 AM, Neal R. Harvey <harve at lanl.gov> wrote:

> Kishore
>
> Thanks for the suggestion, but that doesn't seem to help.
> When I make that modification and run the code, I still get the
> same result:
>
> Minimum Value from Segmented Image = 1
> Maximum Value from Segmented Image = 135787
> labelMap->GetNumberOfLabelObjects() = 0
>
> Number of Label Objects is incorrect
>
> I would hope that the value returned from
> labelMap->GetNumberOfLabelObjects() would
> be the same as the maximum value of the watershed segmented image.
>
>
>
> Kishore Mosaliganti wrote:
>
>> Hi Neal,
>>
>> I am not sure if this is the problem, but can you insert and then try:
>>
>> converter->SetBackgroundValue(0);
>> converter->Update();
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100311/2c7c1d09/attachment.htm>


More information about the Insight-users mailing list