ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkScalarToArrayCastImageFilter_h 00019 #define __itkScalarToArrayCastImageFilter_h 00020 00021 #include "itkImageToImageFilter.h" 00022 00023 namespace itk 00024 { 00041 template< class TInputImage, class TOutputImage > 00042 class ITK_EXPORT ScalarToArrayCastImageFilter: 00043 public ImageToImageFilter< TInputImage, TOutputImage > 00044 { 00045 public: 00047 typedef ScalarToArrayCastImageFilter Self; 00048 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass; 00049 typedef SmartPointer< Self > Pointer; 00050 typedef SmartPointer< const Self > ConstPointer; 00051 00053 itkNewMacro(Self); 00054 itkTypeMacro(ScalarToArrayCastImageFilter, ImageToImageFilter); 00056 00057 typedef typename Superclass::OutputImageRegionType OutputImageRegionType; 00058 typedef typename TOutputImage::PixelType OutputImagePixelType; 00059 00060 #ifdef ITK_USE_CONCEPT_CHECKING 00061 00062 itkConceptMacro( OutputHasNumericTraitsCheck, 00063 ( Concept::HasNumericTraits< typename OutputImagePixelType::ValueType > ) ); 00064 itkConceptMacro( OutputHasPixelTraitsCheck, 00065 ( Concept::HasPixelTraits< OutputImagePixelType > ) ); 00066 00068 #endif 00069 protected: 00070 ScalarToArrayCastImageFilter(); 00071 virtual ~ScalarToArrayCastImageFilter() {} 00072 00073 void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, 00074 ThreadIdType threadId); 00075 00076 private: 00077 ScalarToArrayCastImageFilter(const Self &); //purposely not implemented 00078 void operator=(const Self &); //purposely not implemented 00079 }; 00080 } // end namespace itk 00081 00082 #ifndef ITK_MANUAL_INSTANTIATION 00083 #include "itkScalarToArrayCastImageFilter.hxx" 00084 #endif 00085 00086 #endif 00087