Astrometric image reprojection.
More...
#include <AstrometricReprojection.h>
|
static bool | TargetPointInsideSourceRect (const AstrometricMetadata &targetSolution, const AstrometricMetadata &sourceSolution, const DPoint &targetPt, const DRect &sourceRect) |
|
static DRect | TargetRect (const AstrometricMetadata &targetSolution, const AstrometricMetadata &sourceSolution, const Rect &sourceRect) |
|
static bool | TargetRectInsideSourceRect (const AstrometricMetadata &targetSolution, const AstrometricMetadata &sourceSolution, const DRect &targetRect, const DRect &sourceRect) |
|
template<class P > |
static void | ApplyGammaExponentCorrection (typename P::sample *samples, size_type length, double gamma, AbstractImage::ThreadData &threadData, int maxProcessors=PCL_MAX_PROCESSORS) |
|
template<class P > |
static void | ApplyInverseGammaExponentCorrection (typename P::sample *samples, size_type length, double gamma, AbstractImage::ThreadData &threadData, int maxProcessors=PCL_MAX_PROCESSORS) |
|
template<class P > |
static void | ApplyInverseSRGBGammaCorrection (typename P::sample *samples, size_type length, AbstractImage::ThreadData &threadData, int maxProcessors=PCL_MAX_PROCESSORS) |
|
template<class P > |
static void | ApplySRGBGammaCorrection (typename P::sample *samples, size_type length, AbstractImage::ThreadData &threadData, int maxProcessors=PCL_MAX_PROCESSORS) |
|
TODO: Write a detailed description for AstrometricReprojection
Definition at line 75 of file AstrometricReprojection.h.
◆ AstrometricReprojection() [1/2]
Constructs a new AstrometricReprojection object.
- Parameters
-
interpolation | Reference to a pixel interpolation for reprojection of source pixels. |
targetSolution | The astrometric solution of the target image. This object provides image-to-celestial coordinate transformations for reverse projection of interpolated source pixels on a target image. |
sourceSolution | The astrometric solution of the source image. This object provides celestial-to-image coordinate transformations for interpolation of source image pixels. |
sourceImage | The source image that will be reprojected. |
onTargetBounds | If true, the reprojection will be calculated for the entire target image bounds. If false, the reprojection will be calculated exclusively within the reprojected rectangular region in target solution coordinates. The default value is false. |
Setting onTargetBounds=true can be useful to accelerate reprojections performed on entire images, avoiding the performance penalty caused by the calculation of reprojected regions, when one knows in advance that the target solution is contained by the source solution. However, with onTargetBounds=false (default value), partial reprojections can be significantly accelerated by avoiding unnecessary calculations for pixels outside reprojected regions. This is typically the case of mosaic frame reprojections.
All objects specified in a call to this constructor must remain valid while this instance exists.
Definition at line 117 of file AstrometricReprojection.h.
◆ AstrometricReprojection() [2/2]
◆ Apply() [1/5]
void pcl::AstrometricReprojection::Apply |
( |
pcl::DImage & |
image | ) |
const |
|
overrideprotectedvirtual |
◆ Apply() [2/5]
void pcl::AstrometricReprojection::Apply |
( |
pcl::Image & |
image | ) |
const |
|
overrideprotectedvirtual |
◆ Apply() [3/5]
◆ Apply() [4/5]
◆ Apply() [5/5]
◆ GetNewSizes()
void pcl::AstrometricReprojection::GetNewSizes |
( |
int & |
width, |
|
|
int & |
height |
|
) |
| const |
|
inlineoverridevirtual |
Predicts transformed image dimensions.
- Parameters
-
[in,out] | width | Reference to a variable whose value is a horizontal dimension in pixels (width). On output, it will receive the predicted horizontal dimension after the transformation. |
[in,out] | height | Reference to a variable whose value is a vertical dimension in pixels (height). On output, it will receive the predicted vertical dimension after the transformation. |
- Note
- This is a pure virtual member function that must be reimplemented in every derived class.
Implements pcl::GeometricTransformation.
Definition at line 241 of file AstrometricReprojection.h.
◆ OnTargetBounds()
bool pcl::AstrometricReprojection::OnTargetBounds |
( |
| ) |
const |
|
inline |
Returns true iff this astrometric reprojection has been constructed to calculate reprojections on entire target images. See the class constructor for more information on partial and complete reprojections.
Definition at line 168 of file AstrometricReprojection.h.
◆ SourceImage()
const ImageVariant& pcl::AstrometricReprojection::SourceImage |
( |
| ) |
const |
|
inline |
◆ SourceSolution()
Returns a reference to the astrometric solution of the source image. The returned object provides celestial-to-image coordinate transformations for interpolation of source image pixels.
Definition at line 150 of file AstrometricReprojection.h.
◆ TargetPointInsideSourceRect()
Returns true iff the specified point in target solution coordinates lies inside the specified source solution coordinates after astrometric reprojection.
- Parameters
-
targetSolution | The target astrometric solution. |
sourceSolution | The source astrometric solution. |
targetPt | The target point in target solution coordinates. |
sourceRect | The source rectangular region in source solution coordinates. |
◆ TargetRect() [1/2]
const DRect& pcl::AstrometricReprojection::TargetRect |
( |
| ) |
const |
|
inline |
Returns the rectangle in target solution coordinates that encloses the boundaries of the reprojected source solution.
Definition at line 177 of file AstrometricReprojection.h.
◆ TargetRect() [2/2]
Returns a reprojected rectangle in source solution coordinates.
- Parameters
-
targetSolution | The target astrometric solution. |
sourceSolution | The source astrometric solution. |
sourceRect | The source rectangular region. |
This function throws an Error exception in the event of invalid coordinate transformations.
◆ TargetRectInsideSourceRect()
Returns true iff the specified rectangular region in target solution coordinates lies inside the specified source solution coordinates after astrometric reprojection.
- Parameters
-
targetSolution | The target astrometric solution. |
sourceSolution | The source astrometric solution. |
targetRect | The target rectangular region in target solution coordinates. |
sourceRect | The source rectangular region in source solution coordinates. |
◆ TargetSolution()
Returns a reference to the astrometric solution of the target image. The returned object provides image-to-celestial coordinate transformations for reverse projection of interpolated source pixels on a target image.
Definition at line 140 of file AstrometricReprojection.h.
◆ ZeroCount()
size_type pcl::AstrometricReprojection::ZeroCount |
( |
| ) |
const |
|
inline |
Returns the total number of black (zero) source pixels reprojected in the last process execution. This is useful to detect reprojection of empty source image regions.
Returns zero if this instante has not yet been executed.
Definition at line 252 of file AstrometricReprojection.h.
The documentation for this class was generated from the following file: