fast::PatchStitcher class

Stitch a stream of processed patches from the PatchGenerator.

This process object stitches a stream of processed Image/Tensor patches into an ImagePyramid, 2D or 3D Image or Tensor depending on the patch source.

Inputs: 0 - Image/Tensor: A stream of processed patches from PatchGenerator Outputs: 0 - ImagePyramid/Image/Tensor: The stitched image/image pyramid.

Base classes

class ProcessObject
Abstract base class for all process objects.

Public functions

auto create(bool patchesAreCropped, bool forceImagePyramidOutput) -> std::shared_ptr<PatchStitcher>
Create instance.
void loadAttributes() override
void setPatchesAreCropped(bool cropped)
Set whether incoming patches are cropped or not.
auto getPatchesAreCropped() const -> bool
Get whether incoming patches are cropped or not.
void setForceImagePyramidOutput(bool force)
Force output to always be an image pyramid, if source was an image pyramid, even if output is small.
auto getForceImagePyramidOutput() const -> bool
Get whether output should be forced to be image pyramid.

Protected functions

void execute() override
void processTensor(std::shared_ptr<Tensor> tensor)
void processImage(std::shared_ptr<Image> tensor)

Protected variables

std::shared_ptr<Image> m_outputImage
std::shared_ptr<Tensor> m_outputTensor
std::shared_ptr<ImagePyramid> m_outputImagePyramid

Function documentation

std::shared_ptr<PatchStitcher> fast::PatchStitcher::create(bool patchesAreCropped, bool forceImagePyramidOutput)

Create instance.

Parameters
patchesAreCropped
forceImagePyramidOutput Force output to always be an image pyramid, if source was an image pyramid, even if output is small.
Returns instance

void fast::PatchStitcher::setPatchesAreCropped(bool cropped)

Set whether incoming patches are cropped or not.

Parameters
cropped

void fast::PatchStitcher::setForceImagePyramidOutput(bool force)

Force output to always be an image pyramid, if source was an image pyramid, even if output is small.

Parameters
force