PCL
|
Multiple histogram transformation. More...
#include <HistogramTransformation.h>
Classes | |
struct | Flags |
Characterizes a histogram transformation pertaining to a histogram transformation chain. More... | |
Public Types | |
using | transformation_list = Array< HistogramTransformation > |
Public Member Functions | |
HistogramTransformation (const HistogramTransformation &)=default | |
HistogramTransformation (double mb=0.5, double sc=0, double hc=1, double lr=0, double hr=1) | |
HistogramTransformation (HistogramTransformation &&)=default | |
~HistogramTransformation () override | |
void | Add (const HistogramTransformation &H) |
void | Apply (double *, size_type, double x0=0, double x1=1) const |
void | Apply (float *, size_type, float x0=0, float x1=1) const |
void | Apply (Histogram &dstH, const Histogram &srcH) const |
virtual void | Apply (pcl::ComplexImage &image) const |
virtual void | Apply (pcl::DComplexImage &image) const |
virtual void | Apply (pcl::DImage &image) const |
virtual void | Apply (pcl::Image &image) const |
virtual void | Apply (pcl::UInt16Image &image) const |
virtual void | Apply (pcl::UInt32Image &image) const |
virtual void | Apply (pcl::UInt8Image &image) const |
double | HighlightsClipping () const |
double | HighRange () const |
bool | IsIdentityTransformation () const |
bool | IsIdentityTransformationSet () const |
size_type | Length () const |
double | LowRange () const |
void | Make16BitLUT (uint16 *) const |
void | Make16BitLUT (uint8 *) const |
void | Make20BitLUT (uint16 *) const |
void | Make20BitLUT (uint8 *) const |
void | Make24BitLUT (uint16 *) const |
void | Make24BitLUT (uint8 *) const |
void | Make8BitLUT (uint8 *) const |
double | MidtonesBalance () const |
HistogramTransformation & | operator* () |
const HistogramTransformation & | operator* () const |
HistogramTransformation & | operator= (const HistogramTransformation &)=default |
HistogramTransformation & | operator= (HistogramTransformation &&)=default |
HistogramTransformation & | operator[] (size_type index) |
const HistogramTransformation & | operator[] (size_type index) const |
void | Reset () |
void | SetClipping (double sc, double hc) |
void | SetHighlightsClipping (double c) |
void | SetHighRange (double r) |
void | SetLowRange (double r) |
void | SetMidtonesBalance (double b) |
void | SetRange (double lr, double hr) |
void | SetShadowsClipping (double c) |
double | ShadowsClipping () const |
void | Transform (double &value) const |
Flags | TransformationFlags () const |
Public Member Functions inherited from pcl::ImageTransformation | |
ImageTransformation ()=default | |
ImageTransformation (const ImageTransformation &)=default | |
virtual | ~ImageTransformation () |
template<class P > | |
GenericImage< P > & | operator>> (GenericImage< P > &image) const |
ImageVariant & | operator>> (ImageVariant &image) const |
Public Member Functions inherited from pcl::ParallelProcess | |
ParallelProcess ()=default | |
ParallelProcess (const ParallelProcess &)=default | |
virtual | ~ParallelProcess () |
void | DisableParallelProcessing (bool disable=true) noexcept |
void | EnableParallelProcessing (bool enable=true, int maxProcessors=0) noexcept |
bool | IsParallelProcessingEnabled () const noexcept |
int | MaxProcessors () const noexcept |
ParallelProcess & | operator= (const ParallelProcess &)=default |
void | SetMaxProcessors (int maxProcessors) noexcept |
void | Swap (ParallelProcess &process) noexcept |
Static Public Member Functions | |
static double | MidtonesTransferFunction (double m, double x) |
static double | MTF (double m, double x) |
Additional Inherited Members | |
Protected Member Functions inherited from pcl::ImageTransformation | |
virtual void | Apply (pcl::ComplexImage &image) const |
virtual void | Apply (pcl::DComplexImage &image) const |
Definition at line 76 of file HistogramTransformation.h.
Represents a set of chained histogram transformations.
Definition at line 83 of file HistogramTransformation.h.
|
inline |
Constructs a HistogramTransformation object with the specified parameters.
mb | Midtones balance in the range [0,1]. |
sc | Shadows clipping point in the range [0,1]. |
hc | Highlights clipping point in the range [0,1]. |
lr | Low dynamic range expansion bound, lr ≤ 0. |
hr | High dynamic range expansion bound, hr ≥ 1. |
The default parameter values define an identity transformation:
mb = 0.5, sc = 0, hc = 1, lr = 0, hr = 1.
Definition at line 103 of file HistogramTransformation.h.
References pcl::Range().
|
default |
Copy constructor.
|
default |
Move constructor.
|
inlineoverride |
Destroys a HistogramTransformation object.
Definition at line 135 of file HistogramTransformation.h.
|
inline |
Adds a histogram transformation to the transformation chain of this HistogramTransformation object.
Definition at line 199 of file HistogramTransformation.h.
void pcl::HistogramTransformation::Apply | ( | double * | , |
size_type | , | ||
double | x0 = 0 , |
||
double | x1 = 1 |
||
) | const |
#
void pcl::HistogramTransformation::Apply | ( | float * | , |
size_type | , | ||
float | x0 = 0 , |
||
float | x1 = 1 |
||
) | const |
#
|
inline |
Applies this transformation to a 32-bit complex image.
Definition at line 183 of file ImageTransformation.h.
|
inline |
Applies this transformation to a 64-bit complex image.
Definition at line 191 of file ImageTransformation.h.
|
inline |
Applies this transformation to a 64-bit floating point image.
Definition at line 175 of file ImageTransformation.h.
|
inline |
Applies this transformation to a 32-bit floating point image.
Definition at line 167 of file ImageTransformation.h.
|
inline |
Applies this transformation to a 16-bit unsigned integer image.
Definition at line 207 of file ImageTransformation.h.
|
inline |
Applies this transformation to a 32-bit unsigned integer image.
Definition at line 215 of file ImageTransformation.h.
|
inline |
Applies this transformation to an 8-bit unsigned integer image.
Definition at line 199 of file ImageTransformation.h.
|
inline |
#
Definition at line 220 of file HistogramTransformation.h.
|
inline |
#
Definition at line 234 of file HistogramTransformation.h.
|
inline |
#
Definition at line 241 of file HistogramTransformation.h.
bool pcl::HistogramTransformation::IsIdentityTransformationSet | ( | ) | const |
#
|
inline |
Returns the number of histogram transforms in the transformation chain.
Definition at line 152 of file HistogramTransformation.h.
|
inline |
#
Definition at line 227 of file HistogramTransformation.h.
void pcl::HistogramTransformation::Make16BitLUT | ( | uint16 * | ) | const |
#
void pcl::HistogramTransformation::Make16BitLUT | ( | uint8 * | ) | const |
#
void pcl::HistogramTransformation::Make20BitLUT | ( | uint16 * | ) | const |
#
void pcl::HistogramTransformation::Make20BitLUT | ( | uint8 * | ) | const |
#
void pcl::HistogramTransformation::Make24BitLUT | ( | uint16 * | ) | const |
#
void pcl::HistogramTransformation::Make24BitLUT | ( | uint8 * | ) | const |
#
void pcl::HistogramTransformation::Make8BitLUT | ( | uint8 * | ) | const |
#
|
inline |
#
Definition at line 206 of file HistogramTransformation.h.
|
inlinestatic |
Returns the value of the midtones transfer function (MTF) for a given midtones balance m and a sample point x. Both m and x must be in the range [0,1].
Definition at line 388 of file HistogramTransformation.h.
|
inlinestatic |
A convenience synonym for MidtonesTransferFunction( m, x ).
Definition at line 425 of file HistogramTransformation.h.
|
inline |
Returns a reference to the (mutable) first histogram transformation in the current chain. The returned value is always a reference to this object.
Definition at line 190 of file HistogramTransformation.h.
|
inline |
Returns a reference to the (immutable) first histogram transformation in the current chain. The returned value is always a reference to this object.
Definition at line 180 of file HistogramTransformation.h.
|
default |
Copy assignment operator. Returns a reference to this object.
|
default |
Move assignment operator. Returns a reference to this object.
|
inline |
Returns a reference to the (mutable) transformation at the specified index in this transformation chain.
Definition at line 170 of file HistogramTransformation.h.
|
inline |
Returns a reference to the (immutable) transformation at the specified index in the current transformation chain.
Definition at line 161 of file HistogramTransformation.h.
|
inline |
Resets all transformation parameters to yield an identity histogram transformation.
Definition at line 329 of file HistogramTransformation.h.
|
inline |
#
Definition at line 285 of file HistogramTransformation.h.
|
inline |
#
Definition at line 274 of file HistogramTransformation.h.
|
inline |
|
inline |
|
inline |
#
Definition at line 254 of file HistogramTransformation.h.
|
inline |
|
inline |
#
Definition at line 263 of file HistogramTransformation.h.
|
inline |
#
Definition at line 213 of file HistogramTransformation.h.
|
inline |
Transforms a real value in the normalized [0,1] range.
Definition at line 433 of file HistogramTransformation.h.
|
inline |
Returns the set of flags characterizing this histogram transformation.
Definition at line 490 of file HistogramTransformation.h.