Skip to content

Commit 6152557

Browse files
committed
Change default mask template type to be of unsigned char pixel type
1 parent a381139 commit 6152557

12 files changed

+14
-13
lines changed

include/itkCoocurrenceTextureFeaturesImageFilter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ namespace Statistics
8383

8484
template< typename TInputImage,
8585
typename TOutputImage,
86-
typename TMaskImage = TInputImage>
87-
class ITK_TEMPLATE_EXPORT CoocurrenceTextureFeaturesImageFilter:public ImageToImageFilter< TInputImage, TOutputImage >
86+
typename TMaskImage = Image< unsigned char, TInputImage::ImageDimension> >
87+
class ITK_TEMPLATE_EXPORT CoocurrenceTextureFeaturesImageFilter
88+
: public ImageToImageFilter< TInputImage, TOutputImage >
8889
{
8990
public:
9091
/** Standard typedefs */

include/itkRunLengthTextureFeaturesImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace Statistics
9696

9797
template< typename TInputImage,
9898
typename TOutputImage,
99-
typename TMaskImage = TInputImage>
99+
typename TMaskImage = Image< unsigned char, TInputImage::ImageDimension> >
100100
class ITK_TEMPLATE_EXPORT RunLengthTextureFeaturesImageFilter
101101
: public ImageToImageFilter< TInputImage, TOutputImage >
102102
{

test/CoocurrenceTextureFeaturesImageFilterInstantiationTest.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int CoocurrenceTextureFeaturesImageFilterInstantiationTest( int argc, char *argv
6363

6464
// Create the filter
6565
typedef itk::Statistics::CoocurrenceTextureFeaturesImageFilter<
66-
InputImageType, OutputImageType, MaskImageType > FilterType;
66+
InputImageType, OutputImageType > FilterType;
6767
FilterType::Pointer filter = FilterType::New();
6868

6969
EXERCISE_BASIC_OBJECT_METHODS( filter,

test/CoocurrenceTextureFeaturesImageFilterTest.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int CoocurrenceTextureFeaturesImageFilterTest( int argc, char *argv[] )
6060

6161
// Create the filter
6262
typedef itk::Statistics::CoocurrenceTextureFeaturesImageFilter<
63-
InputImageType, OutputImageType > FilterType;
63+
InputImageType, OutputImageType, InputImageType > FilterType;
6464
FilterType::Pointer filter = FilterType::New();
6565

6666
filter->SetInput( reader->GetOutput() );

test/CoocurrenceTextureFeaturesImageFilterTestSeparateFeatures.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int CoocurrenceTextureFeaturesImageFilterTestSeparateFeatures( int argc, char *a
6767

6868
// Create the filter
6969
typedef itk::Statistics::CoocurrenceTextureFeaturesImageFilter<
70-
InputImageType, OutputImageType > FilterType;
70+
InputImageType, OutputImageType, InputImageType > FilterType;
7171
FilterType::Pointer filter = FilterType::New();
7272

7373
filter->SetInput( reader->GetOutput() );

test/CoocurrenceTextureFeaturesImageFilterTestVectorImageSeparateFeatures.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int CoocurrenceTextureFeaturesImageFilterTestVectorImageSeparateFeatures( int ar
6666

6767
// Create the filter
6868
typedef itk::Statistics::CoocurrenceTextureFeaturesImageFilter<
69-
InputImageType, OutputImageType > FilterType;
69+
InputImageType, OutputImageType, InputImageType > FilterType;
7070
FilterType::Pointer filter = FilterType::New();
7171

7272
filter->SetInput( reader->GetOutput() );

test/CoocurrenceTextureFeaturesImageFilterTestWithVectorImage.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int CoocurrenceTextureFeaturesImageFilterTestWithVectorImage( int argc, char *ar
6262

6363
// Create the filter
6464
typedef itk::Statistics::CoocurrenceTextureFeaturesImageFilter<
65-
InputImageType, OutputImageType > FilterType;
65+
InputImageType, OutputImageType, InputImageType > FilterType;
6666
FilterType::Pointer filter = FilterType::New();
6767

6868
EXERCISE_BASIC_OBJECT_METHODS( filter, CoocurrenceTextureFeaturesImageFilter,

test/RunLengthTextureFeaturesImageFilterInstantiationTest.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int RunLengthTextureFeaturesImageFilterInstantiationTest( int argc, char *argv[]
6262

6363
// Create the filter
6464
typedef itk::Statistics::RunLengthTextureFeaturesImageFilter<
65-
InputImageType, OutputImageType, MaskImageType > FilterType;
65+
InputImageType, OutputImageType > FilterType;
6666

6767
FilterType::Pointer filter = FilterType::New();
6868

test/RunLengthTextureFeaturesImageFilterTest.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int RunLengthTextureFeaturesImageFilterTest( int argc, char *argv[] )
6767

6868
// Create the filter
6969
typedef itk::Statistics::RunLengthTextureFeaturesImageFilter<
70-
InputImageType, OutputImageType > FilterType;
70+
InputImageType, OutputImageType, InputImageType > FilterType;
7171

7272
FilterType::Pointer filter = FilterType::New();
7373

test/RunLengthTextureFeaturesImageFilterTestSeparateFeatures.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ int RunLengthTextureFeaturesImageFilterTestSeparateFeatures( int argc, char *arg
6969

7070
// Create the filter
7171
typedef itk::Statistics::RunLengthTextureFeaturesImageFilter<
72-
InputImageType, OutputImageType > FilterType;
72+
InputImageType, OutputImageType, InputImageType > FilterType;
7373
FilterType::Pointer filter = FilterType::New();
7474

7575
filter->SetInput( reader->GetOutput() );

0 commit comments

Comments
 (0)