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

#include <TIL_UVEnlarger.h>

Public Types

enum  Scheme { SCHEME_FILL_AVERAGE, SCHEME_FLOOD_FILL, SCHEME_DIFFUSE_FILL, SCHEME_INVALID }
 

Public Member Functions

 TIL_UVEnlarger (PXL_Raster &raster, PXL_Raster *craster, Scheme scheme=SCHEME_FLOOD_FILL, int fillPadding=4)
 
 ~TIL_UVEnlarger ()
 
void setFillPadding (int fp)
 
void setScheme (Scheme scheme)
 Sets the scheme to use when enlarging. More...
 
bool enlarge (bool doUnpremult=true)
 

Detailed Description

Definition at line 22 of file TIL_UVEnlarger.h.

Member Enumeration Documentation

Enumerator
SCHEME_FILL_AVERAGE 

Computes the average value of all the pixels that are a part of UV islands, then applies that average value to all empty parts of the image.

SCHEME_FLOOD_FILL 

Does a flood fill on the image and expands the boundary of each UV island found by the amount specified by myFillPadding.

SCHEME_DIFFUSE_FILL 

Does a diffusion fill on empty areas after expanding boundaries of UV island specified by myFillPadding.

SCHEME_INVALID 

Definition at line 25 of file TIL_UVEnlarger.h.

Constructor & Destructor Documentation

TIL_UVEnlarger::TIL_UVEnlarger ( PXL_Raster raster,
PXL_Raster craster,
Scheme  scheme = SCHEME_FLOOD_FILL,
int  fillPadding = 4 
)

If craster is NULL, then pixels in raster that has zero value will be assumed to have zero alpha.

TIL_UVEnlarger::~TIL_UVEnlarger ( )

Member Function Documentation

bool TIL_UVEnlarger::enlarge ( bool  doUnpremult = true)
void TIL_UVEnlarger::setFillPadding ( int  fp)
inline

How many pixels to pad each UV island with, when using the flood filling scheme for enlarging.

Definition at line 54 of file TIL_UVEnlarger.h.

void TIL_UVEnlarger::setScheme ( Scheme  scheme)
inline

Sets the scheme to use when enlarging.

Definition at line 58 of file TIL_UVEnlarger.h.


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