18 #ifndef itkSimilarityIndexImageFilter_h
19 #define itkSimilarityIndexImageFilter_h
59 template<
typename TInputImage1,
typename TInputImage2 >
94 static constexpr
unsigned int ImageDimension = TInputImage1::ImageDimension;
101 { this->SetInput(image); }
104 void SetInput2(
const InputImage2Type *image);
108 {
return this->GetInput(); }
111 const InputImage2Type * GetInput2();
114 itkGetConstMacro(SimilarityIndex, RealType);
116 #ifdef ITK_USE_CONCEPT_CHECKING
128 void PrintSelf(std::ostream & os,
Indent indent)
const override;
132 void AllocateOutputs()
override;
135 void BeforeThreadedGenerateData()
override;
139 void AfterThreadedGenerateData()
override;
143 outputRegionForThread,
148 itkExceptionMacro(
"This class requires threadId so it must use classic multi-threading model");
152 void GenerateInputRequestedRegion()
override;
155 void EnlargeOutputRequestedRegion(
DataObject *data)
override;
166 #ifndef ITK_MANUAL_INSTANTIATION
167 #include "itkSimilarityIndexImageFilter.hxx"
typename TInputImage1::IndexType IndexType
Light weight base class for most itk classes.
Define numeric traits for std::vector.
TInputImage2 InputImage2Type
void DynamicThreadedGenerateData(const RegionType &) override
Array< SizeValueType > m_CountOfImage1
Array< SizeValueType > m_CountOfIntersection
Array< SizeValueType > m_CountOfImage2
RealType m_SimilarityIndex
TInputImage1 InputImage1Type
typename TInputImage1::ConstPointer InputImage1ConstPointer
typename TInputImage1::PixelType InputImage1PixelType
ImageBaseType::SizeType SizeType
typename TInputImage1::Pointer InputImage1Pointer
ImageBaseType::IndexType IndexType
typename TInputImage1::RegionType RegionType
Measures the similarity between the set of non-zero pixels of two images.
void SetInput1(const InputImage1Type *image)
typename TInputImage2::ConstPointer InputImage2ConstPointer
unsigned int ThreadIdType
typename TInputImage2::PixelType InputImage2PixelType
const InputImage1Type * GetInput1()
Base class for filters that take an image as input and produce an image as output.
typename NumericTraits< InputImage1PixelType >::RealType RealType
Control indentation during Print() invocation.
typename TInputImage1::SizeType SizeType
ImageBaseType::RegionType RegionType
typename TInputImage2::Pointer InputImage2Pointer
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.