@@ -34,8 +34,10 @@ namespace Statistics
3434 * This filter computes a N-D image where each voxel will contain
3535 * a vector of up to 10 scalars representing the run length features
3636 * (of the specified neighborhood) from a N-D scalar image.
37- * The run length features are computed for each spatial
38- * direction and averaged afterward.
37+ * The run length features are computed from joint histograms of
38+ * pixel intensities and distance (run length) per spatial direction
39+ * then averaged afterward.
40+ *
3941 * The result obtained is a possible texture description. See the following references.
4042 * M. M. Galloway. Texture analysis using gray level run lengths. Computer
4143 * Graphics and Image Processing, 4:172-179, 1975.
@@ -50,7 +52,7 @@ namespace Statistics
5052 *
5153 * Template Parameters:
5254 * -# The input image type: a N dimensional image where the pixel type MUST be integer.
53- * -# The output image type: a N dimensional image where the pixel type MUST be a vector of floating points or an ImageVector .
55+ * -# The output image type: a N dimensional image where the pixel type MUST be a vector of floating points or a VectorImage .
5456 *
5557 * Inputs and parameters:
5658 * -# An image
@@ -62,10 +64,12 @@ namespace Statistics
6264 * -# The set of directions (offsets) to average across. (Optional, defaults to
6365 * {(-1, 0), (-1, -1), (0, -1), (1, -1)} for 2D images and scales analogously
6466 * for ND images.)
65- * -# The pixel intensity range over which the features will be calculated.
66- * (Optional, defaults to the full dynamic range of the pixel type.)
67- * -# The distance range over which the features will be calculated.
68- * (Optional, defaults to the full dynamic range of double type.)
67+ * -# The pixel intensity range for the joint histogram over which the
68+ * features will be calculated. (Optional, defaults to the full
69+ * dynamic range of the pixel type.)
70+ * -# The distance range for the joint histogram over which the
71+ * features will be calculated. (Optional, defaults to the full
72+ * dynamic range of double type.)
6973 * -# The size of the neighborhood radius. (Optional, defaults to 2.)
7074 *
7175 * Recommendations:
@@ -175,33 +179,30 @@ class ITK_TEMPLATE_EXPORT RunLengthTextureFeaturesImageFilter:public ImageToImag
175179 /* * Get number of histogram bins along each axis */
176180 itkGetConstMacro ( NumberOfBinsPerAxis, unsigned int );
177181
178- /* *
179- * Set the min and max (inclusive) pixel value that will be used in
180- * generating the histogram.
181- */
182- void SetPixelValueMinMax ( PixelType min, PixelType max );
182+ /* * Set/Get the minimum (inclusive) pixel value defining one dimension of the joint
183+ * value distance histogram. */
184+ itkGetConstMacro ( HistogramValueMinimum, PixelType );
185+ itkSetMacro ( HistogramValueMinimum, PixelType);
183186
184- /* * Get the min pixel value defining one dimension of the joint histogram. */
185- itkGetConstMacro ( Min, PixelType );
187+ /* * Set/Get the maximum pixel value defining one dimension of the joint
188+ * value distance histogram. */
189+ itkGetConstMacro ( HistogramValueMaximum, PixelType );
190+ itkSetMacro ( HistogramValueMaximum, PixelType);
186191
187- /* * Get the max pixel value defining one dimension of the joint histogram. */
188- itkGetConstMacro ( Max, PixelType );
189192
190193 /* *
191- * Set the min and max (inclusive) pixel value that will be used in
192- * generating the histogram.
194+ * Set/Get the minimum (inclusive) run length distance in physical
195+ * space that will be used in generating the joint value distance histogram.
193196 */
194- void SetDistanceValueMinMax ( RealType min, RealType max );
197+ itkGetConstMacro ( HistogramDistanceMinimum, RealType );
198+ itkSetMacro ( HistogramDistanceMinimum, RealType);
195199
196- /* *
197- * Get the min distance value defining one dimension of the joint histogram.
198- */
199- itkGetConstMacro ( MinDistance, RealType );
200-
201- /* *
202- * Get the max distance value defining one dimension of the joint histogram.
200+ /* *
201+ * Set/Get the maximum run length distance in physical
202+ * space that will be used in generating the joint value distance histogram.
203203 */
204- itkGetConstMacro ( MaxDistance, RealType );
204+ itkGetConstMacro ( HistogramDistanceMaximum, RealType );
205+ itkSetMacro ( HistogramDistanceMaximum, RealType);
205206
206207 /* *
207208 * Set the pixel value of the mask that should be considered "inside" the
@@ -247,10 +248,10 @@ class ITK_TEMPLATE_EXPORT RunLengthTextureFeaturesImageFilter:public ImageToImag
247248 NeighborhoodRadiusType m_NeighborhoodRadius;
248249 OffsetVectorPointer m_Offsets;
249250 unsigned int m_NumberOfBinsPerAxis;
250- PixelType m_Min ;
251- PixelType m_Max ;
252- RealType m_MinDistance ;
253- RealType m_MaxDistance ;
251+ PixelType m_HistogramValueMinimum ;
252+ PixelType m_HistogramValueMaximum ;
253+ RealType m_HistogramDistanceMinimum ;
254+ RealType m_HistogramDistanceMaximum ;
254255 PixelType m_InsidePixelValue;
255256 typename TInputImage::SpacingType m_Spacing;
256257};
0 commit comments