HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
imagebufalgo.h File Reference
#include <OpenImageIO/imageio.h>
#include <OpenImageIO/imagebuf.h>
#include <OpenImageIO/fmath.h>
#include <OpenImageIO/parallel.h>
#include <OpenImageIO/span.h>
#include <limits>
+ Include dependency graph for imagebufalgo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Image_or_Const
 
struct  Image_or_Const::None
 
struct  ImageBufAlgo::PixelStats
 
struct  ImageBufAlgo::CompareResults
 

Namespaces

 cv
 
 ImageBufAlgo
 

Macros

#define OPENIMAGEIO_IMAGEBUFALGO_H
 

Typedefs

typedef parallel_options ImageBufAlgo::parallel_image_options
 

Enumerations

enum  ImageBufAlgo::TextAlignX { ImageBufAlgo::TextAlignX::Left, ImageBufAlgo::TextAlignX::Right, ImageBufAlgo::TextAlignX::Center }
 
enum  ImageBufAlgo::TextAlignY { ImageBufAlgo::TextAlignY::Baseline, ImageBufAlgo::TextAlignY::Top, ImageBufAlgo::TextAlignY::Bottom, ImageBufAlgo::TextAlignY::Center }
 
enum  ImageBufAlgo::NonFiniteFixMode { ImageBufAlgo::NONFINITE_NONE = 0, ImageBufAlgo::NONFINITE_BLACK = 1, ImageBufAlgo::NONFINITE_BOX3 = 2, ImageBufAlgo::NONFINITE_ERROR = 100 }
 
enum  ImageBufAlgo::MakeTextureMode {
  ImageBufAlgo::MakeTxTexture, ImageBufAlgo::MakeTxShadow, ImageBufAlgo::MakeTxEnvLatl, ImageBufAlgo::MakeTxEnvLatlFromLightProbe,
  ImageBufAlgo::MakeTxBumpWithSlopes, ImageBufAlgo::_MakeTxLast
}
 

Functions

ImageBuf OIIO_API ImageBufAlgo::zero (ROI roi, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::zero (ImageBuf &dst, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
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)
 
ImageBuf OIIO_API ImageBufAlgo::checker (int width, int height, int depth, cspan< float > color1, cspan< float > color2, int xoffset, int yoffset, int zoffset, ROI roi, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::checker (ImageBuf &dst, int width, int height, int depth, cspan< float > color1, cspan< float > color2, int xoffset=0, int yoffset=0, int zoffset=0, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::noise (string_view noisetype, float A=0.0f, float B=0.1f, bool mono=false, int seed=0, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::noise (ImageBuf &dst, string_view noisetype, float A=0.0f, float B=0.1f, bool mono=false, int seed=0, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
OIIO_API const ImageBufImageBufAlgo::bluenoise_image ()
 
bool OIIO_API ImageBufAlgo::render_point (ImageBuf &dst, int x, int y, cspan< float > color=1.0f, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::render_line (ImageBuf &dst, int x1, int y1, int x2, int y2, cspan< float > color=1.0f, bool skip_first_point=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::render_box (ImageBuf &dst, int x1, int y1, int x2, int y2, cspan< float > color=1.0f, bool fill=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::render_text (ImageBuf &dst, int x, int y, string_view text, int fontsize=16, string_view fontname="", cspan< float > textcolor=1.0f, TextAlignX alignx=TextAlignX::Left, TextAlignY aligny=TextAlignY::Baseline, int shadow=0, ROI roi={}, int nthreads=0)
 
ROI OIIO_API ImageBufAlgo::text_size (string_view text, int fontsize=16, string_view fontname="")
 
ImageBuf OIIO_API ImageBufAlgo::channels (const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::channels (ImageBuf &dst, const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::channel_append (const ImageBuf &A, const ImageBuf &B, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::channel_append (ImageBuf &dst, const ImageBuf &A, const ImageBuf &B, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::copy (const ImageBuf &src, TypeDesc convert=TypeUnknown, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::copy (ImageBuf &dst, const ImageBuf &src, TypeDesc convert=TypeUnknown, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::crop (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::crop (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::cut (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::cut (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
bool OIIO_API ImageBufAlgo::paste (ImageBuf &dst, int xbegin, int ybegin, int zbegin, int chbegin, const ImageBuf &src, ROI srcroi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::rotate90 (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::rotate180 (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::rotate270 (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::rotate90 (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::rotate180 (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::rotate270 (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
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)
 
ImageBuf OIIO_API ImageBufAlgo::reorient (const ImageBuf &src, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::reorient (ImageBuf &dst, const ImageBuf &src, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::circular_shift (const ImageBuf &src, int xshift, int yshift, int zshift=0, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::circular_shift (ImageBuf &dst, const ImageBuf &src, int xshift, int yshift, int zshift=0, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::rotate (const ImageBuf &src, float angle, string_view filtername=string_view(), float filterwidth=0.0f, bool recompute_roi=false, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::rotate (const ImageBuf &src, float angle, Filter2D *filter, bool recompute_roi=false, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::rotate (const ImageBuf &src, float angle, float center_x, float center_y, string_view filtername=string_view(), float filterwidth=0.0f, bool recompute_roi=false, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::rotate (const ImageBuf &src, float angle, float center_x, float center_y, Filter2D *filter, bool recompute_roi=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::rotate (ImageBuf &dst, const ImageBuf &src, float angle, string_view filtername=string_view(), float filterwidth=0.0f, bool recompute_roi=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::rotate (ImageBuf &dst, const ImageBuf &src, float angle, Filter2D *filter, bool recompute_roi=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::rotate (ImageBuf &dst, const ImageBuf &src, float angle, float center_x, float center_y, string_view filtername=string_view(), float filterwidth=0.0f, bool recompute_roi=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::rotate (ImageBuf &dst, const ImageBuf &src, float angle, float center_x, float center_y, Filter2D *filter, bool recompute_roi=false, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::resize (const ImageBuf &src, string_view filtername="", float filterwidth=0.0f, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::resize (const ImageBuf &src, Filter2D *filter, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::resize (ImageBuf &dst, const ImageBuf &src, string_view filtername="", float filterwidth=0.0f, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::resize (ImageBuf &dst, const ImageBuf &src, Filter2D *filter, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::resample (const ImageBuf &src, bool interpolate=true, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::resample (ImageBuf &dst, const ImageBuf &src, bool interpolate=true, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::fit (const ImageBuf &src, string_view filtername="", float filterwidth=0.0f, string_view fillmode="letterbox", bool exact=false, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::fit (const ImageBuf &src, Filter2D *filter, string_view fillmode="letterbox", bool exact=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::fit (ImageBuf &dst, const ImageBuf &src, string_view filtername="", float filterwidth=0.0f, string_view fillmode="letterbox", bool exact=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::fit (ImageBuf &dst, const ImageBuf &src, Filter2D *filter, string_view fillmode="letterbox", bool exact=false, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::fit (const ImageBuf &src, string_view filtername, float filterwidth, bool exact, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::fit (const ImageBuf &src, Filter2D *filter, bool exact, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::fit (ImageBuf &dst, const ImageBuf &src, string_view filtername, float filterwidth, bool exact, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::fit (ImageBuf &dst, const ImageBuf &src, Filter2D *filter, bool exact, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::warp (const ImageBuf &src, const Imath::M33f &M, string_view filtername=string_view(), float filterwidth=0.0f, bool recompute_roi=false, ImageBuf::WrapMode wrap=ImageBuf::WrapDefault, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::warp (const ImageBuf &src, const Imath::M33f &M, const Filter2D *filter, bool recompute_roi=false, ImageBuf::WrapMode wrap=ImageBuf::WrapDefault, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::warp (ImageBuf &dst, const ImageBuf &src, const Imath::M33f &M, string_view filtername=string_view(), float filterwidth=0.0f, bool recompute_roi=false, ImageBuf::WrapMode wrap=ImageBuf::WrapDefault, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::warp (ImageBuf &dst, const ImageBuf &src, const Imath::M33f &M, const Filter2D *filter, bool recompute_roi=false, ImageBuf::WrapMode wrap=ImageBuf::WrapDefault, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::add (Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::add (ImageBuf &dst, Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::sub (Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::sub (ImageBuf &dst, Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::absdiff (Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::absdiff (ImageBuf &dst, Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::abs (const ImageBuf &A, ROI roi={}, int nthreads=0)
 Compute per-pixel absolute value abs(A), returning the result image. More...
 
bool OIIO_API ImageBufAlgo::abs (ImageBuf &dst, const ImageBuf &A, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::mul (Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::mul (ImageBuf &dst, Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::div (Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::div (ImageBuf &dst, Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::mad (Image_or_Const A, Image_or_Const B, Image_or_Const C, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::mad (ImageBuf &dst, Image_or_Const A, Image_or_Const B, Image_or_Const C, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::over (const ImageBuf &A, const ImageBuf &B, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::over (ImageBuf &dst, const ImageBuf &A, const ImageBuf &B, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::zover (const ImageBuf &A, const ImageBuf &B, bool z_zeroisinf=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::zover (ImageBuf &dst, const ImageBuf &A, const ImageBuf &B, bool z_zeroisinf=false, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::invert (const ImageBuf &A, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::invert (ImageBuf &dst, const ImageBuf &A, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::pow (const ImageBuf &A, cspan< float > B, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::pow (ImageBuf &dst, const ImageBuf &A, cspan< float > B, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::channel_sum (const ImageBuf &src, cspan< float > weights=1.0f, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::channel_sum (ImageBuf &dst, const ImageBuf &src, cspan< float > weights=1.0f, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::max (Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::max (ImageBuf &dst, Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::min (Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::min (ImageBuf &dst, Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::clamp (const ImageBuf &src, cspan< float > min=-std::numeric_limits< float >::max(), cspan< float > max=std::numeric_limits< float >::max(), bool clampalpha01=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::clamp (ImageBuf &dst, const ImageBuf &src, cspan< float > min=-std::numeric_limits< float >::max(), cspan< float > max=std::numeric_limits< float >::max(), bool clampalpha01=false, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::maxchan (const ImageBuf &A, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::maxchan (ImageBuf &dst, const ImageBuf &A, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::minchan (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::minchan (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
OIIO_API ImageBuf ImageBufAlgo::contrast_remap (const ImageBuf &src, cspan< float > black=0.0f, cspan< float > white=1.0f, cspan< float > min=0.0f, cspan< float > max=1.0f, cspan< float > scontrast=1.0f, cspan< float > sthresh=0.5f, ROI={}, int nthreads=0)
 
OIIO_API bool ImageBufAlgo::contrast_remap (ImageBuf &dst, const ImageBuf &src, cspan< float > black=0.0f, cspan< float > white=1.0f, cspan< float > min=0.0f, cspan< float > max=1.0f, cspan< float > scontrast=1.0f, cspan< float > sthresh=0.5f, ROI={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::saturate (const ImageBuf &src, float scale=0.0f, int firstchannel=0, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::saturate (ImageBuf &dst, const ImageBuf &src, float scale=0.0f, int firstchannel=0, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::color_map (const ImageBuf &src, int srcchannel, int nknots, int channels, cspan< float > knots, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::color_map (const ImageBuf &src, int srcchannel, string_view mapname, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::color_map (ImageBuf &dst, const ImageBuf &src, int srcchannel, int nknots, int channels, cspan< float > knots, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::color_map (ImageBuf &dst, const ImageBuf &src, int srcchannel, string_view mapname, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::rangecompress (const ImageBuf &src, bool useluma=false, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::rangeexpand (const ImageBuf &src, bool useluma=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::rangecompress (ImageBuf &dst, const ImageBuf &src, bool useluma=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::rangeexpand (ImageBuf &dst, const ImageBuf &src, bool useluma=false, ROI roi={}, int nthreads=0)
 
PixelStats OIIO_API ImageBufAlgo::computePixelStats (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::computePixelStats (PixelStats &stats, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
CompareResults OIIO_API ImageBufAlgo::compare (const ImageBuf &A, const ImageBuf &B, float failthresh, float warnthresh, ROI roi={}, int nthreads=0)
 
int OIIO_API ImageBufAlgo::compare_Yee (const ImageBuf &A, const ImageBuf &B, CompareResults &result, float luminance=100, float fov=45, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::compare (const ImageBuf &A, const ImageBuf &B, float failthresh, float warnthresh, CompareResults &result, ROI roi={}, int nthreads=0)
 
OIIO_API bool ImageBufAlgo::isConstantColor (const ImageBuf &src, float threshold=0.0f, span< float > color={}, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::isConstantColor (const ImageBuf &src, span< float > color, ROI roi={}, int nthreads=0)
 
OIIO_API bool ImageBufAlgo::isConstantChannel (const ImageBuf &src, int channel, float val, float threshold=0.0f, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::isConstantChannel (const ImageBuf &src, int channel, float val, ROI roi, int nthreads=0)
 
OIIO_API bool ImageBufAlgo::isMonochrome (const ImageBuf &src, float threshold=0.0f, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::isMonochrome (const ImageBuf &src, ROI roi, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::color_count (const ImageBuf &src, imagesize_t *count, int ncolors, cspan< float > color, cspan< float > eps=0.001f, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::color_range_check (const ImageBuf &src, imagesize_t *lowcount, imagesize_t *highcount, imagesize_t *inrangecount, cspan< float > low, cspan< float > high, ROI roi={}, int nthreads=0)
 
OIIO_API ROI ImageBufAlgo::nonzero_region (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
std::string OIIO_API ImageBufAlgo::computePixelHashSHA1 (const ImageBuf &src, string_view extrainfo="", ROI roi={}, int blocksize=0, int nthreads=0)
 
OIIO_API std::vector< imagesize_tImageBufAlgo::histogram (const ImageBuf &src, int channel=0, int bins=256, float min=0.0f, float max=1.0f, bool ignore_empty=false, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::histogram (const ImageBuf &src, int channel, std::vector< imagesize_t > &histogram, int bins=256, float min=0, float max=1, imagesize_t *submin=nullptr, imagesize_t *supermax=nullptr, ROI roi={})
 DEPRECATED(1.9) More...
 
bool OIIO_API ImageBufAlgo::histogram_draw (ImageBuf &dst, const std::vector< imagesize_t > &histogram)
 
ImageBuf OIIO_API ImageBufAlgo::make_kernel (string_view name, float width, float height, float depth=1.0f, bool normalize=true)
 
bool ImageBufAlgo::make_kernel (ImageBuf &dst, string_view name, float width, float height, float depth=1.0f, bool normalize=true)
 
ImageBuf OIIO_API ImageBufAlgo::convolve (const ImageBuf &src, const ImageBuf &kernel, bool normalize=true, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::convolve (ImageBuf &dst, const ImageBuf &src, const ImageBuf &kernel, bool normalize=true, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::laplacian (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::laplacian (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::fft (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::ifft (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::fft (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::ifft (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::complex_to_polar (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::complex_to_polar (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::polar_to_complex (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::polar_to_complex (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::fixNonFinite (const ImageBuf &src, NonFiniteFixMode mode=NONFINITE_BOX3, int *pixelsFixed=nullptr, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::fixNonFinite (ImageBuf &dst, const ImageBuf &src, NonFiniteFixMode mode=NONFINITE_BOX3, int *pixelsFixed=nullptr, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::fillholes_pushpull (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::fillholes_pushpull (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::median_filter (const ImageBuf &src, int width=3, int height=-1, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::median_filter (ImageBuf &dst, const ImageBuf &src, int width=3, int height=-1, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::unsharp_mask (const ImageBuf &src, string_view kernel="gaussian", float width=3.0f, float contrast=1.0f, float threshold=0.0f, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::unsharp_mask (ImageBuf &dst, const ImageBuf &src, string_view kernel="gaussian", float width=3.0f, float contrast=1.0f, float threshold=0.0f, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::dilate (const ImageBuf &src, int width=3, int height=-1, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::dilate (ImageBuf &dst, const ImageBuf &src, int width=3, int height=-1, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::erode (const ImageBuf &src, int width=3, int height=-1, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::erode (ImageBuf &dst, const ImageBuf &src, int width=3, int height=-1, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::colorconvert (const ImageBuf &src, string_view fromspace, string_view tospace, bool unpremult=true, string_view context_key="", string_view context_value="", ColorConfig *colorconfig=nullptr, ROI roi={}, int nthreads=0)
 Transform between named color spaces, returning an ImageBuf result. More...
 
ImageBuf OIIO_API ImageBufAlgo::colorconvert (const ImageBuf &src, const ColorProcessor *processor, bool unpremult, ROI roi={}, int nthreads=0)
 Transform using a ColorProcessor, returning an ImageBuf result. More...
 
bool OIIO_API ImageBufAlgo::colorconvert (ImageBuf &dst, const ImageBuf &src, string_view fromspace, string_view tospace, bool unpremult=true, string_view context_key="", string_view context_value="", ColorConfig *colorconfig=nullptr, ROI roi={}, int nthreads=0)
 Transform between named color spaces, storing reults into an existing ImageBuf. More...
 
bool OIIO_API ImageBufAlgo::colorconvert (ImageBuf &dst, const ImageBuf &src, const ColorProcessor *processor, bool unpremult, ROI roi={}, int nthreads=0)
 Transform using a ColorProcessor, storing reults into an existing ImageBuf. More...
 
bool OIIO_API ImageBufAlgo::colorconvert (span< float > color, const ColorProcessor *processor, bool unpremult)
 
bool ImageBufAlgo::colorconvert (float *color, int nchannels, const ColorProcessor *processor, bool unpremult)
 
ImageBuf OIIO_API ImageBufAlgo::colormatrixtransform (const ImageBuf &src, const Imath::M44f &M, bool unpremult=true, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::colormatrixtransform (ImageBuf &dst, const ImageBuf &src, const Imath::M44f &M, bool unpremult=true, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::ociolook (const ImageBuf &src, string_view looks, string_view fromspace, string_view tospace, bool unpremult=true, bool inverse=false, string_view context_key="", string_view context_value="", ColorConfig *colorconfig=nullptr, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::ociolook (ImageBuf &dst, const ImageBuf &src, string_view looks, string_view fromspace, string_view tospace, bool unpremult=true, bool inverse=false, string_view context_key="", string_view context_value="", ColorConfig *colorconfig=nullptr, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::ociodisplay (const ImageBuf &src, string_view display, string_view view, string_view fromspace="", string_view looks="", bool unpremult=true, string_view context_key="", string_view context_value="", ColorConfig *colorconfig=nullptr, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::ociodisplay (ImageBuf &dst, const ImageBuf &src, string_view display, string_view view, string_view fromspace="", string_view looks="", bool unpremult=true, string_view context_key="", string_view context_value="", ColorConfig *colorconfig=nullptr, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::ociofiletransform (const ImageBuf &src, string_view name, bool unpremult=true, bool inverse=false, ColorConfig *colorconfig=nullptr, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::ociofiletransform (ImageBuf &dst, const ImageBuf &src, string_view name, bool unpremult=true, bool inverse=false, ColorConfig *colorconfig=nullptr, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::unpremult (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::unpremult (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::premult (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::premult (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::repremult (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::repremult (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::make_texture (MakeTextureMode mode, const ImageBuf &input, string_view outputfilename, const ImageSpec &config, std::ostream *outstream=nullptr)
 Version of make_texture that starts with an ImageBuf. More...
 
bool OIIO_API ImageBufAlgo::make_texture (MakeTextureMode mode, string_view filename, string_view outputfilename, const ImageSpec &config, std::ostream *outstream=nullptr)
 
bool OIIO_API ImageBufAlgo::make_texture (MakeTextureMode mode, const std::vector< std::string > &filenames, string_view outputfilename, const ImageSpec &config, std::ostream *outstream=nullptr)
 
OIIO_API ImageBuf ImageBufAlgo::from_OpenCV (const cv::Mat &mat, TypeDesc convert=TypeUnknown, ROI roi={}, int nthreads=0)
 
OIIO_API bool ImageBufAlgo::to_OpenCV (cv::Mat &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 
ImageBuf OIIO_API ImageBufAlgo::capture_image (int cameranum=0, TypeDesc convert=TypeUnknown)
 
bool ImageBufAlgo::capture_image (ImageBuf &dst, int cameranum=0, TypeDesc convert=TypeUnknown)
 
ImageBuf OIIO_API ImageBufAlgo::deepen (const ImageBuf &src, float zvalue=1.0f, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::deepen (ImageBuf &dst, const ImageBuf &src, float zvalue=1.0f, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::flatten (const ImageBuf &src, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::flatten (ImageBuf &dst, const ImageBuf &src, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::deep_merge (const ImageBuf &A, const ImageBuf &B, bool occlusion_cull=true, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::deep_merge (ImageBuf &dst, const ImageBuf &A, const ImageBuf &B, bool occlusion_cull=true, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
ImageBuf OIIO_API ImageBufAlgo::deep_holdout (const ImageBuf &src, const ImageBuf &holdout, ROI roi={}, int nthreads=0)
 
bool OIIO_API ImageBufAlgo::deep_holdout (ImageBuf &dst, const ImageBuf &src, const ImageBuf &holdout, ROI roi={}, int nthreads=0)
 Write to an existing image dst (allocating if it is uninitialized). More...
 
bool ImageBufAlgo::fill (ImageBuf &dst, const float *values, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::fill (ImageBuf &dst, const float *top, const float *bottom, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::fill (ImageBuf &dst, const float *topleft, const float *topright, const float *bottomleft, const float *bottomright, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::checker (ImageBuf &dst, int width, int height, int depth, const float *color1, const float *color2, int xoffset=0, int yoffset=0, int zoffset=0, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::add (ImageBuf &dst, const ImageBuf &A, const float *B, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::sub (ImageBuf &dst, const ImageBuf &A, const float *B, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::absdiff (ImageBuf &dst, const ImageBuf &A, const float *B, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::mul (ImageBuf &dst, const ImageBuf &A, const float *B, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::div (ImageBuf &dst, const ImageBuf &A, const float *B, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::mad (ImageBuf &dst, const ImageBuf &A, const float *B, const ImageBuf &C, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::mad (ImageBuf &dst, const ImageBuf &A, const ImageBuf &B, const float *C, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::mad (ImageBuf &dst, const ImageBuf &A, const float *B, const float *C, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::pow (ImageBuf &dst, const ImageBuf &A, const float *B, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::channel_sum (ImageBuf &dst, const ImageBuf &src, const float *weights=nullptr, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::channels (ImageBuf &dst, const ImageBuf &src, int nchannels, const int *channelorder, const float *channelvalues=nullptr, const std::string *newchannelnames=nullptr, bool shuffle_channel_names=false, int nthreads=0)
 
bool ImageBufAlgo::clamp (ImageBuf &dst, const ImageBuf &src, const float *min=nullptr, const float *max=nullptr, bool clampalpha01=false, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::isConstantColor (const ImageBuf &src, float *color, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::color_count (const ImageBuf &src, imagesize_t *count, int ncolors, const float *color, const float *eps=nullptr, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::color_range_check (const ImageBuf &src, imagesize_t *lowcount, imagesize_t *highcount, imagesize_t *inrangecount, const float *low, const float *high, ROI roi={}, int nthreads=0)
 
bool ImageBufAlgo::render_text (ImageBuf &dst, int x, int y, string_view text, int fontsize, string_view fontname, const float *textcolor)
 

Macro Definition Documentation

#define OPENIMAGEIO_IMAGEBUFALGO_H

Definition at line 9 of file imagebufalgo.h.