SourceXtractorPlusPlus  0.16
Please provide a description of the project.
Classes | Public Types | Static Public Member Functions | List of all members
ModelFitting::ImageTraits< WriteableInterfaceTypePtr > Struct 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

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

Definition at line 120 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 226 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]

Definition at line 138 of file WriteableImageInterfaceTraits.h.

References SourceXtractor::ImageAccessor< T >::getValue(), x, and y.

Here is the call graph for this function:

◆ at() [2/2]

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

Definition at line 134 of file WriteableImageInterfaceTraits.h.

References x, and y.

◆ begin()

Definition at line 143 of file WriteableImageInterfaceTraits.h.

◆ end()

Definition at line 147 of file WriteableImageInterfaceTraits.h.

◆ factory()

Definition at line 122 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 154 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 130 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 160 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 188 of file WriteableImageInterfaceTraits.h.

References SourceXtractor::ImageAccessor< T >::getValue(), 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 126 of file WriteableImageInterfaceTraits.h.


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