SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ModelFitting::ImageTraits< WriteableInterfaceTypePtr > Struct Reference

#include <WriteableImageInterfaceTraits.h>

Classes

class  WriteableSetter
class  WriteableIterator

Public Types

using iterator = WriteableIterator

Static Public Member Functions

static WriteableInterfaceTypePtr factory (std::size_t width, std::size_t height)
static std::size_t width (const WriteableInterfaceTypePtr &image)
static std::size_t height (const WriteableInterfaceTypePtr &image)
static WriteableSetter at (WriteableInterfaceTypePtr &image, std::size_t x, std::size_t y)
static ImageInterfaceType::PixelType at (const WriteableInterfaceTypePtr &image, std::size_t x, std::size_t y)
static iterator begin (const WriteableInterfaceTypePtr &image)
static iterator end (const WriteableInterfaceTypePtr &image)
static void addImageToImage (WriteableInterfaceTypePtr &image1, const WriteableInterfaceTypePtr &image2, double scale_factor, double x, double y)
static double getClamped (const WriteableInterfaceTypePtr &image, int x, int y)
static void shiftResize (const WriteableInterfaceTypePtr &source, WriteableInterfaceTypePtr &window, double scale_factor, double x_shift, double y_shift)
static void shiftResizeLancszos (const WriteableInterfaceTypePtr &source, WriteableInterfaceTypePtr &window, double scale_factor, double x_shift, double y_shift)

Detailed Description

Specialization of the ImageTraits for WriteableImage Can be used for WriteableBufferImages, for instance.

Warning
This specialization is very inefficient, but handy for generating test images

Definition at line 42 of file WriteableImageInterfaceTraits.h.

Member Typedef Documentation

◆ iterator

Member Function Documentation

◆ addImageToImage()

void ModelFitting::ImageTraits< WriteableInterfaceTypePtr >::addImageToImage ( WriteableInterfaceTypePtr & image1,
const WriteableInterfaceTypePtr & image2,
double scale_factor,
double x,
double y )
inlinestatic

Definition at line 226 of file WriteableImageInterfaceTraits.h.

References at(), std::ceil(), factory(), std::floor(), height(), std::max(), shiftResizeLancszos(), and width().

Here is the call graph for this function:

◆ at() [1/2]

◆ at() [2/2]

◆ begin()

◆ end()

◆ factory()

Definition at line 122 of file WriteableImageInterfaceTraits.h.

References SourceXtractor::VectorImage< T >::create(), height(), and width().

Referenced by addImageToImage().

Here is the call graph for this function:

◆ getClamped()

◆ height()

Definition at line 130 of file WriteableImageInterfaceTraits.h.

Referenced by addImageToImage(), and factory().

◆ shiftResize()

void ModelFitting::ImageTraits< WriteableInterfaceTypePtr >::shiftResize ( const WriteableInterfaceTypePtr & source,
WriteableInterfaceTypePtr & window,
double scale_factor,
double x_shift,
double y_shift )
inlinestatic

◆ shiftResizeLancszos()

◆ width()


The documentation for this struct was generated from the following file: