Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
Loading...
Searching...
No Matches
Common
Transforms
itkTransformToDeterminantOfSpatialJacobianSource.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright UMC Utrecht and contributors
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0.txt
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*=========================================================================*/
18
/*=========================================================================
19
20
Program: Insight Segmentation & Registration Toolkit
21
Module: $RCSfile: itkTransformToDeterminantOfSpatialJacobianSource.h,v $
22
Date: $Date: 2008-08-01 13:42:00 $
23
Version: $Revision: 1.3 $
24
25
Copyright (c) Insight Software Consortium. All rights reserved.
26
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
27
28
This software is distributed WITHOUT ANY WARRANTY; without even
29
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
30
PURPOSE. See the above copyright notices for more information.
31
32
=========================================================================*/
33
#ifndef itkTransformToDeterminantOfSpatialJacobianSource_h
34
#define itkTransformToDeterminantOfSpatialJacobianSource_h
35
36
#include "
itkAdvancedTransform.h
"
37
#include "
itkAdvancedIdentityTransform.h
"
38
#include "itkImageSource.h"
39
40
namespace
itk
41
{
42
73
template
<
class
TOutputImage,
class
TTransformPrecisionType =
double
>
74
class
ITK_TEMPLATE_EXPORT
TransformToDeterminantOfSpatialJacobianSource
:
public
ImageSource<TOutputImage>
75
{
76
public
:
77
ITK_DISALLOW_COPY_AND_MOVE
(
TransformToDeterminantOfSpatialJacobianSource
);
78
80
using
Self
=
TransformToDeterminantOfSpatialJacobianSource
;
81
using
Superclass
= ImageSource<TOutputImage>;
82
using
Pointer
= SmartPointer<Self>;
83
using
ConstPointer
= SmartPointer<const Self>;
84
85
using
OutputImageType
= TOutputImage;
86
using
OutputImagePointer
=
typename
OutputImageType::Pointer;
87
using
OutputImageConstPointer
=
typename
OutputImageType::ConstPointer;
88
using
OutputImageRegionType
=
typename
OutputImageType::RegionType;
89
91
itkNewMacro(
Self
);
92
94
itkTypeMacro(
TransformToDeterminantOfSpatialJacobianSource
, ImageSource);
95
97
itkStaticConstMacro
(ImageDimension,
unsigned
int
, TOutputImage::ImageDimension);
98
100
using
TransformType
=
AdvancedTransform<TTransformPrecisionType, Self::ImageDimension, Self::ImageDimension>
;
101
using
TransformPointerType
=
typename
TransformType::ConstPointer;
102
using
SpatialJacobianType
=
typename
TransformType::SpatialJacobianType;
103
105
using
PixelType =
typename
OutputImageType::PixelType;
106
// typedef typename PixelType::ValueType PixelValueType;
107
using
RegionType
=
typename
OutputImageType::RegionType;
108
using
SizeType
=
typename
RegionType::SizeType;
109
using
IndexType
=
typename
OutputImageType::IndexType;
110
using
PointType
=
typename
OutputImageType::PointType;
111
using
SpacingType
=
typename
OutputImageType::SpacingType;
112
using
OriginType
=
typename
OutputImageType::PointType;
113
using
DirectionType
=
typename
OutputImageType::DirectionType;
114
116
using
ImageBaseType
= ImageBase<Self::ImageDimension>;
117
125
itkSetConstObjectMacro(Transform,
TransformType
);
126
128
itkGetConstObjectMacro(Transform,
TransformType
);
129
131
virtual
void
132
SetOutputSize
(
const
SizeType
& size);
133
135
virtual
const
SizeType
&
136
GetOutputSize
();
137
140
virtual
void
141
SetOutputIndex
(
const
IndexType
& index);
142
144
virtual
const
IndexType
&
145
GetOutputIndex
();
146
148
itkSetMacro(OutputRegion,
OutputImageRegionType
);
149
151
itkGetConstReferenceMacro(OutputRegion,
OutputImageRegionType
);
152
154
itkSetMacro(OutputSpacing,
SpacingType
);
155
virtual
void
156
SetOutputSpacing
(
const
double
* values);
157
159
itkGetConstReferenceMacro(OutputSpacing,
SpacingType
);
160
162
itkSetMacro(OutputOrigin,
OriginType
);
163
virtual
void
164
SetOutputOrigin
(
const
double
* values);
165
167
itkGetConstReferenceMacro(OutputOrigin,
OriginType
);
168
170
itkSetMacro(OutputDirection,
DirectionType
);
171
itkGetConstReferenceMacro(OutputDirection,
DirectionType
);
172
174
void
175
SetOutputParametersFromImage
(
const
ImageBaseType
* image);
176
178
void
179
GenerateOutputInformation
()
override
;
180
183
void
184
BeforeThreadedGenerateData
()
override
;
185
187
ModifiedTimeType
188
GetMTime
()
const override
;
189
190
protected
:
191
TransformToDeterminantOfSpatialJacobianSource
();
192
~TransformToDeterminantOfSpatialJacobianSource
()
override
=
default
;
193
194
void
195
PrintSelf
(std::ostream & os, Indent indent)
const override
;
196
200
void
201
ThreadedGenerateData
(
const
OutputImageRegionType
& outputRegionForThread, ThreadIdType threadId)
override
;
202
206
void
207
NonlinearThreadedGenerateData
(
const
OutputImageRegionType
& outputRegionForThread, ThreadIdType threadId);
208
211
void
212
LinearGenerateData
();
213
214
private
:
216
RegionType
m_OutputRegion{};
// region of the output image
217
TransformPointerType
m_Transform{
218
AdvancedIdentityTransform<TTransformPrecisionType, ImageDimension>::New
()
219
};
// Coordinate transform to use
220
SpacingType
m_OutputSpacing{ 1.0 };
// output image spacing
221
OriginType
m_OutputOrigin{};
// output image origin
222
DirectionType
m_OutputDirection{ DirectionType::GetIdentity() };
// output image direction cosines
223
};
224
225
}
// end namespace itk
226
227
#ifndef ITK_MANUAL_INSTANTIATION
228
# include "itkTransformToDeterminantOfSpatialJacobianSource.hxx"
229
#endif
230
231
#endif
// end #ifndef itkTransformToDeterminantOfSpatialJacobianSource_h
SmartPointer< Self >
itk::AdvancedIdentityTransform
Implementation of an Identity Transform.
Definition
itkAdvancedIdentityTransform.h:73
itk::AdvancedTransform
Transform maps points, vectors and covariant vectors from an input space to an output space.
Definition
itkAdvancedTransform.h:84
itk::TransformToDeterminantOfSpatialJacobianSource
Generate the spatial Jacobian from a coordinate transform.
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:75
itk::TransformToDeterminantOfSpatialJacobianSource::TransformType
AdvancedTransform< TTransformPrecisionType, Self::ImageDimension, Self::ImageDimension > TransformType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:100
itk::TransformToDeterminantOfSpatialJacobianSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:86
itk::TransformToDeterminantOfSpatialJacobianSource::GetOutputIndex
virtual const IndexType & GetOutputIndex()
itk::TransformToDeterminantOfSpatialJacobianSource::SetOutputSpacing
virtual void SetOutputSpacing(const double *values)
itk::TransformToDeterminantOfSpatialJacobianSource::SetOutputIndex
virtual void SetOutputIndex(const IndexType &index)
itk::TransformToDeterminantOfSpatialJacobianSource::itkStaticConstMacro
itkStaticConstMacro(ImageDimension, unsigned int, TOutputImage::ImageDimension)
itk::TransformToDeterminantOfSpatialJacobianSource::Superclass
ImageSource< TOutputImage > Superclass
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:81
itk::TransformToDeterminantOfSpatialJacobianSource::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::TransformToDeterminantOfSpatialJacobianSource::SpacingType
typename OutputImageType::SpacingType SpacingType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:111
itk::TransformToDeterminantOfSpatialJacobianSource::ThreadedGenerateData
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
itk::TransformToDeterminantOfSpatialJacobianSource::BeforeThreadedGenerateData
void BeforeThreadedGenerateData() override
itk::TransformToDeterminantOfSpatialJacobianSource::GenerateOutputInformation
void GenerateOutputInformation() override
itk::TransformToDeterminantOfSpatialJacobianSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:88
itk::TransformToDeterminantOfSpatialJacobianSource::LinearGenerateData
void LinearGenerateData()
itk::TransformToDeterminantOfSpatialJacobianSource::OriginType
typename OutputImageType::PointType OriginType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:112
itk::TransformToDeterminantOfSpatialJacobianSource::NonlinearThreadedGenerateData
void NonlinearThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
itk::TransformToDeterminantOfSpatialJacobianSource::RegionType
typename OutputImageType::RegionType RegionType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:107
itk::TransformToDeterminantOfSpatialJacobianSource::SizeType
typename RegionType::SizeType SizeType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:108
itk::TransformToDeterminantOfSpatialJacobianSource::~TransformToDeterminantOfSpatialJacobianSource
~TransformToDeterminantOfSpatialJacobianSource() override=default
itk::TransformToDeterminantOfSpatialJacobianSource::TransformPointerType
typename TransformType::ConstPointer TransformPointerType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:101
itk::TransformToDeterminantOfSpatialJacobianSource::TransformToDeterminantOfSpatialJacobianSource
TransformToDeterminantOfSpatialJacobianSource()
itk::TransformToDeterminantOfSpatialJacobianSource::IndexType
typename OutputImageType::IndexType IndexType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:109
itk::TransformToDeterminantOfSpatialJacobianSource::SetOutputOrigin
virtual void SetOutputOrigin(const double *values)
itk::TransformToDeterminantOfSpatialJacobianSource::GetMTime
ModifiedTimeType GetMTime() const override
itk::TransformToDeterminantOfSpatialJacobianSource::DirectionType
typename OutputImageType::DirectionType DirectionType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:113
itk::TransformToDeterminantOfSpatialJacobianSource::SetOutputSize
virtual void SetOutputSize(const SizeType &size)
itk::TransformToDeterminantOfSpatialJacobianSource::PointType
typename OutputImageType::PointType PointType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:110
itk::TransformToDeterminantOfSpatialJacobianSource::ImageBaseType
ImageBase< Self::ImageDimension > ImageBaseType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:116
itk::TransformToDeterminantOfSpatialJacobianSource::SpatialJacobianType
typename TransformType::SpatialJacobianType SpatialJacobianType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:102
itk::TransformToDeterminantOfSpatialJacobianSource::SetOutputParametersFromImage
void SetOutputParametersFromImage(const ImageBaseType *image)
itk::TransformToDeterminantOfSpatialJacobianSource::GetOutputSize
virtual const SizeType & GetOutputSize()
itk::TransformToDeterminantOfSpatialJacobianSource::OutputImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:87
itk::TransformToDeterminantOfSpatialJacobianSource::OutputImageType
TOutputImage OutputImageType
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:85
itk::TransformToDeterminantOfSpatialJacobianSource::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(TransformToDeterminantOfSpatialJacobianSource)
itk::TransformToDeterminantOfSpatialJacobianSource::ConstPointer
SmartPointer< const Self > ConstPointer
Definition
itkTransformToDeterminantOfSpatialJacobianSource.h:83
itkAdvancedIdentityTransform.h
itkAdvancedTransform.h
itk
Definition
itkAdvancedImageToImageMetric.h:43
Generated on 1739326392 for elastix by
1.9.8