SourceXtractorPlusPlus  0.12
Please provide a description of the project.
Classes | Public Types | Static Public Member Functions | List of all members
ModelFitting::ImageTraits< WriteableInterfaceTypePtr > Struct Template Reference

#include <WriteableImageInterfaceTraits.h>

Classes

class  WriteableIterator
 
class  WriteableSetter
 

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

template<>
struct ModelFitting::ImageTraits< WriteableInterfaceTypePtr >

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 41 of file WriteableImageInterfaceTraits.h.

Member Typedef Documentation

◆ iterator

Definition at line 119 of file WriteableImageInterfaceTraits.h.

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 235 of file WriteableImageInterfaceTraits.h.

References ModelFitting::ImageTraits< ImageType >::at(), std::ceil(), ModelFitting::ImageTraits< ImageType >::factory(), std::floor(), ModelFitting::ImageTraits< ImageType >::height(), std::max(), SourceXtractor::shiftResizeLancszos(), ModelFitting::ImageTraits< ImageType >::width(), x, and y.

Here is the call graph for this function:

◆ at() [1/2]

static WriteableSetter ModelFitting::ImageTraits< WriteableInterfaceTypePtr >::at ( WriteableInterfaceTypePtr image,
std::size_t  x,
std::size_t  y 
)
inlinestatic

Definition at line 133 of file WriteableImageInterfaceTraits.h.

References x, and y.

◆ at() [2/2]

Definition at line 137 of file WriteableImageInterfaceTraits.h.

References x, and y.

◆ begin()

Definition at line 141 of file WriteableImageInterfaceTraits.h.

◆ end()

Definition at line 145 of file WriteableImageInterfaceTraits.h.

◆ factory()

Definition at line 121 of file WriteableImageInterfaceTraits.h.

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

Here is the call graph for this function:

◆ getClamped()

static double ModelFitting::ImageTraits< WriteableInterfaceTypePtr >::getClamped ( const WriteableInterfaceTypePtr image,
int  x,
int  y 
)
inlinestatic

Definition at line 152 of file WriteableImageInterfaceTraits.h.

References ModelFitting::ImageTraits< ImageType >::at(), ModelFitting::ImageTraits< ImageType >::height(), std::max(), std::min(), ModelFitting::ImageTraits< ImageType >::width(), x, and y.

Here is the call graph for this function:

◆ height()

Definition at line 129 of file WriteableImageInterfaceTraits.h.

◆ shiftResize()

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

Definition at line 158 of file WriteableImageInterfaceTraits.h.

References std::floor(), SourceXtractor::getClamped(), ModelFitting::ImageTraits< ImageType >::height(), ModelFitting::ImageTraits< ImageType >::width(), x, and y.

Here is the call graph for this function:

◆ shiftResizeLancszos()

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

Definition at line 186 of file WriteableImageInterfaceTraits.h.

References ModelFitting::ImageTraits< ImageType >::height(), SourceXtractor::INTERP_LANCZOS4, INTERP_MAXKERNELWIDTH, SourceXtractor::interpolate_pix(), ModelFitting::ImageTraits< ImageType >::width(), x, and y.

Here is the call graph for this function:

◆ width()

Definition at line 125 of file WriteableImageInterfaceTraits.h.


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