OpenSceneGraph  3.5.1
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
ImageUtils File Reference
#include <osg/Export>
#include <osg/Image>
#include <osg/Vec3i>

Classes

struct  osg::CastAndScaleToFloatOperation
 Convenience method for making it easy to cast all pixel channels types to a unit float RGBA form. More...
 

Namespaces

 osg
 The core osg library provides the basic scene graph classes such as Nodes, State and Drawables, and maths and general helper classes.
 

Macros

#define OSG_IMAGEUTILS   1
 

Typedefs

typedef std::vector< osg::ref_ptr< osg::Image > > osg::ImageList
 

Enumerations

enum  osg::ColorSpaceOperation {
  osg::NO_COLOR_SPACE_OPERATION, osg::MODULATE_ALPHA_BY_LUMINANCE, osg::MODULATE_ALPHA_BY_COLOR, osg::REPLACE_ALPHA_WITH_LUMINANCE,
  osg::REPLACE_RGB_WITH_LUMINANCE
}
 

Functions

template<typename T , class O >
void osg::_readRow (unsigned int num, GLenum pixelFormat, const T *data, O &operation)
 
template<class O >
void osg::readRow (unsigned int num, GLenum pixelFormat, GLenum dataType, const unsigned char *data, O &operation)
 
template<class O >
void osg::readImage (const osg::Image *image, O &operation)
 
template<typename T , class M >
void osg::_modifyRow (unsigned int num, GLenum pixelFormat, T *data, float scale, const M &operation)
 
template<class M >
void osg::modifyRow (unsigned int num, GLenum pixelFormat, GLenum dataType, unsigned char *data, const M &operation)
 
template<class M >
void osg::modifyImage (osg::Image *image, const M &operation)
 
OSG_EXPORT bool osg::computeMinMax (const osg::Image *image, osg::Vec4 &min, osg::Vec4 &max)
 Compute the min max colour values in the image. More...
 
OSG_EXPORT bool osg::offsetAndScaleImage (osg::Image *image, const osg::Vec4 &offset, const osg::Vec4 &scale)
 Compute the min max colour values in the image. More...
 
OSG_EXPORT bool osg::copyImage (const osg::Image *srcImage, int src_s, int src_t, int src_r, int width, int height, int depth, osg::Image *destImage, int dest_s, int dest_t, int dest_r, bool doRescale=false)
 Compute source image to destination image. More...
 
OSG_EXPORT bool osg::clearImageToColor (osg::Image *image, const osg::Vec4 &colour)
 Compute the min max colour values in the image. More...
 
OSG_EXPORT unsigned int osg::maximimNumOfComponents (const ImageList &imageList)
 Search through the list of Images and find the maximum number of components used among the images. More...
 
OSG_EXPORT osg::Imageosg::createImage3D (const ImageList &imageList, GLenum desiredPixelFormat, int s_maximumImageSize=1024, int t_maximumImageSize=1024, int r_maximumImageSize=1024, bool resizeToPowerOfTwo=false)
 create a 3D osg::Image from a list of osg::Image. More...
 
OSG_EXPORT osg::Imageosg::createImage3DWithAlpha (const ImageList &imageList, int s_maximumImageSize=1024, int t_maximumImageSize=1024, int r_maximumImageSize=1024, bool resizeToPowerOfTwo=false)
 create a 3D osg::Image from a list of osg::Image. More...
 
OSG_EXPORT osg::Imageosg::createSpotLightImage (const osg::Vec4 &centerColour, const osg::Vec4 &backgroudColour, unsigned int size, float power)
 create a 2D osg::Image that provides a point at the center of the image. More...
 
OSG_EXPORT osg::Imageosg::colorSpaceConversion (ColorSpaceOperation op, osg::Image *image, const osg::Vec4 &colour)
 Convert the RGBA values in a Image based on a ColorSpaceOperation defined scheme. More...
 
OSG_EXPORT osg::Imageosg::createImageWithOrientationConversion (const osg::Image *srcImage, const osg::Vec3i &srcOrigin, const osg::Vec3i &srcRow, const osg::Vec3i &srcColumn, const osg::Vec3i &srcLayer)
 Create a copy of an osg::Image. More...
 

Macro Definition Documentation

#define OSG_IMAGEUTILS   1

osg logo
Generated at Wed Nov 11 2015 22:14:22 for the OpenSceneGraph by doxygen 1.8.10.