12 #ifndef mitkLevelWindow_h
13 #define mitkLevelWindow_h
17 #include <nlohmann/json_fwd.hpp>
152 bool tryPicTags =
true,
153 bool guessByCentralSlice =
true,
154 unsigned selectedComponent = 0);
Image class for storing images.
The LevelWindow class Class to store level/window values.
ScalarType GetRangeMax() const
void SetToImageRange(const Image *image)
sets level/window to the min/max greyvalues of the given Image
ScalarType GetRange() const
returns the size of the grey value range
void ResetDefaultLevelWindow()
Resets the level and the window value to the default values.
void SetAuto(const Image *image, bool tryPicTags=true, bool guessByCentralSlice=true, unsigned selectedComponent=0)
sets level/window to optimize the contrast of the given Image
LevelWindow(ScalarType level=127.5, ScalarType window=255.0)
LevelWindow(const mitk::LevelWindow &levWin)
bool IsFloatingValues() const
Shows if floating values are accepted.
ScalarType GetRangeMin() const
void SetFloatingValues(bool value)
Sets the floating image value.
void SetDefaultLevelWindow(ScalarType level, ScalarType window)
void SetFixed(bool fixed)
ScalarType GetDefaultUpperBound() const
ScalarType GetDefaultWindow() const
returns the default window size for the image
ScalarType m_DefaultLowerBound
ScalarType m_DefaultUpperBound
ScalarType GetDefaultLevel() const
method returns the default level value for the image
ScalarType GetLowerWindowBound() const
ScalarType GetDefaultLowerBound() const
void SetDefaultBoundaries(ScalarType low, ScalarType up)
virtual bool operator!=(const LevelWindow &levWin) const
non equality operator implementation that allows to compare two level windows
void SetLevelWindow(ScalarType level, ScalarType window, bool expandRangesIfNecessary=true)
ScalarType GetUpperWindowBound() const
ScalarType GetLevel() const
method that returns the level value, i.e. the center of the current grey value interval
void ResetDefaultRangeMinMax()
the default min and max range for image will be reset
void SetWindowBounds(ScalarType lowerBound, ScalarType upperBound, bool expandRangesIfNecessary=true)
ScalarType GetWindow() const
returns the current window size, i.e the range size of the current grey value interval
void SetRangeMinMax(ScalarType min, ScalarType max)
void SetToMaxWindowSize()
virtual bool operator==(const LevelWindow &levWin) const
equality operator implementation that allows to compare two level windows
ScalarType m_UpperWindowBound
virtual LevelWindow & operator=(const LevelWindow &levWin)
implementation necessary because operator made private in itk::Object
ScalarType m_LowerWindowBound
Find image slices visible on a given plane.
void to_json(nlohmann::json &j, const GenericLookupTable< T > &t)
void from_json(const nlohmann::json &, GenericLookupTable< T > &)