OpenImageIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
imagebuf.h File Reference
#include "imageio.h"
#include "fmath.h"
#include "imagecache.h"
#include "dassert.h"
#include <limits>

Go to the source code of this file.

Classes

struct  ROI
 
class  ImageBuf
 
class  ImageBuf::IteratorBase
 
class  ImageBuf::Iterator< BUFT, USERT >
 
class  ImageBuf::ConstIterator< BUFT, USERT >
 

Functions

OIIO_API ROI roi_union (const ROI &A, const ROI &B)
 Union of two regions, the smallest region containing both.
 
OIIO_API ROI roi_intersection (const ROI &A, const ROI &B)
 Intersection of two regions.
 
OIIO_API ROI get_roi (const ImageSpec &spec)
 Return pixel data window for this ImageSpec as a ROI.
 
OIIO_API ROI get_roi_full (const ImageSpec &spec)
 Return full/display window for this ImageSpec as a ROI.
 
OIIO_API void set_roi (ImageSpec &spec, const ROI &newroi)
 
OIIO_API void set_roi_full (ImageSpec &spec, const ROI &newroi)
 

Variables

 OIIO_NAMESPACE_ENTER
 

Detailed Description

Classes for in-memory storage and simple manipulation of whole images, which uses ImageInput and ImageOutput underneath for the file access.

Function Documentation

OIIO_API ROI get_roi ( const ImageSpec spec)

Return pixel data window for this ImageSpec as a ROI.

OIIO_API ROI get_roi_full ( const ImageSpec spec)

Return full/display window for this ImageSpec as a ROI.

OIIO_API ROI roi_intersection ( const ROI A,
const ROI B 
)

Intersection of two regions.

OIIO_API ROI roi_union ( const ROI A,
const ROI B 
)

Union of two regions, the smallest region containing both.

OIIO_API void set_roi ( ImageSpec spec,
const ROI newroi 
)

Set pixel data window for this ImageSpec to a ROI. Does NOT change the channels of the spec, regardless of newroi.

OIIO_API void set_roi_full ( ImageSpec spec,
const ROI newroi 
)

Set full/display window for this ImageSpec to a ROI. Does NOT change the channels of the spec, regardless of newroi.

Variable Documentation

OIIO_NAMESPACE_ENTER
Initial value:
{
class ImageBuf