Hi @matt.mccormick and sorry to bother u! I’ve got this problem… why, in the segmented image, is it gray in the background instead of black?
I think it’s a problem in the parameter i set using confidence connected (for the liver segmentation) and the MaskImageFilter
confidenceConnected->SetMultiplier( 2.2 );
confidenceConnected->SetNumberOfIterations( 5 );
confidenceConnected->SetReplaceValue( 255 );
confidenceConnected->SetSeed( index );
confidenceConnected->SetInitialNeighborhoodRadius( 2 );
voting->SetRadius( indexRadius );
voting->SetBackgroundValue( 0 );
voting->SetForegroundValue( 255 );
voting->SetMajorityThreshold( 2 );
voting->SetMaximumNumberOfIterations( 15 );
Note: before segmentation, I changed the pixel type of the original image from ‘signed short’ to ‘float’ and I rescaled it between 0 and 1… is this actually affecting the MaskImageFilter? One last thing… the intensity of the pixel in the ‘segmented image’ look different from the ‘Input image’, why? Should I care? Should I not perform rescaling?
Thanks in advance for your precious help!