[ITK] [ITK-users] SimpleITK | chnage Window Levels on an image

Yaniv, Ziv Rafael (NIH/NLM/LHC) [C] zivrafael.yaniv at nih.gov
Sat Mar 28 11:22:32 EDT 2015


My understanding is that you want to set the window and level. You can do this directly using the SetWindowLevel method:

http://www.itk.org/Doxygen/html/classitk_1_1IntensityWindowingImageFilter.html#ad99d5bd667dd23391ff3e2b2db1ce92d

      Ziv

________________________________
From: Matias Montroull [matimontg at gmail.com]
Sent: Saturday, March 28, 2015 10:55 AM
To: Yaniv, Ziv Rafael (NIH/NLM/LHC) [C]
Cc: insight-users at itk.org Users
Subject: Re: [ITK-users] SimpleITK | chnage Window Levels on an image

Thanks Yaniv,

So if I would like to set the Levels of an image to let's say: WC 120 and WW 40, how should I use the variables below to do so?


  filter->SetWindowMinimum(?);
  filter->SetWindowMaximum(?);


I guess the above sentence just defines the range of the levels and not the actual level


Thank you,


Matias.

On Sat, Mar 28, 2015 at 11:47 AM, Yaniv, Ziv Rafael (NIH/NLM/LHC) [C] <zivrafael.yaniv at nih.gov<mailto:zivrafael.yaniv at nih.gov>> wrote:
The filter is:

itk::IntensityWindowingImageFilter


         Ziv
________________________________
From: Matias Montroull [matimontg at gmail.com<mailto:matimontg at gmail.com>]
Sent: Saturday, March 28, 2015 8:57 AM
To: insight-users at itk.org<mailto:insight-users at itk.org> Users
Subject: [ITK-users] SimpleITK | chnage Window Levels on an image

Hi,

I would like to change the window width and window center of an image using ITK.

I guess it may be simple but I can't find the filter that would do that.

Thanks,

Matias.

_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list