HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
(ImageBufAlgo::fill -- fill a region)

Functions

ImageBuf OIIO_API ImageBufAlgo::fill (cspan< float > values, ROI roi, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::fill (cspan< float > top, cspan< float > bottom, ROI roi, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::fill (cspan< float > topleft, cspan< float > topright, cspan< float > bottomleft, cspan< float > bottomright, ROI roi, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::fill (ImageBuf &dst, cspan< float > values, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::fill (ImageBuf &dst, cspan< float > top, cspan< float > bottom, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::fill (ImageBuf &dst, cspan< float > topleft, cspan< float > topright, cspan< float > bottomleft, cspan< float > bottomright, ROI roi={}, int nthreads=0)
 

Detailed Description

Fill an image region with given channel values, either returning a new image or altering the existing dst image within the ROI. Note that the values arrays start with channel 0, even if the ROI indicates that a later channel is the first to be changed.

Three varieties of fill() exist: (a) a single set of channel values that will apply to the whole ROI, (b) two sets of values that will create a linearly interpolated gradient from top to bottom of the ROI, (c) four sets of values that will be bilinearly interpolated across all four corners of the ROI.

Function Documentation

ImageBuf OIIO_API ImageBufAlgo::fill ( cspan< float >  values,
ROI  roi,
int  nthreads = 0 
)
ImageBuf OIIO_API ImageBufAlgo::fill ( cspan< float >  top,
cspan< float >  bottom,
ROI  roi,
int  nthreads = 0 
)
ImageBuf OIIO_API ImageBufAlgo::fill ( cspan< float >  topleft,
cspan< float >  topright,
cspan< float >  bottomleft,
cspan< float >  bottomright,
ROI  roi,
int  nthreads = 0 
)
bool OIIO_API ImageBufAlgo::fill ( ImageBuf dst,
cspan< float >  values,
ROI  roi = {},
int  nthreads = 0 
)
bool OIIO_API ImageBufAlgo::fill ( ImageBuf dst,
cspan< float >  top,
cspan< float >  bottom,
ROI  roi = {},
int  nthreads = 0 
)
bool OIIO_API ImageBufAlgo::fill ( ImageBuf dst,
cspan< float >  topleft,
cspan< float >  topright,
cspan< float >  bottomleft,
cspan< float >  bottomright,
ROI  roi = {},
int  nthreads = 0 
)