69 template <
typename InputImageType,
typename OutputImageType>
71 Copy(
const InputImageType * inImage,
72 OutputImageType * outImage,
73 const typename InputImageType::RegionType & inRegion,
74 const typename OutputImageType::RegionType & outRegion)
71 Copy(
const InputImageType * inImage, {
…}
80 template <
typename TPixel1,
typename TPixel2,
unsigned int VImageDimension>
94 std::is_convertible<typename _ImageType1::PixelType, typename _ImageType2::PixelType>());
97 template <
typename TPixel1,
typename TPixel2,
unsigned int VImageDimension>
99 Copy(
const VectorImage<TPixel1, VImageDimension> * inImage,
100 VectorImage<TPixel2, VImageDimension> * outImage,
104 using _ImageType1 = VectorImage<TPixel1, VImageDimension>;
105 using _ImageType2 = VectorImage<TPixel2, VImageDimension>;
111 std::is_convertible<typename _ImageType1::PixelType, typename _ImageType2::PixelType>());
122 template <
typename InputImageType,
typename OutputImageType>
123 static typename OutputImageType::RegionType
125 const InputImageType * inputImage,
126 const OutputImageType * outputImage);
128 template <
typename InputImageType,
typename OutputImageType,
typename TransformType>
129 static typename OutputImageType::RegionType
131 const InputImageType * inputImage,
132 const OutputImageType * outputImage,
133 const TransformType * transform);
140 template <
typename InputImageType,
typename OutputImageType>
143 OutputImageType * outImage,
144 const typename InputImageType::RegionType & inRegion,
145 const typename OutputImageType::RegionType & outRegion,
149 template <
typename InputImageType,
typename OutputImageType>
152 OutputImageType * outImage,
153 const typename InputImageType::RegionType & inRegion,
154 const typename OutputImageType::RegionType & outRegion,
161 template <
typename TImageType>
172 template <
typename TPixelType,
unsigned int VImageDimension>
173 struct PixelSize<
VectorImage<TPixelType, VImageDimension>>
177 Get(
const ImageType * i)
179 const size_t vectorLength = ImageType::AccessorFunctorType::GetVectorLength(i);
186 template <
typename TInputType,
typename TOutputType>
192 return static_cast<TOutputType
>(i);
197 template <
typename TType>
199 CopyHelper(
const TType * first,
const TType * last, TType * result)
204 return std::copy(first, last, result);
199 CopyHelper(
const TType * first,
const TType * last, TType * result) {
…}
208 template <
typename TInputType,
typename TOutputType>
210 CopyHelper(
const TInputType * first,
const TInputType * last, TOutputType * result)
212 return std::transform(first, last, result, StaticCast<TInputType, TOutputType>());
static void DispatchedCopy(const InputImageType *inImage, OutputImageType *outImage, const typename InputImageType::RegionType &inRegion, const typename OutputImageType::RegionType &outRegion, FalseType isSpecialized=FalseType())
static void DispatchedCopy(const InputImageType *inImage, OutputImageType *outImage, const typename InputImageType::RegionType &inRegion, const typename OutputImageType::RegionType &outRegion, TrueType isSpecialized)
static OutputImageType::RegionType EnlargeRegionOverBox(const typename InputImageType::RegionType &inputRegion, const InputImageType *inputImage, const OutputImageType *outputImage)
Sets the output region to the smallest region of the output image that fully contains the physical sp...
static OutputImageType::RegionType EnlargeRegionOverBox(const typename InputImageType::RegionType &inputRegion, const InputImageType *inputImage, const OutputImageType *outputImage, const TransformType *transform)
static void Copy(const InputImageType *inImage, OutputImageType *outImage, const typename InputImageType::RegionType &inRegion, const typename OutputImageType::RegionType &outRegion)
This generic function copies a region from one image to another. It may perform optimizations on the ...