[Insight-users] image ~> binary threshold?
greenlander1986 at gmail.com
Fri Apr 8 17:46:25 EDT 2011
may be in visualization, but i am tryint binary images in other filter
(other thread in this mailbox)... and I have
You can see it in this...
2011/4/8 Neil Panjwani <paniwani at gmail.com>
> That looks fine. Must be a problem with either the image (not within those
> ranges), your reader, your writer, or the way you visualize the output.
> On Fri, Apr 8, 2011 at 5:28 PM, G G <greenlander1986 at gmail.com> wrote:
>> Hi I would like to convert image to binary image.
>> I have mha/mhd image in 3D in grayscale.
>> So I ask you, how should I convert my image to binary image?
>> I tried to use binary threshold image filter. But when I use it, I dont
>> get black&white image, black&dark gray&white image
>> I am using this code bellow
>> typedef itk::BinaryThresholdImageFilter <ImageType, ImageType>
>> BinaryThresholdImageFilterType::Pointer thresholdFilter =
>> thresholdFilter->SetOutsideValue( 0 );
>> thresholdFilter->SetInsideValue( 255 );
>> thresholdFilter->SetLowerThreshold( 10 );
>> thresholdFilter->SetUpperThreshold( 255 );
>> where could be problem? Thanks for ideas :)
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> Kitware offers ITK Training Courses, for more information visit:
>> Please keep messages on-topic and check the ITK FAQ at:
>> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Insight-users