18#ifndef itkCurvilinearArraySpecialCoordinatesImage_h
19#define itkCurvilinearArraySpecialCoordinatesImage_h
87template <
typename TPixel,
unsigned int VDimension>
195 template <
typename TCoordRep,
typename TIndexRep>
201 const double maxLateral = region.GetSize(1) - 1;
207 lateral = std::atan(point[0] / point[1]);
209 const TCoordRep radius = std::sqrt(point[0] * point[0] + point[1] * point[1]);
215 for (
unsigned int kk = 0; kk < VDimension; ++kk)
217 cvector[kk] = point[kk] - this->
m_Origin[kk];
220 for (
unsigned int ii = 2; ii < VDimension; ++ii)
222 index[ii] =
static_cast<TIndexRep
>(cvector[ii]);
226 const bool isInside = region.IsInside(index);
245 template <
typename TIndexRep,
typename TCoordRep>
258 template <
typename TCoordRep>
263 const double maxLateral = region.GetSize(1) - 1;
269 lateral = std::atan(point[0] / point[1]);
271 const TCoordRep radius = std::sqrt(point[0] * point[0] + point[1] * point[1]);
276 for (
unsigned int ii = 2; ii < VDimension; ++ii)
279 for (
unsigned int jj = 0; jj < VDimension; ++jj)
287 const bool isInside = region.IsInside(index);
307 template <
typename TCoordRep>
320 template <
typename TCoordRep,
typename TIndexRep>
326 const double maxLateral = region.GetSize(1) - 1;
333 point[0] =
static_cast<TCoordRep
>(radius * std::sin(lateral));
334 point[1] =
static_cast<TCoordRep
>(radius * std::cos(lateral));
335 for (
unsigned int rr = 2; rr < VDimension; ++rr)
338 for (
unsigned int cc = 0; cc < VDimension; ++cc)
342 point[rr] = sum + this->
m_Origin[rr];
350 template <
typename TCoordRep,
typename TIndexRep>
364 template <
typename TCoordRep>
369 const double maxLateral = region.GetSize(1) - 1;
376 point[0] =
static_cast<TCoordRep
>(radius * std::sin(lateral));
377 point[1] =
static_cast<TCoordRep
>(radius * std::cos(lateral));
378 for (
unsigned int ii = 2; ii < VDimension; ++ii)
381 for (
unsigned int jj = 0; jj < VDimension; ++jj)
393 template <
typename TCoordRep>
404 itkGetConstMacro(LateralAngularSeparation,
double);
408 itkGetConstMacro(RadiusSampleSize,
double);
412 itkGetConstMacro(FirstSampleDistance,
double);
414 template <
typename TCoordRep>
419 template <
typename TCoordRep>
440 NeighborhoodAccessorFunctorType
447 const NeighborhoodAccessorFunctorType
475#ifndef ITK_MANUAL_INSTANTIATION
476# include "itkCurvilinearArraySpecialCoordinatesImage.hxx"
A templated class holding a point in n-Dimensional image space.
typename PixelContainer::ConstPointer PixelContainerConstPointer
typename Superclass::IndexType IndexType
WeakPointer< const Self > ConstWeakPointer
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor()
DefaultPixelAccessor< PixelType > AccessorType
typename Superclass::SpacingType SpacingType
NeighborhoodAccessorFunctor< Self > NeighborhoodAccessorFunctorType
Point< TCoordRep, VDimension > TransformContinuousIndexToPhysicalPoint(const ContinuousIndex< TIndexRep, VDimension > &index) const
SmartPointer< const Self > ConstPointer
double m_RadiusSampleSize
SmartPointer< Self > Pointer
AccessorType GetPixelAccessor(void)
typename Superclass::SizeType SizeType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
CurvilinearArraySpecialCoordinatesImage()
void Graft(const ImageBase< VDimension > *image) override
~CurvilinearArraySpecialCoordinatesImage() override=default
static constexpr unsigned int ImageDimension
typename Superclass::OffsetType OffsetType
void TransformContinuousIndexToPhysicalPoint(const ContinuousIndex< TIndexRep, VDimension > &index, Point< TCoordRep, VDimension > &point) const
typename Superclass::RegionType RegionType
ContinuousIndex< TIndexRep, VDimension > TransformPhysicalPointToContinuousIndex(const Point< TCoordRep, VDimension > &point) const
Returns the continuous index from a physical point.
double m_LateralAngularSeparation
ImportImageContainer< SizeValueType, PixelType > PixelContainer
void TransformPhysicalVectorToLocalVector(const FixedArray< TCoordRep, VDimension > &, FixedArray< TCoordRep, VDimension > &) const
Point< TCoordRep, VDimension > TransformIndexToPhysicalPoint(const IndexType &index) const
bool TransformPhysicalPointToContinuousIndex(const Point< TCoordRep, VDimension > &point, ContinuousIndex< TIndexRep, VDimension > &index) const
Get the continuous index from a physical point.
typename Superclass::IndexValueType IndexValueType
DefaultPixelAccessorFunctor< Self > AccessorFunctorType
double m_FirstSampleDistance
typename Superclass::PointType PointType
typename PixelContainer::Pointer PixelContainerPointer
typename Superclass::SizeValueType SizeValueType
void TransformLocalVectorToPhysicalVector(FixedArray< TCoordRep, VDimension > &) const
SpecialCoordinatesImage< TPixel, VDimension > Superclass
const AccessorType GetPixelAccessor(void) const
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() const
typename Superclass::IOPixelType IOPixelType
bool TransformPhysicalPointToIndex(const Point< TCoordRep, VDimension > &point, IndexType &index) const
IndexType TransformPhysicalPointToIndex(const Point< TCoordRep, VDimension > &point) const
void TransformIndexToPhysicalPoint(const IndexType &index, Point< TCoordRep, VDimension > &point) const
virtual void CopyInformation(const DataObject *data) override
CurvilinearArraySpecialCoordinatesImage Self
Base class for all data objects in ITK.
virtual void Graft(const DataObject *)
Provides a common API for pixel accessors for Image and VectorImage.
Give access to partial aspects a type.
Simulate a standard C array with copy semantics.
Base class for templated image classes.
DirectionType m_IndexToPhysicalPoint
DirectionType m_PhysicalPointToIndex
typename IndexType::IndexValueType IndexValueType
virtual const RegionType & GetLargestPossibleRegion() const
typename SizeType::SizeValueType SizeValueType
Defines an itk::Image front-end to a standard C-array.
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
Provides accessor interfaces to Get pixels and is meant to be used on pointers contained within Neigh...
A templated class holding a geometric point in n-Dimensional space.
Implements transparent reference counting.
Size< VImageDimension > SizeType
Point< PointValueType, VImageDimension > PointType
ImageRegion< VImageDimension > RegionType
SpecialCoordinatesImage()=default
Offset< VImageDimension > OffsetType
Vector< SpacingValueType, VImageDimension > SpacingType
Index< VImageDimension > IndexType
A templated class holding a n-Dimensional vector.
Implements a weak reference to an object.
constexpr double pi_over_2
TInput RoundHalfIntegerUp(TInput x) template< typename TReturn
Round towards nearest integer (This is a synonym for RoundHalfIntegerUp)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)