Medical Imaging Interaction Toolkit  2024.06.99-bf8fb9c0
Medical Imaging Interaction Toolkit
mitkIntensityProfile.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkIntensityProfile_h
14 #define mitkIntensityProfile_h
15 
16 #include <itkListSample.h>
17 #include <mitkImage.h>
18 #include <mitkPlanarLine.h>
21 
22 namespace mitk
23 {
24  typedef itk::Statistics::ListSample<itk::Statistics::MeasurementVectorPixelTraits<ScalarType>::MeasurementVectorType> IntensityProfile;
25 
33  MITKIMAGESTATISTICS_EXPORT IntensityProfile::Pointer ComputeIntensityProfile(Image::Pointer image, PlanarFigure::Pointer planarFigure);
34 
35  namespace InterpolateImageFunction
36  {
37  enum Enum
38  {
56  };
57  }
58 
70 
82  MITKIMAGESTATISTICS_EXPORT IntensityProfile::Pointer ComputeIntensityProfile(Image::Pointer image, const Point3D& startPoint, const Point3D& endPoint, unsigned int numSamples, InterpolateImageFunction::Enum interpolator = InterpolateImageFunction::NearestNeighbor);
83 
91  MITKIMAGESTATISTICS_EXPORT IntensityProfile::InstanceIdentifier ComputeGlobalMaximum(IntensityProfile::ConstPointer intensityProfile, IntensityProfile::MeasurementType &max);
92 
100  MITKIMAGESTATISTICS_EXPORT IntensityProfile::InstanceIdentifier ComputeGlobalMinimum(IntensityProfile::ConstPointer intensityProfile, IntensityProfile::MeasurementType &min);
101 
109  MITKIMAGESTATISTICS_EXPORT void ComputeIntensityProfileStatistics(IntensityProfile::ConstPointer intensityProfile, ImageStatisticsContainer::ImageStatisticsObject& stats);
110 
118  MITKIMAGESTATISTICS_EXPORT IntensityProfile::InstanceIdentifier ComputeCenterOfMaximumArea(IntensityProfile::ConstPointer intensityProfile, IntensityProfile::InstanceIdentifier radius);
119 
126  MITKIMAGESTATISTICS_EXPORT std::vector<IntensityProfile::MeasurementType> CreateVectorFromIntensityProfile(IntensityProfile::ConstPointer intensityProfile);
127 
134  MITKIMAGESTATISTICS_EXPORT IntensityProfile::Pointer CreateIntensityProfileFromVector(const std::vector<IntensityProfile::MeasurementType>& vector);
135 }
136 
137 #endif
mitkImageStatisticsCalculator.h
mitk::InterpolateImageFunction::WindowedSinc_Lanczos_3
@ WindowedSinc_Lanczos_3
Definition: mitkIntensityProfile.h:50
mitk::IntensityProfile
itk::Statistics::ListSample< itk::Statistics::MeasurementVectorPixelTraits< ScalarType >::MeasurementVectorType > IntensityProfile
Definition: mitkIntensityProfile.h:24
mitk::InterpolateImageFunction::WindowedSinc_Welch_3
@ WindowedSinc_Welch_3
Definition: mitkIntensityProfile.h:53
mitkImage.h
mitk::CreateVectorFromIntensityProfile
MITKIMAGESTATISTICS_EXPORT std::vector< IntensityProfile::MeasurementType > CreateVectorFromIntensityProfile(IntensityProfile::ConstPointer intensityProfile)
Convert an intensity profile to a standard library vector.
mitk::ComputeGlobalMinimum
MITKIMAGESTATISTICS_EXPORT IntensityProfile::InstanceIdentifier ComputeGlobalMinimum(IntensityProfile::ConstPointer intensityProfile, IntensityProfile::MeasurementType &min)
Compute global minimum of an intensity profile.
mitk::InterpolateImageFunction::WindowedSinc_Welch_4
@ WindowedSinc_Welch_4
Definition: mitkIntensityProfile.h:54
mitk::InterpolateImageFunction::WindowedSinc_Hamming_4
@ WindowedSinc_Hamming_4
Definition: mitkIntensityProfile.h:48
mitk::InterpolateImageFunction::WindowedSinc_Blackman_3
@ WindowedSinc_Blackman_3
Definition: mitkIntensityProfile.h:41
itk::SmartPointer< Self >
mitk::InterpolateImageFunction::WindowedSinc_Blackman_4
@ WindowedSinc_Blackman_4
Definition: mitkIntensityProfile.h:42
mitk::InterpolateImageFunction::WindowedSinc_Lanczos_5
@ WindowedSinc_Lanczos_5
Definition: mitkIntensityProfile.h:52
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MITKIMAGESTATISTICS_EXPORT
#define MITKIMAGESTATISTICS_EXPORT
Definition: MitkImageStatisticsExports.h:15
mitk::InterpolateImageFunction::WindowedSinc_Cosine_4
@ WindowedSinc_Cosine_4
Definition: mitkIntensityProfile.h:45
mitk::InterpolateImageFunction::NearestNeighbor
@ NearestNeighbor
Definition: mitkIntensityProfile.h:39
mitk::InterpolateImageFunction::WindowedSinc_Welch_5
@ WindowedSinc_Welch_5
Definition: mitkIntensityProfile.h:55
mitkPlanarLine.h
mitk::Point3D
Point< ScalarType, 3 > Point3D
Definition: mitkPoint.h:121
mitk::ComputeIntensityProfile
MITKIMAGESTATISTICS_EXPORT IntensityProfile::Pointer ComputeIntensityProfile(Image::Pointer image, PlanarFigure::Pointer planarFigure)
Compute intensity profile of an image for each pixel along the first PolyLine of a given planar figur...
mitk::ComputeGlobalMaximum
MITKIMAGESTATISTICS_EXPORT IntensityProfile::InstanceIdentifier ComputeGlobalMaximum(IntensityProfile::ConstPointer intensityProfile, IntensityProfile::MeasurementType &max)
Compute global maximum of an intensity profile.
mitk::Image::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkImage.h:80
mitk::InterpolateImageFunction::WindowedSinc_Blackman_5
@ WindowedSinc_Blackman_5
Definition: mitkIntensityProfile.h:43
mitk::InterpolateImageFunction::WindowedSinc_Cosine_5
@ WindowedSinc_Cosine_5
Definition: mitkIntensityProfile.h:46
mitk::ComputeCenterOfMaximumArea
MITKIMAGESTATISTICS_EXPORT IntensityProfile::InstanceIdentifier ComputeCenterOfMaximumArea(IntensityProfile::ConstPointer intensityProfile, IntensityProfile::InstanceIdentifier radius)
Compute center of maximum area under the curve of an intensity profile.
MitkImageStatisticsExports.h
mitk::ComputeIntensityProfileStatistics
MITKIMAGESTATISTICS_EXPORT void ComputeIntensityProfileStatistics(IntensityProfile::ConstPointer intensityProfile, ImageStatisticsContainer::ImageStatisticsObject &stats)
Compute statistics of an intensity profile.
mitk::CreateIntensityProfileFromVector
MITKIMAGESTATISTICS_EXPORT IntensityProfile::Pointer CreateIntensityProfileFromVector(const std::vector< IntensityProfile::MeasurementType > &vector)
Convert a standard library vector to an intensity profile.
mitk::InterpolateImageFunction::Enum
Enum
Definition: mitkIntensityProfile.h:37
mitk::BaseData::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:46
mitk::InterpolateImageFunction::WindowedSinc_Lanczos_4
@ WindowedSinc_Lanczos_4
Definition: mitkIntensityProfile.h:51
mitk::InterpolateImageFunction::WindowedSinc_Cosine_3
@ WindowedSinc_Cosine_3
Definition: mitkIntensityProfile.h:44
mitk::InterpolateImageFunction::WindowedSinc_Hamming_3
@ WindowedSinc_Hamming_3
Definition: mitkIntensityProfile.h:47
mitk::InterpolateImageFunction::WindowedSinc_Hamming_5
@ WindowedSinc_Hamming_5
Definition: mitkIntensityProfile.h:49
mitk::InterpolateImageFunction::Linear
@ Linear
Definition: mitkIntensityProfile.h:40