HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TIL_AdaptiveImage Class Reference

#include <TIL_AdaptiveImage.h>

Classes

struct  Level
 

Public Member Functions

 TIL_AdaptiveImage (int width, int height, int nplanes, const int *num_plane_components, int adaptivity_plane=-1, int levels_below_pixel=0, int min_samples_per_pixel=1, int max_samples_per_pixel=1024, float relative_noise_threshold=0.005f)
 
bool sample (uint64 seed, int &chosen_x, int &chosen_y, int &pixel_sample)
 
void insert (int x, int y, int pixel_sample, const float *data)
 
int getPixelLevelNum () const
 
const LevelgetLevel (int leveli) const
 
bool isPriorityCircleOn () const
 
void getPriorityCircle (float &x, float &y, float &radius) const
 
void setPriorityCircle (float x, float y, float radius)
 
void clearPriorityCircle ()
 
void clearSamples ()
 Makes the image as if no samples had been inserted or sampled yet. More...
 
exint getInsertedCount () const
 
void filterPlane (TIL_Raster &raster, int planei) const
 Filters the given plane into the specified raster. More...
 
const TIL_PixelFiltergetPixelFilter (int planei) const
 
void initPixelFilterArray ()
 
void setPixelFilter (int planei, const TIL_PixelFilter *filter)
 

Static Public Member Functions

static exint pixelArea (int x, int y, int level_width, int level_height, int leveli, int pixel_width, int pixel_height, int pixel_leveli)
 

Detailed Description

Definition at line 25 of file TIL_AdaptiveImage.h.

Constructor & Destructor Documentation

TIL_AdaptiveImage::TIL_AdaptiveImage ( int  width,
int  height,
int  nplanes,
const int num_plane_components,
int  adaptivity_plane = -1,
int  levels_below_pixel = 0,
int  min_samples_per_pixel = 1,
int  max_samples_per_pixel = 1024,
float  relative_noise_threshold = 0.005f 
)

Member Function Documentation

void TIL_AdaptiveImage::clearPriorityCircle ( )
inline

Definition at line 105 of file TIL_AdaptiveImage.h.

void TIL_AdaptiveImage::clearSamples ( )

Makes the image as if no samples had been inserted or sampled yet.

void TIL_AdaptiveImage::filterPlane ( TIL_Raster raster,
int  planei 
) const

Filters the given plane into the specified raster.

exint TIL_AdaptiveImage::getInsertedCount ( ) const
inline

Definition at line 117 of file TIL_AdaptiveImage.h.

const Level& TIL_AdaptiveImage::getLevel ( int  leveli) const
inline

Definition at line 81 of file TIL_AdaptiveImage.h.

const TIL_PixelFilter* TIL_AdaptiveImage::getPixelFilter ( int  planei) const
inline

Definition at line 127 of file TIL_AdaptiveImage.h.

int TIL_AdaptiveImage::getPixelLevelNum ( ) const
inline

Definition at line 77 of file TIL_AdaptiveImage.h.

void TIL_AdaptiveImage::getPriorityCircle ( float &  x,
float &  y,
float &  radius 
) const
inline

Definition at line 90 of file TIL_AdaptiveImage.h.

void TIL_AdaptiveImage::initPixelFilterArray ( )
inline

Definition at line 134 of file TIL_AdaptiveImage.h.

void TIL_AdaptiveImage::insert ( int  x,
int  y,
int  pixel_sample,
const float *  data 
)
bool TIL_AdaptiveImage::isPriorityCircleOn ( ) const
inline

Definition at line 86 of file TIL_AdaptiveImage.h.

static exint TIL_AdaptiveImage::pixelArea ( int  x,
int  y,
int  level_width,
int  level_height,
int  leveli,
int  pixel_width,
int  pixel_height,
int  pixel_leveli 
)
static
bool TIL_AdaptiveImage::sample ( uint64  seed,
int chosen_x,
int chosen_y,
int pixel_sample 
)
void TIL_AdaptiveImage::setPixelFilter ( int  planei,
const TIL_PixelFilter filter 
)
void TIL_AdaptiveImage::setPriorityCircle ( float  x,
float  y,
float  radius 
)
inline

Definition at line 96 of file TIL_AdaptiveImage.h.


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