PICCANTE  0.4
The hottest HDR imaging library!
Public Member Functions | Public Attributes | List of all members
pic::pic::BBox Class Reference

The BBox class manages the creation of bounding boxes for images. More...

#include <filter_radial_basis_function.hpp>

Public Member Functions

 BBox ()
 BBox is a basic constructor. It does nothing. More...
 
 BBox (int width, int height)
 BBox is a constructor setting the BBox up. More...
 
 BBox (int width, int height, int frames)
 BBox is a constructor setting the BBox up. More...
 
 BBox (int x0, int x1, int y0, int y1)
 BBox is a constructor setting the BBox up. More...
 
 BBox (int x0, int x1, int y0, int y1, int width, int height)
 BBox is a constructor setting the BBox up. More...
 
 BBox (int x0, int y0, int size, int width, int height)
 BBox. More...
 
int Size ()
 Size computes the number of pixels in a bounding box. More...
 
void setBox (int x0, int x1, int y0, int y1, int z0, int z1, int width, int height, int frames)
 setBox sets a BBox up. More...
 
void setCentered (int x0, int y0, int size, int width, int height)
 SetCentered. More...
 
void getFourBlocks (int width, int height, int i)
 getFourBlocks sets the BBox as a quadrant of a given size. More...
 
std::string toString ()
 toString returns a string representation of BBox More...
 

Public Attributes

int x0
 
int y0
 
int z0
 
int x1
 
int y1
 
int z1
 
int width
 
int height
 
int frames
 

Detailed Description

The BBox class manages the creation of bounding boxes for images.

Constructor & Destructor Documentation

◆ BBox() [1/6]

pic::pic::BBox::BBox ( )
inline

BBox is a basic constructor. It does nothing.

◆ BBox() [2/6]

pic::pic::BBox::BBox ( int  width,
int  height 
)
inline

BBox is a constructor setting the BBox up.

Parameters
widthis the maxium horizontal coordinate in pixels. The minimum is set to 0.
heightis the maxium vertical coordinate in pixels. The minimum is set to 0.

◆ BBox() [3/6]

pic::pic::BBox::BBox ( int  width,
int  height,
int  frames 
)
inline

BBox is a constructor setting the BBox up.

Parameters
widthis the maxium horizontal coordinate in pixels. The minimum is set to 0.
heightis the maxium vertical coordinate in pixels. The minimum is set to 0.
framesis the maxium temporal coordinate in pixels. The minimum is set to 0.

◆ BBox() [4/6]

pic::pic::BBox::BBox ( int  x0,
int  x1,
int  y0,
int  y1 
)
inline

BBox is a constructor setting the BBox up.

Parameters
x0is the minimum horizontal coordinate in pixels.
x1is the maximum horizontal coordinate in pixels.
y0is the minimum vertical coordinate in pixels.
y1is the maximum vertical coordinate in pixels.

◆ BBox() [5/6]

pic::pic::BBox::BBox ( int  x0,
int  x1,
int  y0,
int  y1,
int  width,
int  height 
)
inline

BBox is a constructor setting the BBox up.

Parameters
x0is the minimum horizontal coordinate in pixels.
x1is the maximum horizontal coordinate in pixels.
y0is the minimum vertical coordinate in pixels.
y1is the maximum vertical coordinate in pixels.
widthis the horizontal size in pixels.
heightis the vertical size in pixels.

◆ BBox() [6/6]

pic::pic::BBox::BBox ( int  x0,
int  y0,
int  size,
int  width,
int  height 
)
inline

BBox.

Parameters
x0is the horizontal coordinate in pixels.
y0is the vertical coordinate in pixels.
sizeis the patch size
widthis the original width of the image.
heightis the original height of the image.

Member Function Documentation

◆ getFourBlocks()

void pic::pic::BBox::getFourBlocks ( int  width,
int  height,
int  i 
)
inline

getFourBlocks sets the BBox as a quadrant of a given size.

Parameters
widthis horizontal size in pixels.
heightis the vertical size in pixels.
iis the i-th quadrant.

◆ setBox()

void pic::pic::BBox::setBox ( int  x0,
int  x1,
int  y0,
int  y1,
int  z0,
int  z1,
int  width,
int  height,
int  frames 
)
inline

setBox sets a BBox up.

Parameters
x0is the minimum horizontal coordinate in pixels.
x1is the maximum horizontal coordinate in pixels.
y0is the minimum vertical coordinate in pixels.
y1is the maximum vertical coordinate in pixels.
z0is the minimum temporal coordinate in pixels.
z1is the maximum temporal coordinate in pixels.
widthis the original width of the image.
heightis the original height of the image.
framesis the original length of the image.

◆ setCentered()

void pic::pic::BBox::setCentered ( int  x0,
int  y0,
int  size,
int  width,
int  height 
)
inline

SetCentered.

Parameters
x0is the horizontal coordinate in pixels.
y0is the vertical coordinate in pixels.
sizeis the patch size
widthis the original width of the image.
heightis the original height of the image.

◆ Size()

int pic::pic::BBox::Size ( )
inline

Size computes the number of pixels in a bounding box.

Returns
It returns the number of pixels in a bounding box.

◆ toString()

std::string pic::pic::BBox::toString ( )
inline

toString returns a string representation of BBox

Returns
It returns a string with the BBox content.

Member Data Documentation

◆ frames

int pic::pic::BBox::frames

◆ height

int pic::pic::BBox::height

◆ width

int pic::pic::BBox::width

◆ x0

int pic::pic::BBox::x0

◆ x1

int pic::pic::BBox::x1

◆ y0

int pic::pic::BBox::y0

◆ y1

int pic::pic::BBox::y1

◆ z0

int pic::pic::BBox::z0

◆ z1

int pic::pic::BBox::z1

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