HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
(flip/flop/transpose: mirroring)

Functions

ImageBuf OIIO_API ImageBufAlgo::flip (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::flop (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::transpose (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::flip (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::flop (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::transpose (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 

Detailed Description

Return (or copy into dst) a subregion of src, but with the scanlines exchanged vertically (flip), or columns exchanged horizontally (flop), or transposed across the diagonal by swapping rows for columns (transpose) within the display/full window. In other words,

   flip                 flop               transpose
-----------          -----------          -----------
AB  -->  CD          AB  -->  BA          AB  -->  AC
CD       AB          CD       DC          CD       BD

Function Documentation

ImageBuf OIIO_API ImageBufAlgo::flip ( const ImageBuf src,
ROI  roi = {},
int  nthreads = 0 
)
bool OIIO_API ImageBufAlgo::flip ( ImageBuf dst,
const ImageBuf src,
ROI  roi = {},
int  nthreads = 0 
)
ImageBuf OIIO_API ImageBufAlgo::flop ( const ImageBuf src,
ROI  roi = {},
int  nthreads = 0 
)
bool OIIO_API ImageBufAlgo::flop ( ImageBuf dst,
const ImageBuf src,
ROI  roi = {},
int  nthreads = 0 
)
ImageBuf OIIO_API ImageBufAlgo::transpose ( const ImageBuf src,
ROI  roi = {},
int  nthreads = 0 
)
bool OIIO_API ImageBufAlgo::transpose ( ImageBuf dst,
const ImageBuf src,
ROI  roi = {},
int  nthreads = 0 
)