template<typename T, unsigned int VVectorDimension = 3>
class itk::Vector< T, VVectorDimension >
A templated class holding a n-Dimensional vector.
Vector is a templated class that holds a single vector (i.e., an array of values). Vector can be used as the data type held at each pixel in an Image or at each vertex of an Mesh. The template parameter T can be any data type that behaves like a primitive (or atomic) data type (int, short, float, complex). The VVectorDimension defines the number of components in the vector array.
Vector is not a dynamically extendible array like std::vector. It is intended to be used like a mathematical vector.
If you wish a simpler pixel types, you can use Scalar, which represents a single data value at a pixel. There is also the more complex type ScalarVector, which supports (for a given pixel) a single scalar value plus an array of vector values. (The scalar and vectors can be of different data type.)
- See also
- Image
-
Mesh
-
Point
-
CovariantVector
-
Matrix
- ITK Sphinx Examples:
-
- Examples
- Examples/DataRepresentation/Image/Image4.cxx, Examples/DataRepresentation/Image/VectorImage.cxx, Examples/DataRepresentation/Mesh/MeshTraits.cxx, Examples/DataRepresentation/Mesh/PointSetWithVectors.cxx, Examples/Filtering/GradientVectorFlowImageFilter.cxx, Examples/Filtering/WarpImageFilter1.cxx, Examples/IO/VectorImageReadWrite.cxx, Examples/RegistrationITKv4/BSplineWarping1.cxx, Examples/RegistrationITKv4/BSplineWarping2.cxx, Examples/RegistrationITKv4/DeformableRegistration10.cxx, Examples/RegistrationITKv4/DeformableRegistration12.cxx, Examples/RegistrationITKv4/DeformableRegistration13.cxx, Examples/RegistrationITKv4/DeformableRegistration14.cxx, Examples/RegistrationITKv4/DeformableRegistration15.cxx, Examples/RegistrationITKv4/DeformableRegistration16.cxx, Examples/RegistrationITKv4/DeformableRegistration17.cxx, Examples/RegistrationITKv4/DeformableRegistration2.cxx, Examples/RegistrationITKv4/DeformableRegistration3.cxx, Examples/RegistrationITKv4/DeformableRegistration4.cxx, Examples/RegistrationITKv4/DeformableRegistration5.cxx, Examples/RegistrationITKv4/DeformableRegistration6.cxx, Examples/RegistrationITKv4/DeformableRegistration7.cxx, Examples/RegistrationITKv4/DeformableRegistration8.cxx, Examples/RegistrationITKv4/DeformableRegistration9.cxx, Examples/RegistrationITKv4/DisplacementFieldInitialization.cxx, Examples/RegistrationITKv4/LandmarkWarping2.cxx, Examples/RegistrationITKv4/ThinPlateSplineWarp.cxx, Examples/Segmentation/WatershedSegmentation1.cxx, Examples/Statistics/BayesianPluginClassifier.cxx, Examples/Statistics/ExpectationMaximizationMixtureModelEstimator.cxx, Examples/Statistics/GaussianMembershipFunction.cxx, Examples/Statistics/KdTree.cxx, Examples/Statistics/KdTreeBasedKMeansClustering.cxx, Examples/Statistics/ListSample.cxx, Examples/Statistics/MembershipSample.cxx, Examples/Statistics/MembershipSampleGenerator.cxx, Examples/Statistics/NeighborhoodSampler.cxx, Examples/Statistics/SampleSorting.cxx, Examples/Statistics/SampleStatistics.cxx, Examples/Statistics/SampleToHistogramFilter.cxx, Examples/Statistics/SelectiveSubsampleGenerator.cxx, Examples/Statistics/Subsample.cxx, and Examples/Statistics/WeightedSampleStatistics.cxx.
Definition at line 62 of file itkVector.h.
|
template<typename TCoordinateB> |
void | CastFrom (const Vector< TCoordinateB, VVectorDimension > &pa) |
|
RealValueType | GetNorm () const |
|
RealValueType | GetSquaredNorm () const |
|
vnl_vector_ref< T > | GetVnlVector () |
|
vnl_vector< T > | GetVnlVector () const |
|
| ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (Self) |
|
RealValueType | Normalize () |
|
template<typename TCoordinateB> |
| operator Vector< TCoordinateB, VVectorDimension > () |
|
ValueType | operator* (const Self &other) const |
|
Self | operator* (const ValueType &value) const |
|
template<typename Tt> |
const Self & | operator*= (const Tt &value) |
|
Self | operator+ (const Self &vec) const |
|
const Self & | operator+= (const Self &vec) |
|
Self | operator- () const |
|
Self | operator- (const Self &vec) const |
|
const Self & | operator-= (const Self &vec) |
|
template<typename Tt> |
Self | operator/ (const Tt &value) const |
|
template<typename Tt> |
const Self & | operator/= (const Tt &value) |
|
Vector & | operator= (const ValueType r[VVectorDimension]) |
|
template<typename TVectorValueType> |
Vector & | operator= (const Vector< TVectorValueType, VVectorDimension > &r) |
|
bool | operator== (const Self &v) const |
|
void | SetNthComponent (int c, const ComponentType &v) |
|
void | SetVnlVector (const vnl_vector< T > &) |
|
| Vector ()=default |
|
| Vector (const std::array< ValueType, VVectorDimension > &stdArray) |
|
| Vector (const ValueType &r) |
|
| Vector (std::nullptr_t)=delete |
|
|
template<typename TVectorValueType> |
| Vector (const Vector< TVectorValueType, VVectorDimension > &r) |
|
| Vector (const ValueType r[Dimension]) |
|
template<typename TVectorValueType> |
| Vector (const TVectorValueType r[Dimension]) |
|
Iterator | Begin () |
|
ConstIterator | Begin () const |
|
constexpr const_iterator | begin () const noexcept |
|
constexpr iterator | begin () noexcept |
|
constexpr const_iterator | cbegin () const noexcept |
|
constexpr const_iterator | cend () const noexcept |
|
const_reverse_iterator | crbegin () const |
|
const_reverse_iterator | crend () const |
|
ValueType * | data () |
|
const ValueType * | data () const |
|
Iterator | End () |
|
ConstIterator | End () const |
|
constexpr const_iterator | end () const noexcept |
|
constexpr iterator | end () noexcept |
|
void | Fill (const ValueType &) |
|
| FixedArray ()=default |
|
| FixedArray (const FixedArray< TFixedArrayValueType, VLength > &r) |
|
| FixedArray (const std::array< ValueType, VLength > &stdArray) |
|
| FixedArray (const TScalarValue *r) |
|
ValueType * | GetDataPointer () |
|
const ValueType * | GetDataPointer () const |
|
| ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (FixedArray) |
|
FixedArray & | operator= (const FixedArray< TFixedArrayValueType, VLength > &r) |
|
FixedArray & | operator= (const ValueType r[VLength]) |
|
bool | operator== (const FixedArray &r) const |
|
ReverseIterator | rBegin () |
|
ConstReverseIterator | rBegin () const |
|
reverse_iterator | rbegin () |
|
const_reverse_iterator | rbegin () const |
|
ReverseIterator | rEnd () |
|
ConstReverseIterator | rEnd () const |
|
reverse_iterator | rend () |
|
const_reverse_iterator | rend () const |
|
SizeType | Size () const |
|
constexpr SizeType | size () const |
|
void | swap (FixedArray &other) noexcept |
|
| FixedArray (const ValueType r[VLength]) |
|
| FixedArray (const ValueType &) |
|
ITK_GCC_PRAGMA_PUSH ITK_GCC_SUPPRESS_Warray_bounds constexpr reference | operator[] (unsigned int index) |
|
constexpr const_reference | operator[] (unsigned int index) const |
|
ITK_GCC_PRAGMA_POP void | SetElement (unsigned int index, const_reference value) |
|
const_reference | GetElement (unsigned int index) const |
|