Raytrix Light Field SDK
5.0
|
Provides methods for stacking images within a given mode using a CUDA device.
Inherits Rx::LFR::CPimpl< CImageStacking_Impl, Interfaces::EImageStacking::ID >.
Public Member Functions | |
CImageStacking () | |
Default constructor. More... | |
CImageStacking (CImageStacking &&xImageStacking) | |
Move constructor. More... | |
~CImageStacking () | |
Destructor. More... | |
void | AddImage (const CRxImage &xImage) |
Adds an image to the stack. The image is uploaded to the CUDA device and processed. More... | |
void | Clear () |
Clears the stack by resetting the internal counter to zero. More... | |
void | DownloadStackedImage (CRxImage &xImage) const |
Gets the stacked image if the stacking has been finished. More... | |
void | Free () |
Clears the stack and frees the memory used by this stack. The memory is reallocated by calling AddImage. More... | |
CImageStacking_Impl & | GetImpl () |
Gets the non constant implementation. More... | |
const CImageStacking_Impl & | GetImpl () const |
Gets the constant implementation. More... | |
void * | GetInterface (Interfaces::EImageStacking::ID eInterface) |
Gets the interface defined by the given interface ID. More... | |
TInterface * | GetInterface (Interfaces::EImageStacking::ID eInterface) |
Gets the interface defined by the given interface ID. More... | |
const void * | GetInterface (Interfaces::EImageStacking::ID eInterface) const |
Gets the interface defined by the given interface ID. More... | |
const TInterface * | GetInterface (Interfaces::EImageStacking::ID eInterface) const |
Gets the interface defined by the given interface ID. More... | |
bool | HasInterface (Interfaces::EImageStacking::ID eInterface) |
Queries if this object has the given interface. More... | |
bool | IsComplete () const |
Queries if the stack is complete. This is the case if the stack is full. More... | |
CImageStacking & | operator= (CImageStacking &&xImageStacking) |
Move assignment operator. More... | |
void | SetCudaDevice (const CCudaDevice &xCudaDevice) |
Sets the CUDA device that allocates the memory required for the stack operation and that runs the algorithm. More... | |
void | SetMaxImageCount (unsigned uMaxImageCount) |
Sets the maximum number of image on the stack. Resets the stacking result if changed. More... | |
void | SetStackingOperation (EImgStack::ID eStackingOp) |
Sets the stacking operation. Resets the stacking result if changed. More... | |
Rx::LFR::CImageStacking::CImageStacking | ( | ) |
Default constructor.
Rx::LFR::CImageStacking::CImageStacking | ( | CImageStacking && | xImageStacking | ) |
Move constructor.
xImageStacking | [in,out] The image stacking instance. |
Rx::LFR::CImageStacking::~CImageStacking | ( | ) |
Destructor.
void Rx::LFR::CImageStacking::AddImage | ( | const CRxImage & | xImage | ) |
Adds an image to the stack. The image is uploaded to the CUDA device and processed.
xImage | [in] The image to add. |
void Rx::LFR::CImageStacking::Clear | ( | ) |
Clears the stack by resetting the internal counter to zero.
void Rx::LFR::CImageStacking::DownloadStackedImage | ( | CRxImage & | xImage | ) | const |
Gets the stacked image if the stacking has been finished.
xImage | [out] The image. |
void Rx::LFR::CImageStacking::Free | ( | ) |
Clears the stack and frees the memory used by this stack. The memory is reallocated by calling AddImage.
|
inlineinherited |
Gets the non constant implementation.
|
inlineinherited |
Gets the constant implementation.
|
inherited |
Gets the interface defined by the given interface ID.
eInterface | [in] The interface ID. |
|
inlineinherited |
Gets the interface defined by the given interface ID.
TInterface | [in] The interface type. |
eInterface | [in] The interface. |
|
inherited |
Gets the interface defined by the given interface ID.
eInterface | [in] The interface ID. |
|
inlineinherited |
Gets the interface defined by the given interface ID.
TInterface | [in] The interface type. |
eInterface | [in] The interface ID. |
|
inlineinherited |
Queries if this object has the given interface.
eInterface | [in] The interface to query. |
bool Rx::LFR::CImageStacking::IsComplete | ( | ) | const |
Queries if the stack is complete. This is the case if the stack is full.
CImageStacking& Rx::LFR::CImageStacking::operator= | ( | CImageStacking && | xImageStacking | ) |
Move assignment operator.
xImageStacking | [in,out] The image stacking instance. |
void Rx::LFR::CImageStacking::SetCudaDevice | ( | const CCudaDevice & | xCudaDevice | ) |
Sets the CUDA device that allocates the memory required for the stack operation and that runs the algorithm.
xCudaDevice | [in] The CUDA device. |
void Rx::LFR::CImageStacking::SetMaxImageCount | ( | unsigned | uMaxImageCount | ) |
Sets the maximum number of image on the stack. Resets the stacking result if changed.
uMaxImageCount | [in] The maximum number of images. |
void Rx::LFR::CImageStacking::SetStackingOperation | ( | EImgStack::ID | eStackingOp | ) |
Sets the stacking operation. Resets the stacking result if changed.
eStackingOp | [in] The stacking operation. |