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) -> 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.

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)

Create instance.

Returns instance

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

Set whether incoming patches are cropped or not.

Parameters
cropped