Visualization Library 2.0.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Implements a generic 1d, 2d, 3d and cubemap image that can have mipmaps. More...
#include <Image.hpp>
Public Member Functions | |
virtual | ~Image () |
Image () | |
Constructor. More... | |
Image (void *buffer_ptr, int buffer_bytes) | |
Initializes the image to use vl::Buffer::UserAllocatedBuffer mode and the given buffer instead of allocating its own buffer. More... | |
Image (const String &file_path) | |
Initializes the image reading from the give file path. More... | |
Image (int x, int y, int z, int bytealign, EImageFormat format, EImageType type) | |
Initializes a 1D, 2D or 3D image. For 2D images y and z must be set to 0. For 3D images z must be set to 0. More... | |
Image (const Image &other) | |
Image & | operator= (const Image &other) |
bool | isCubemap () const |
bool | isValid () const |
Returns true if the image has valid width/height/depth, pitch and byte alignment, type/format combination. More... | |
EImageDimension | dimension () const |
void | allocate1D (int x, EImageFormat format, EImageType type) |
void | allocate2D (int x, int y, int bytealign, EImageFormat format, EImageType type) |
void | allocate3D (int x, int y, int z, int bytealign, EImageFormat format, EImageType type) |
void | allocateCubemap (int x, int y, int bytealign, EImageFormat format, EImageType type) |
void | reset (int x, int y, int z, int bytealign, EImageFormat format, EImageType type, bool is_cubemap) |
Sets up the image configuration & clears the local storage. More... | |
void | reset () |
Disposes all the pixel data and resets the image settings to its defaults. More... | |
int | byteAlignment () const |
Returns the byte-alignment of the row of the image. More... | |
void | setByteAlignment (int bytealign) |
Modifies the byte-alignment of the rows of the image, thus changing its pitch. More... | |
int | bitsPerPixel () const |
int | requiredMemory () const |
Returns the number of bytes requested to store the image. More... | |
String | print () const |
String | printType () const |
String | printFormat () const |
void | setWidth (int x) |
void | setHeight (int y) |
void | setDepth (int z) |
void | setFormat (EImageFormat format) |
void | setType (EImageType type) |
bool | hasAlpha () const |
Whether an image contains relevant alpha information. More... | |
void | setHasAlpha (bool has_alpha) |
Whether an image contains relevant alpha information. More... | |
int | alphaBits () const |
The number of bits dedicated to the alpha channel. More... | |
bool | isNormalMap () const |
Whether an image represents a normal map. More... | |
void | setIsNormalMap (bool is_normalmap) |
Whether an image represents a normal map. More... | |
const KeyValues * | tags () const |
A set of key/value couples that can be used to attach extra information to an image like DICOM information etc. More... | |
KeyValues * | tags () |
A set of key/value couples that can be used to attach extra information to an image like DICOM information etc. More... | |
void | setTags (KeyValues *tags) |
A set of key/value couples that can be used to attach extra information to an image like DICOM information etc. More... | |
void | setImageBuffer (Buffer *buffer) |
The buffer used to store the image pixels. More... | |
Buffer * | imageBuffer () |
The buffer used to store the image pixels. More... | |
const Buffer * | imageBuffer () const |
The buffer used to store the image pixels. More... | |
const unsigned char * | pixels () const |
Raw pointer to pixels. More... | |
unsigned char * | pixels () |
Raw pointer to pixels. More... | |
bool | empty () |
True if image is empty. More... | |
unsigned char * | pixelsZSlice (int zth_slice) |
Zth slice of 3D image. More... | |
unsigned char * | pixelsXP () |
X-positive cubemap face. More... | |
unsigned char * | pixelsXN () |
X-negative cubemap face. More... | |
unsigned char * | pixelsYP () |
Y-positive cubemap face. More... | |
unsigned char * | pixelsYN () |
Y-negative cubemap face. More... | |
unsigned char * | pixelsZP () |
Z-positive cubemap face. More... | |
unsigned char * | pixelsZN () |
Z-negative cubemap face. More... | |
const unsigned char * | pixelsXP () const |
const unsigned char * | pixelsXN () const |
const unsigned char * | pixelsYP () const |
const unsigned char * | pixelsYN () const |
const unsigned char * | pixelsZP () const |
const unsigned char * | pixelsZN () const |
void | setMipmaps (const std::vector< ref< Image > > &mipmaps) |
const std::vector< ref< Image > > & | mipmaps () const |
std::vector< ref< Image > > & | mipmaps () |
int | width () const |
int | height () const |
int | depth () const |
int | pitch () const |
EImageFormat | format () const |
EImageType | type () const |
int | isCompressedFormat (EImageFormat fmt) |
void | flipVertically () |
ref< Image > | convertType (EImageType new_type) const |
Converts the type() of an image. More... | |
ref< Image > | convertFormat (EImageFormat new_format) const |
Converts the format() of an image. More... | |
bool | equalize () |
Equalizes the image. Returns false if the image format() or type() is not supported. This function supports both 3D images and cubemaps. More... | |
bool | contrast (float black, float white) |
Adjusts the contrast of an image. Returns false if the image format() or type() is not supported. This function supports both 3D images and cubemaps. More... | |
bool | contrastHounsfieldAuto () |
Adjusts the contrast of an image using the window-center/window-width method used for CT images. Returns false if the image format() or type() is not supported. This function supports both 3D images and cubemaps. More... | |
bool | contrastHounsfield (float center, float width, float intercept, float range) |
Adjusts the contrast of an image using the window-center/window-width method used for CT images. Returns false if the image format() or type() is not supported. This function supports both 3D images and cubemaps. More... | |
fvec4 | sampleLinear (double x) const |
Performs a sampling on a 1d image using linear filtering. More... | |
fvec4 | sampleLinear (double x, double y) const |
Performs a sampling on a 2d image using bilinear filtering. More... | |
fvec4 | sampleLinear (double x, double y, double z) const |
Performs a sampling on a 3d image using trilinear filtering. More... | |
fvec4 | sample (int x, int y=0, int z=0) const |
Returns the color associated to the specified pixel. More... | |
ref< Image > | subImage (int xstart, int ystart, int width, int height) |
Creates a new image containing the specified rectangular pixel area taken from the source image. More... | |
void | copySubImage (Image *img_src, RectI src, ivec2 dst) |
Copies the rectangular area specified by src of img_src into an Image at position dst . More... | |
void | substituteColorRGB_RGBA (unsigned int before, unsigned int after) |
Substitutes the color 'before' with the new color 'after'. More... | |
void | substituteColorRGB_RGB (unsigned int before, unsigned int after) |
Substitutes the color 'before' with the new color 'after'. More... | |
void | substituteColorGreenKey (unsigned int col0, unsigned int col1) |
const String & | filePath () const |
The file from which the image was loaded. More... | |
void | setFilePath (const String &path) |
The file from which the image was loaded. More... | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Static Public Member Functions | |
static int | bitsPerPixel (EImageType type, EImageFormat format) |
Returns the number of bits used to represents one pixel. More... | |
static int | requiredMemory (int x, int y, int z, int bytealign, EImageFormat format, EImageType type, bool is_cubemap) |
static int | requiredMemory1D (int x, EImageFormat format, EImageType type) |
static int | requiredMemory2D (int x, int y, int bytealign, EImageFormat format, EImageType type) |
static int | requiredMemory3D (int x, int y, int z, int bytealign, EImageFormat format, EImageType type) |
static int | requiredMemoryCubemap (int x, int y, int bytealign, EImageFormat format, EImageType type) |
Protected Member Functions | |
void | updatePitch () |
void | allocate () |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Protected Attributes | |
ref< Buffer > | mPixels |
ref< KeyValues > | mTags |
String | mFilePath |
std::vector< ref< Image > > | mMipmaps |
int | mWidth |
int | mHeight |
int | mDepth |
int | mPitch |
int | mByteAlign |
EImageFormat | mFormat |
EImageType | mType |
bool | mIsCubemap |
bool | mIsNormalMap |
bool | mHasAlpha |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Implements a generic 1d, 2d, 3d and cubemap image that can have mipmaps.
Image::Image | ( | ) |
Constructor.
Definition at line 56 of file Image.cpp.
References mPixels, and reset().
Referenced by vl::assemble3DImage(), convertFormat(), convertType(), vl::createCubemap(), vl::loadRAW(), vl::makeColorSpectrum(), vl::makeNonUniformColorSpectrum(), operator=(), and subImage().
Image::Image | ( | void * | buffer_ptr, |
int | buffer_bytes | ||
) |
Initializes the image to use vl::Buffer::UserAllocatedBuffer mode and the given buffer instead of allocating its own buffer.
Call allocate1D/2D/3D/Cubemap() to further initialize the image. See also: Image::imageBuffer() and Buffer::setUserAllocatedBuffer().
Image::Image | ( | const String & | file_path | ) |
Initializes the image reading from the give file path.
Definition at line 79 of file Image.cpp.
References vl::loadImage(), mByteAlign, mDepth, mFilePath, mFormat, mHasAlpha, mHeight, mIsCubemap, mIsNormalMap, mMipmaps, mPitch, mPixels, mType, mWidth, reset(), vl::Object::setObjectName(), and vl::String::toStdString().
Image::Image | ( | int | x, |
int | y, | ||
int | z, | ||
int | bytealign, | ||
EImageFormat | format, | ||
EImageType | type | ||
) |
Initializes a 1D, 2D or 3D image. For 2D images y
and z
must be set to 0. For 3D images z
must be set to 0.
Note that the image is not allocated.
Definition at line 109 of file Image.cpp.
References allocate1D(), allocate2D(), allocate3D(), mPixels, and setByteAlignment().
Image::Image | ( | const Image & | other | ) |
|
protected |
Definition at line 580 of file Image.cpp.
References mMipmaps, mPixels, and requiredMemory().
Referenced by convertFormat(), and convertType().
void Image::allocate1D | ( | int | x, |
EImageFormat | format, | ||
EImageType | type | ||
) |
Definition at line 586 of file Image.cpp.
References vl::Buffer::AutoAllocatedBuffer, vl::Log::bug(), mIsCubemap, mPixels, requiredMemory(), reset(), setByteAlignment(), setDepth(), setFormat(), setHeight(), setType(), setWidth(), and VL_CHECK.
Referenced by Image().
void Image::allocate2D | ( | int | x, |
int | y, | ||
int | bytealign, | ||
EImageFormat | format, | ||
EImageType | type | ||
) |
Definition at line 608 of file Image.cpp.
References vl::Buffer::AutoAllocatedBuffer, vl::Log::bug(), mIsCubemap, mPixels, requiredMemory(), reset(), setByteAlignment(), setDepth(), setFormat(), setHeight(), setType(), setWidth(), and VL_CHECK.
Referenced by Image(), vl::loadBMP(), vl::loadDICOM(), vl::loadJPG(), vl::loadPNG(), vl::loadTGA(), vl::loadTIFF(), vl::readPixels(), and subImage().
void Image::allocate3D | ( | int | x, |
int | y, | ||
int | z, | ||
int | bytealign, | ||
EImageFormat | format, | ||
EImageType | type | ||
) |
Definition at line 631 of file Image.cpp.
References vl::Buffer::AutoAllocatedBuffer, vl::Log::bug(), mIsCubemap, mPixels, requiredMemory(), reset(), setByteAlignment(), setDepth(), setFormat(), setHeight(), setType(), setWidth(), and VL_CHECK.
Referenced by vl::assemble3DImage(), vl::genGradientNormals(), and Image().
void Image::allocateCubemap | ( | int | x, |
int | y, | ||
int | bytealign, | ||
EImageFormat | format, | ||
EImageType | type | ||
) |
Definition at line 655 of file Image.cpp.
References vl::Buffer::AutoAllocatedBuffer, vl::Log::bug(), mIsCubemap, mPixels, requiredMemory(), reset(), setByteAlignment(), setDepth(), setFormat(), setHeight(), setType(), and setWidth().
Referenced by vl::createCubemap().
int Image::alphaBits | ( | ) | const |
The number of bits dedicated to the alpha channel.
Useful to know if the image format supports alpha or not.
Definition at line 449 of file Image.cpp.
References format(), vl::IF_ALPHA, vl::IF_BGR, vl::IF_BGRA, vl::IF_BLUE, vl::IF_COMPRESSED_RGB_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT3, vl::IF_COMPRESSED_RGBA_S3TC_DXT5, vl::IF_DEPTH_COMPONENT, vl::IF_DEPTH_STENCIL, vl::IF_GREEN, vl::IF_LUMINANCE, vl::IF_LUMINANCE_ALPHA, vl::IF_RED, vl::IF_RGB, vl::IF_RGBA, vl::IF_STENCIL_INDEX, vl::IT_BYTE, vl::IT_FLOAT, vl::IT_FLOAT_32_UNSIGNED_INT_24_8_REV, vl::IT_INT, vl::IT_SHORT, vl::IT_UNSIGNED_BYTE, vl::IT_UNSIGNED_BYTE_2_3_3_REV, vl::IT_UNSIGNED_BYTE_3_3_2, vl::IT_UNSIGNED_INT, vl::IT_UNSIGNED_INT_10_10_10_2, vl::IT_UNSIGNED_INT_10F_11F_11F_REV, vl::IT_UNSIGNED_INT_24_8, vl::IT_UNSIGNED_INT_2_10_10_10_REV, vl::IT_UNSIGNED_INT_5_9_9_9_REV, vl::IT_UNSIGNED_INT_8_8_8_8, vl::IT_UNSIGNED_INT_8_8_8_8_REV, vl::IT_UNSIGNED_SHORT, vl::IT_UNSIGNED_SHORT_1_5_5_5_REV, vl::IT_UNSIGNED_SHORT_4_4_4_4, vl::IT_UNSIGNED_SHORT_4_4_4_4_REV, vl::IT_UNSIGNED_SHORT_5_5_5_1, vl::IT_UNSIGNED_SHORT_5_6_5, vl::IT_UNSIGNED_SHORT_5_6_5_REV, type(), and VL_TRAP.
|
static |
Returns the number of bits used to represents one pixel.
Definition at line 382 of file Image.cpp.
References vl::IF_ALPHA, vl::IF_BGR, vl::IF_BGRA, vl::IF_BLUE, vl::IF_COMPRESSED_RGB_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT3, vl::IF_COMPRESSED_RGBA_S3TC_DXT5, vl::IF_DEPTH_COMPONENT, vl::IF_DEPTH_STENCIL, vl::IF_GREEN, vl::IF_LUMINANCE, vl::IF_LUMINANCE_ALPHA, vl::IF_RED, vl::IF_RG, vl::IF_RGB, vl::IF_RGBA, vl::IF_STENCIL_INDEX, vl::IT_BYTE, vl::IT_FLOAT, vl::IT_FLOAT_32_UNSIGNED_INT_24_8_REV, vl::IT_INT, vl::IT_SHORT, vl::IT_UNSIGNED_BYTE, vl::IT_UNSIGNED_BYTE_2_3_3_REV, vl::IT_UNSIGNED_BYTE_3_3_2, vl::IT_UNSIGNED_INT, vl::IT_UNSIGNED_INT_10_10_10_2, vl::IT_UNSIGNED_INT_10F_11F_11F_REV, vl::IT_UNSIGNED_INT_24_8, vl::IT_UNSIGNED_INT_2_10_10_10_REV, vl::IT_UNSIGNED_INT_5_9_9_9_REV, vl::IT_UNSIGNED_INT_8_8_8_8, vl::IT_UNSIGNED_INT_8_8_8_8_REV, vl::IT_UNSIGNED_SHORT, vl::IT_UNSIGNED_SHORT_1_5_5_5_REV, vl::IT_UNSIGNED_SHORT_4_4_4_4, vl::IT_UNSIGNED_SHORT_4_4_4_4_REV, vl::IT_UNSIGNED_SHORT_5_5_5_1, vl::IT_UNSIGNED_SHORT_5_6_5, vl::IT_UNSIGNED_SHORT_5_6_5_REV, and VL_TRAP.
Referenced by copySubImage(), vl::ObjLoader::loadOBJ(), and vl::saveTIFF().
|
inline |
Definition at line 104 of file Image.hpp.
References bitsPerPixel().
Referenced by vl::assemble3DImage(), bitsPerPixel(), copySubImage(), requiredMemory(), subImage(), and updatePitch().
int Image::byteAlignment | ( | ) | const |
Returns the byte-alignment of the row of the image.
Possible return values are 1, 2, 4 and 8.
Definition at line 540 of file Image.cpp.
References mByteAlign.
Referenced by vl::assemble3DImage(), vl::createCubemap(), pixelsXN(), pixelsYN(), pixelsYP(), pixelsZN(), pixelsZP(), print(), vl::DrawPixels::render_Implementation(), requiredMemory(), and vl::Texture::setMipLevel().
bool Image::contrast | ( | float | black, |
float | white | ||
) |
Adjusts the contrast of an image. Returns false if the image format() or type() is not supported. This function supports both 3D images and cubemaps.
This function supports only images whose type() is IF_LUMINANCE, IF_RED, IF_GREEN, IF_BLUE, IF_ALPHA or IF_DEPTH_COMPONENT.
The parameters black
and white
are in normalized units (0=black, 1=white) but are not required to be in the range between 0 and 1.
Definition at line 1614 of file Image.cpp.
References depth(), vl::dot(), vl::Log::error(), format(), height(), vl::IF_ALPHA, vl::IF_BLUE, vl::IF_DEPTH_COMPONENT, vl::IF_GREEN, vl::IF_LUMINANCE, vl::IF_RED, isCubemap(), vl::IT_FLOAT, vl::IT_UNSIGNED_BYTE, vl::IT_UNSIGNED_INT, vl::IT_UNSIGNED_SHORT, pitch(), pixels(), type(), and width().
Referenced by contrastHounsfield(), and contrastHounsfieldAuto().
bool Image::contrastHounsfield | ( | float | center, |
float | width, | ||
float | intercept, | ||
float | range | ||
) |
Adjusts the contrast of an image using the window-center/window-width method used for CT images. Returns false if the image format() or type() is not supported. This function supports both 3D images and cubemaps.
The center
and width
parameters are in Hounsfield units.
This function is equivalent to the code below:
Definition at line 1585 of file Image.cpp.
References vl::clamp(), contrast(), and pitch().
bool Image::contrastHounsfieldAuto | ( | ) |
Adjusts the contrast of an image using the window-center/window-width method used for CT images. Returns false if the image format() or type() is not supported. This function supports both 3D images and cubemaps.
The center
and width
parameters are in Hounsfield units.
Calls contrastHounsfield(float center, float width, float intercept, float range) with center
, with
, range
and intercept
parameters extracted from the image tags() "WindowCenter"
, "WindowWidth"
, "BitsStored"
and "RescaleIntercept"
. This function is equivalent to the code below.
Definition at line 1557 of file Image.cpp.
References contrast(), tags(), vl::String::toFloat(), vl::String::toInt(), vl::KeyValues::value(), and width().
ref< Image > vl::Image::convertFormat | ( | EImageFormat | new_format | ) | const |
Converts the format()
of an image.
The source image type must be one of the following:
The source image format and the new format must be one of the following:
Definition at line 1719 of file Image.cpp.
References allocate(), depth(), vl::Log::error(), format(), height(), vl::IF_ALPHA, vl::IF_BGR, vl::IF_BGRA, vl::IF_BLUE, vl::IF_DEPTH_COMPONENT, vl::IF_GREEN, vl::IF_LUMINANCE, vl::IF_LUMINANCE_ALPHA, vl::IF_RED, vl::IF_RGB, vl::IF_RGBA, Image(), isCubemap(), vl::IT_BYTE, vl::IT_FLOAT, vl::IT_INT, vl::IT_SHORT, vl::IT_UNSIGNED_BYTE, vl::IT_UNSIGNED_INT, vl::IT_UNSIGNED_SHORT, mHasAlpha, mIsCubemap, mIsNormalMap, NULL, vl::Object::objectName(), pitch(), pixels(), setByteAlignment(), setDepth(), setFormat(), setHeight(), vl::Object::setObjectName(), setType(), setWidth(), type(), and width().
Referenced by copySubImage(), vl::genGradientNormals(), vl::loadBMP(), vl::ObjLoader::loadOBJ(), vl::saveDICOM(), vl::saveJPG(), vl::savePNG(), vl::saveTGA(), and vl::saveTIFF().
ref< Image > vl::Image::convertType | ( | EImageType | new_type | ) | const |
Converts the type()
of an image.
The source image type and the new type must be one of the following:
The source image format must be one of the following:
Definition at line 1303 of file Image.cpp.
References allocate(), depth(), vl::Log::error(), format(), height(), vl::IF_ALPHA, vl::IF_BGR, vl::IF_BGRA, vl::IF_BLUE, vl::IF_DEPTH_COMPONENT, vl::IF_GREEN, vl::IF_LUMINANCE, vl::IF_LUMINANCE_ALPHA, vl::IF_RED, vl::IF_RGB, vl::IF_RGBA, Image(), isCubemap(), vl::IT_BYTE, vl::IT_FLOAT, vl::IT_INT, vl::IT_SHORT, vl::IT_UNSIGNED_BYTE, vl::IT_UNSIGNED_INT, vl::IT_UNSIGNED_SHORT, mHasAlpha, mIsCubemap, mIsNormalMap, NULL, vl::Object::objectName(), pitch(), pixels(), setByteAlignment(), setDepth(), setFormat(), setHeight(), vl::Object::setObjectName(), setType(), setWidth(), type(), and width().
Referenced by copySubImage(), vl::genGradientNormals(), vl::ObjLoader::loadOBJ(), vl::saveJPG(), vl::savePNG(), vl::saveTGA(), and vl::saveTIFF().
Copies the rectangular area specified by src
of img_src
into an Image at position dst
.
The source and destination image should be of the same type() and format() for maximum performances.
Definition at line 2103 of file Image.cpp.
References bitsPerPixel(), convertFormat(), convertType(), format(), vl::Rect< T >::height(), height(), pitch(), pixels(), vl::RectI::right(), vl::RectI::top(), type(), VL_CHECK, vl::Rect< T >::width(), width(), vl::Rect< T >::x(), vl::Vector2< T_Scalar >::x(), vl::Rect< T >::y(), and vl::Vector2< T_Scalar >::y().
|
inline |
Definition at line 211 of file Image.hpp.
Referenced by vl::assemble3DImage(), contrast(), convertFormat(), convertType(), equalize(), flipVertically(), vl::genGradientNormals(), vl::genRGBAVolume(), pixelsZSlice(), print(), requiredMemory(), sample(), sampleLinear(), vl::saveDICOM(), vl::saveJPG(), vl::savePNG(), vl::saveTGA(), vl::saveTIFF(), vl::Texture::setMipLevel(), substituteColorGreenKey(), substituteColorRGB_RGB(), and substituteColorRGB_RGBA().
EImageDimension Image::dimension | ( | ) | const |
Definition at line 372 of file Image.cpp.
References vl::ID_1D, vl::ID_2D, vl::ID_3D, vl::ID_Cubemap, vl::ID_Error, mDepth, mHeight, mIsCubemap, and mWidth.
Referenced by vl::createCubemap(), flipVertically(), vl::genRGBAVolume(), pixelsXN(), pixelsXP(), pixelsYN(), pixelsYP(), pixelsZN(), pixelsZP(), vl::readPixels(), vl::saveDICOM(), vl::Texture::setMipLevel(), and vl::Texture::Texture().
|
inline |
bool Image::equalize | ( | ) |
Equalizes the image. Returns false if the image format() or type() is not supported. This function supports both 3D images and cubemaps.
This function is mainly useful for images whose type() is IF_LUMINANCE, IF_RED, IF_GREEN, IF_BLUE, IF_ALPHA or IF_DEPTH_COMPONENT.
IF_RGB, IF_RGBA, IF_BGR, IF_BGRA and IF_LUMINANCE_ALPHA types are not optimally handled yet.
Definition at line 1495 of file Image.cpp.
References depth(), vl::Log::error(), format(), height(), vl::IF_ALPHA, vl::IF_BGR, vl::IF_BGRA, vl::IF_BLUE, vl::IF_DEPTH_COMPONENT, vl::IF_GREEN, vl::IF_LUMINANCE, vl::IF_LUMINANCE_ALPHA, vl::IF_RED, vl::IF_RGB, vl::IF_RGBA, isCubemap(), vl::IT_FLOAT, vl::IT_UNSIGNED_BYTE, vl::IT_UNSIGNED_INT, vl::IT_UNSIGNED_SHORT, pitch(), pixels(), type(), and width().
|
inline |
The file from which the image was loaded.
Definition at line 371 of file Image.hpp.
Referenced by vlX::VLXClassWrapper_Texture::exportTexture().
void Image::flipVertically | ( | ) |
Definition at line 942 of file Image.cpp.
References depth(), dimension(), height(), vl::ID_1D, vl::ID_2D, vl::ID_3D, vl::ID_Cubemap, pitch(), pixels(), pixelsXN(), pixelsXP(), pixelsYN(), pixelsYP(), pixelsZN(), pixelsZP(), pixelsZSlice(), and VL_CHECK.
Referenced by vl::loadBMP(), vl::loadTGA(), vl::loadTIFF(), and vl::saveDICOM().
|
inline |
Definition at line 215 of file Image.hpp.
Referenced by alphaBits(), vl::assemble3DImage(), contrast(), convertFormat(), convertType(), copySubImage(), vl::createCubemap(), equalize(), vl::genRGBAVolume(), isValid(), pixelsXN(), pixelsYN(), pixelsYP(), pixelsZN(), pixelsZP(), printFormat(), vl::readPixels(), vl::DrawPixels::render_Implementation(), requiredMemory(), sample(), vl::saveDICOM(), vl::saveJPG(), vl::savePNG(), vl::saveTGA(), vl::saveTIFF(), vl::Texture::setMipLevel(), subImage(), substituteColorGreenKey(), substituteColorRGB_RGB(), and substituteColorRGB_RGBA().
|
inline |
|
inline |
Definition at line 209 of file Image.hpp.
Referenced by vl::assemble3DImage(), contrast(), convertFormat(), convertType(), copySubImage(), vl::createCubemap(), equalize(), flipVertically(), vl::genGradientNormals(), vl::genRGBAVolume(), vl::Terrain::init(), vl::loadBMP(), vl::loadJPG(), vl::ObjLoader::loadOBJ(), vl::loadTGA(), vl::DrawPixels::Pixels::Pixels(), pixelsXN(), pixelsYN(), pixelsYP(), pixelsZN(), pixelsZP(), pixelsZSlice(), print(), vl::readPixels(), requiredMemory(), sample(), sampleLinear(), vl::saveDICOM(), vl::saveJPG(), vl::savePNG(), vl::saveTGA(), vl::saveTIFF(), vl::Texture::setMipLevel(), subImage(), substituteColorGreenKey(), substituteColorRGB_RGB(), and substituteColorRGB_RGBA().
|
inline |
The buffer used to store the image pixels.
Definition at line 164 of file Image.hpp.
Referenced by vl::DrawPixels::Pixels::generatePixelBufferObject(), and vl::readPixels().
|
inline |
int Image::isCompressedFormat | ( | EImageFormat | fmt | ) |
Definition at line 515 of file Image.cpp.
References vl::IF_COMPRESSED_RGB_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT3, and vl::IF_COMPRESSED_RGBA_S3TC_DXT5.
|
inline |
Definition at line 78 of file Image.hpp.
Referenced by contrast(), convertFormat(), convertType(), equalize(), requiredMemory(), vl::saveJPG(), vl::savePNG(), vl::saveTGA(), and vl::saveTIFF().
|
inline |
bool Image::isValid | ( | ) | const |
Returns true if the image has valid width/height/depth, pitch and byte alignment, type/format combination.
Definition at line 135 of file Image.cpp.
References vl::Log::debug(), format(), vl::IF_BGR, vl::IF_BGRA, vl::IF_COMPRESSED_RGB_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT3, vl::IF_COMPRESSED_RGBA_S3TC_DXT5, vl::IF_DEPTH_STENCIL, vl::IF_RGB, vl::IF_RGBA, vl::IT_BYTE, vl::IT_FLOAT, vl::IT_FLOAT_32_UNSIGNED_INT_24_8_REV, vl::IT_IMPLICIT_TYPE, vl::IT_INT, vl::IT_SHORT, vl::IT_UNSIGNED_BYTE, vl::IT_UNSIGNED_BYTE_2_3_3_REV, vl::IT_UNSIGNED_BYTE_3_3_2, vl::IT_UNSIGNED_INT, vl::IT_UNSIGNED_INT_10_10_10_2, vl::IT_UNSIGNED_INT_10F_11F_11F_REV, vl::IT_UNSIGNED_INT_24_8, vl::IT_UNSIGNED_INT_2_10_10_10_REV, vl::IT_UNSIGNED_INT_5_9_9_9_REV, vl::IT_UNSIGNED_INT_8_8_8_8, vl::IT_UNSIGNED_INT_8_8_8_8_REV, vl::IT_UNSIGNED_SHORT, vl::IT_UNSIGNED_SHORT_1_5_5_5_REV, vl::IT_UNSIGNED_SHORT_4_4_4_4, vl::IT_UNSIGNED_SHORT_4_4_4_4_REV, vl::IT_UNSIGNED_SHORT_5_5_5_1, vl::IT_UNSIGNED_SHORT_5_6_5, vl::IT_UNSIGNED_SHORT_5_6_5_REV, mByteAlign, mDepth, mHeight, mWidth, pitch(), print(), and type().
Referenced by vl::createCubemap(), vl::DrawPixels::render_Implementation(), requiredMemory(), and vl::Texture::Texture().
Definition at line 708 of file Image.cpp.
References Image(), mByteAlign, mDepth, mFormat, mHasAlpha, mHeight, mIsCubemap, mIsNormalMap, mMipmaps, mPitch, mPixels, mType, and mWidth.
|
inline |
Definition at line 213 of file Image.hpp.
Referenced by contrast(), contrastHounsfield(), convertFormat(), convertType(), copySubImage(), equalize(), flipVertically(), vl::genRGBAVolume(), isValid(), vl::loadBMP(), vl::loadJPG(), vl::loadPNG(), pixelsZSlice(), print(), requiredMemory(), sample(), vl::savePNG(), vl::saveTIFF(), subImage(), substituteColorGreenKey(), substituteColorRGB_RGB(), and substituteColorRGB_RGBA().
|
inline |
Raw pointer to pixels.
Definition at line 170 of file Image.hpp.
References NULL.
Referenced by vl::assemble3DImage(), contrast(), convertFormat(), convertType(), copySubImage(), vl::createCubemap(), equalize(), flipVertically(), vl::genGradientNormals(), vl::genRGBAVolume(), vl::loadBMP(), vl::loadDICOM(), vl::loadJPG(), vl::ObjLoader::loadOBJ(), vl::loadPNG(), vl::loadRAW(), vl::loadTGA(), vl::loadTIFF(), vl::makeColorSpectrum(), vl::makeNonUniformColorSpectrum(), pixelsXN(), pixelsXP(), pixelsYN(), pixelsYP(), pixelsZN(), pixelsZP(), pixelsZSlice(), vl::readPixels(), vl::DrawPixels::render_Implementation(), sample(), vl::saveDICOM(), vl::saveJPG(), vl::savePNG(), vl::saveTGA(), vl::saveTIFF(), vl::Texture::setMipLevel(), subImage(), substituteColorGreenKey(), substituteColorRGB_RGB(), and substituteColorRGB_RGBA().
|
inline |
unsigned char * Image::pixelsXN | ( | ) |
X-negative cubemap face.
Definition at line 764 of file Image.cpp.
References byteAlignment(), dimension(), format(), height(), NULL, pixels(), requiredMemory2D(), type(), VL_CHECK, and width().
Referenced by vl::createCubemap(), flipVertically(), and vl::Texture::setMipLevel().
const unsigned char * Image::pixelsXN | ( | ) | const |
Definition at line 755 of file Image.cpp.
References byteAlignment(), dimension(), format(), height(), NULL, pixels(), requiredMemory2D(), type(), VL_CHECK, and width().
unsigned char * Image::pixelsXP | ( | ) |
X-positive cubemap face.
Definition at line 746 of file Image.cpp.
References dimension(), NULL, pixels(), and VL_CHECK.
Referenced by vl::createCubemap(), flipVertically(), and vl::Texture::setMipLevel().
const unsigned char * Image::pixelsXP | ( | ) | const |
unsigned char * Image::pixelsYN | ( | ) |
Y-negative cubemap face.
Definition at line 800 of file Image.cpp.
References byteAlignment(), dimension(), format(), height(), NULL, pixels(), requiredMemory2D(), type(), VL_CHECK, and width().
Referenced by vl::createCubemap(), flipVertically(), and vl::Texture::setMipLevel().
const unsigned char * Image::pixelsYN | ( | ) | const |
Definition at line 791 of file Image.cpp.
References byteAlignment(), dimension(), format(), height(), NULL, pixels(), requiredMemory2D(), type(), VL_CHECK, and width().
unsigned char * Image::pixelsYP | ( | ) |
Y-positive cubemap face.
Definition at line 782 of file Image.cpp.
References byteAlignment(), dimension(), format(), height(), NULL, pixels(), requiredMemory2D(), type(), VL_CHECK, and width().
Referenced by vl::createCubemap(), flipVertically(), and vl::Texture::setMipLevel().
const unsigned char * Image::pixelsYP | ( | ) | const |
Definition at line 773 of file Image.cpp.
References byteAlignment(), dimension(), format(), height(), NULL, pixels(), requiredMemory2D(), type(), VL_CHECK, and width().
unsigned char * Image::pixelsZN | ( | ) |
Z-negative cubemap face.
Definition at line 836 of file Image.cpp.
References byteAlignment(), dimension(), format(), height(), NULL, pixels(), requiredMemory2D(), type(), VL_CHECK, and width().
Referenced by vl::createCubemap(), flipVertically(), and vl::Texture::setMipLevel().
const unsigned char * Image::pixelsZN | ( | ) | const |
Definition at line 827 of file Image.cpp.
References byteAlignment(), dimension(), format(), height(), NULL, pixels(), requiredMemory2D(), type(), VL_CHECK, and width().
unsigned char * Image::pixelsZP | ( | ) |
Z-positive cubemap face.
Definition at line 818 of file Image.cpp.
References byteAlignment(), dimension(), format(), height(), NULL, pixels(), requiredMemory2D(), type(), VL_CHECK, and width().
Referenced by vl::createCubemap(), flipVertically(), and vl::Texture::setMipLevel().
const unsigned char * Image::pixelsZP | ( | ) | const |
Definition at line 809 of file Image.cpp.
References byteAlignment(), dimension(), format(), height(), NULL, pixels(), requiredMemory2D(), type(), VL_CHECK, and width().
unsigned char * Image::pixelsZSlice | ( | int | zth_slice | ) |
Zth slice of 3D image.
Returns the pixels of the specified Z slice of a 3D image.
Definition at line 846 of file Image.cpp.
References depth(), height(), mIsCubemap, NULL, pitch(), pixels(), and VL_CHECK.
Referenced by vl::assemble3DImage(), and flipVertically().
String Image::print | ( | ) | const |
Definition at line 350 of file Image.cpp.
References byteAlignment(), depth(), height(), vl::Object::objectName(), pitch(), printFormat(), printType(), and width().
Referenced by isValid().
String Image::printFormat | ( | ) | const |
Definition at line 323 of file Image.cpp.
References format(), vl::IF_ALPHA, vl::IF_BGR, vl::IF_BGRA, vl::IF_BLUE, vl::IF_COMPRESSED_RGB_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT3, vl::IF_COMPRESSED_RGBA_S3TC_DXT5, vl::IF_DEPTH_COMPONENT, vl::IF_DEPTH_STENCIL, vl::IF_GREEN, vl::IF_LUMINANCE, vl::IF_LUMINANCE_ALPHA, vl::IF_RED, vl::IF_RGB, vl::IF_RGBA, vl::IF_STENCIL_INDEX, NULL, and VL_CHECK.
Referenced by print().
String Image::printType | ( | ) | const |
Definition at line 289 of file Image.cpp.
References vl::IT_BYTE, vl::IT_FLOAT, vl::IT_FLOAT_32_UNSIGNED_INT_24_8_REV, vl::IT_IMPLICIT_TYPE, vl::IT_INT, vl::IT_SHORT, vl::IT_UNSIGNED_BYTE, vl::IT_UNSIGNED_BYTE_2_3_3_REV, vl::IT_UNSIGNED_BYTE_3_3_2, vl::IT_UNSIGNED_INT, vl::IT_UNSIGNED_INT_10_10_10_2, vl::IT_UNSIGNED_INT_10F_11F_11F_REV, vl::IT_UNSIGNED_INT_24_8, vl::IT_UNSIGNED_INT_2_10_10_10_REV, vl::IT_UNSIGNED_INT_5_9_9_9_REV, vl::IT_UNSIGNED_INT_8_8_8_8, vl::IT_UNSIGNED_INT_8_8_8_8_REV, vl::IT_UNSIGNED_SHORT, vl::IT_UNSIGNED_SHORT_1_5_5_5_REV, vl::IT_UNSIGNED_SHORT_4_4_4_4, vl::IT_UNSIGNED_SHORT_4_4_4_4_REV, vl::IT_UNSIGNED_SHORT_5_5_5_1, vl::IT_UNSIGNED_SHORT_5_6_5, vl::IT_UNSIGNED_SHORT_5_6_5_REV, NULL, type(), and VL_CHECK.
Referenced by print().
int Image::requiredMemory | ( | ) | const |
Returns the number of bytes requested to store the image.
Doesn't take into consideration mipmaps.
Definition at line 532 of file Image.cpp.
References byteAlignment(), depth(), format(), height(), isCubemap(), isValid(), type(), VL_CHECK, and width().
Referenced by allocate(), allocate1D(), allocate2D(), allocate3D(), allocateCubemap(), vl::assemble3DImage(), vl::createCubemap(), vl::loadDDS(), vl::ObjLoader::loadOBJ(), vl::loadRAW(), vl::loadTGA(), vl::loadTIFF(), vl::saveDICOM(), vl::saveTGA(), vl::saveTIFF(), and vl::Texture::setMipLevel().
|
static |
Definition at line 987 of file Image.cpp.
References bitsPerPixel(), depth(), height(), vl::IF_COMPRESSED_RGB_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT1, vl::IF_COMPRESSED_RGBA_S3TC_DXT3, vl::IF_COMPRESSED_RGBA_S3TC_DXT5, and pitch().
|
inlinestatic |
|
inlinestatic |
Definition at line 112 of file Image.hpp.
Referenced by pixelsXN(), pixelsYN(), pixelsYP(), pixelsZN(), pixelsZP(), and vl::readPixels().
|
inlinestatic |
|
inlinestatic |
void Image::reset | ( | int | x, |
int | y, | ||
int | z, | ||
int | bytealign, | ||
EImageFormat | format, | ||
EImageType | type, | ||
bool | is_cubemap | ||
) |
Sets up the image configuration & clears the local storage.
Definition at line 676 of file Image.cpp.
References mIsCubemap, reset(), setByteAlignment(), setDepth(), setFormat(), setHeight(), setType(), and setWidth().
Referenced by vl::readPixels().
void Image::reset | ( | ) |
Disposes all the pixel data and resets the image settings to its defaults.
Definition at line 689 of file Image.cpp.
References vl::Buffer::AutoAllocatedBuffer, vl::IF_RGBA, vl::IT_UNSIGNED_BYTE, mByteAlign, mDepth, mFormat, mHasAlpha, mHeight, mIsCubemap, mIsNormalMap, mMipmaps, vl::Object::mObjectName, mPitch, mPixels, mType, and mWidth.
Referenced by allocate1D(), allocate2D(), allocate3D(), allocateCubemap(), Image(), reset(), and ~Image().
fvec4 Image::sample | ( | int | x, |
int | y = 0 , |
||
int | z = 0 |
||
) | const |
Returns the color associated to the specified pixel.
The rgb values are mapped to 0..1 for all image types but IT_FLOAT. The value returned for images of type IT_FLOAT is returned exactly as is stored in the image.
The image type() must be one of the following:
The image format() must be one of the following:
Definition at line 1998 of file Image.cpp.
References vl::Vector4< T_Scalar >::b(), depth(), format(), height(), vl::IF_ALPHA, vl::IF_BGR, vl::IF_BGRA, vl::IF_BLUE, vl::IF_DEPTH_COMPONENT, vl::IF_GREEN, vl::IF_LUMINANCE, vl::IF_LUMINANCE_ALPHA, vl::IF_RED, vl::IF_RGB, vl::IF_RGBA, vl::IT_BYTE, vl::IT_FLOAT, vl::IT_INT, vl::IT_SHORT, vl::IT_UNSIGNED_BYTE, vl::IT_UNSIGNED_INT, vl::IT_UNSIGNED_SHORT, pitch(), pixels(), vl::Vector4< T_Scalar >::r(), type(), VL_CHECK, and width().
Referenced by vl::genGradientNormals(), vl::Terrain::init(), and sampleLinear().
fvec4 Image::sampleLinear | ( | double | x | ) | const |
fvec4 Image::sampleLinear | ( | double | x, |
double | y | ||
) | const |
fvec4 Image::sampleLinear | ( | double | x, |
double | y, | ||
double | z | ||
) | const |
void Image::setByteAlignment | ( | int | bytealign | ) |
Modifies the byte-alignment of the rows of the image, thus changing its pitch.
Only values like 0, 1, 2, 4 and 8 are allowed. If 0 is passed the byte-alignment takes the value returned by "sizeof(unsigned char*)".
Definition at line 550 of file Image.cpp.
References mByteAlign, mPixels, updatePitch(), and VL_TRAP.
Referenced by allocate1D(), allocate2D(), allocate3D(), allocateCubemap(), convertFormat(), convertType(), Image(), and reset().
|
inline |
Definition at line 128 of file Image.hpp.
Referenced by allocate1D(), allocate2D(), allocate3D(), allocateCubemap(), convertFormat(), convertType(), and reset().
|
inline |
The file from which the image was loaded.
Definition at line 374 of file Image.hpp.
Referenced by vl::loadImage().
|
inline |
Definition at line 130 of file Image.hpp.
Referenced by allocate1D(), allocate2D(), allocate3D(), allocateCubemap(), convertFormat(), convertType(), and reset().
|
inline |
|
inline |
Definition at line 126 of file Image.hpp.
Referenced by allocate1D(), allocate2D(), allocate3D(), allocateCubemap(), convertFormat(), convertType(), and reset().
|
inline |
|
inline |
|
inline |
A set of key/value couples that can be used to attach extra information to an image like DICOM information etc.
Definition at line 158 of file Image.hpp.
Referenced by vl::loadMHD().
|
inline |
Definition at line 132 of file Image.hpp.
Referenced by allocate1D(), allocate2D(), allocate3D(), allocateCubemap(), convertFormat(), convertType(), and reset().
|
inline |
Definition at line 124 of file Image.hpp.
Referenced by allocate1D(), allocate2D(), allocate3D(), allocateCubemap(), convertFormat(), convertType(), and reset().
Creates a new image containing the specified rectangular pixel area taken from the source image.
The returned image is of the same type() and format() of the original one.
Definition at line 2086 of file Image.cpp.
References allocate2D(), bitsPerPixel(), format(), height(), Image(), pitch(), pixels(), type(), VL_CHECK, and width().
Referenced by vl::Terrain::init().
void Image::substituteColorGreenKey | ( | unsigned int | col0, |
unsigned int | col1 | ||
) |
Definition at line 2210 of file Image.cpp.
References depth(), vl::Log::error(), format(), height(), vl::IF_RGB, vl::IF_RGBA, vl::IT_UNSIGNED_BYTE, pitch(), pixels(), type(), and width().
void Image::substituteColorRGB_RGB | ( | unsigned int | before, |
unsigned int | after | ||
) |
Substitutes the color 'before' with the new color 'after'.
before | is an hexadecimal representation of an RGB triplet given in the form 0xRRGGBB. |
after | is an hexadecimal representation of an RGB tripet given in the form 0xRRGGBB. For example 0xFF0000 is opaque red, 0x00FF00 is green. This function can be very useful when you want to modify a specified color of an image but you want to keep the alpha channel intact. |
Definition at line 2171 of file Image.cpp.
References depth(), vl::Log::error(), format(), height(), vl::IF_RGB, vl::IF_RGBA, vl::IT_UNSIGNED_BYTE, pitch(), pixels(), type(), and width().
void Image::substituteColorRGB_RGBA | ( | unsigned int | before, |
unsigned int | after | ||
) |
Substitutes the color 'before' with the new color 'after'.
before | is an hexadecimal representation of an RGB triplet given in the form 0xRRGGBB. |
after | is an hexadecimal representation of an RGBA quadruplet given in the form 0xRRGGBBAA. For example 0xFF0000FF is opaque red, 0x00FF0088 is half transparent green. This function can be very useful when you want to modify a specified color of an image or when you want to perform color-key transparency, i.e. when you want to set the transparency of the pixels that have a particular color. |
Definition at line 2129 of file Image.cpp.
References depth(), vl::Log::error(), format(), height(), vl::IF_RGB, vl::IF_RGBA, vl::IT_UNSIGNED_BYTE, pitch(), pixels(), type(), and width().
|
inline |
A set of key/value couples that can be used to attach extra information to an image like DICOM information etc.
Returns NULL by default.
Definition at line 151 of file Image.hpp.
Referenced by contrastHounsfieldAuto().
|
inline |
|
inline |
Definition at line 217 of file Image.hpp.
Referenced by alphaBits(), vl::assemble3DImage(), contrast(), convertFormat(), convertType(), copySubImage(), vl::createCubemap(), equalize(), vl::genRGBAVolume(), isValid(), pixelsXN(), pixelsYN(), pixelsYP(), pixelsZN(), pixelsZP(), printType(), vl::readPixels(), vl::DrawPixels::render_Implementation(), requiredMemory(), sample(), vl::saveDICOM(), vl::saveJPG(), vl::savePNG(), vl::saveTGA(), vl::saveTIFF(), vl::Texture::setMipLevel(), subImage(), substituteColorGreenKey(), substituteColorRGB_RGB(), and substituteColorRGB_RGBA().
|
protected |
Definition at line 573 of file Image.cpp.
References bitsPerPixel(), mByteAlign, mPitch, and mWidth.
Referenced by setByteAlignment().
|
inline |
Definition at line 207 of file Image.hpp.
Referenced by vl::assemble3DImage(), contrast(), contrastHounsfieldAuto(), convertFormat(), convertType(), copySubImage(), vl::createCubemap(), equalize(), vl::genGradientNormals(), vl::genRGBAVolume(), vl::Terrain::init(), vl::loadBMP(), vl::ObjLoader::loadOBJ(), vl::loadTGA(), vl::makeColorSpectrum(), vl::makeNonUniformColorSpectrum(), vl::DrawPixels::Pixels::Pixels(), pixelsXN(), pixelsYN(), pixelsYP(), pixelsZN(), pixelsZP(), print(), vl::readPixels(), vl::DrawPixels::render_Implementation(), requiredMemory(), sample(), sampleLinear(), vl::saveDICOM(), vl::saveJPG(), vl::savePNG(), vl::saveTGA(), vl::saveTIFF(), vl::Texture::setMipLevel(), vl::VectorGraphics::setPoint(), subImage(), substituteColorGreenKey(), substituteColorRGB_RGB(), and substituteColorRGB_RGBA().
|
protected |
Definition at line 389 of file Image.hpp.
Referenced by byteAlignment(), Image(), isValid(), operator=(), reset(), setByteAlignment(), and updatePitch().
|
protected |
Definition at line 387 of file Image.hpp.
Referenced by dimension(), Image(), isValid(), operator=(), and reset().
|
protected |
|
protected |
Definition at line 390 of file Image.hpp.
Referenced by Image(), operator=(), and reset().
|
protected |
Definition at line 394 of file Image.hpp.
Referenced by convertFormat(), convertType(), Image(), operator=(), and reset().
|
protected |
Definition at line 386 of file Image.hpp.
Referenced by dimension(), Image(), isValid(), operator=(), and reset().
|
protected |
Definition at line 392 of file Image.hpp.
Referenced by allocate1D(), allocate2D(), allocate3D(), allocateCubemap(), convertFormat(), convertType(), dimension(), Image(), operator=(), pixelsZSlice(), and reset().
|
protected |
Definition at line 393 of file Image.hpp.
Referenced by convertFormat(), convertType(), Image(), operator=(), and reset().
Definition at line 384 of file Image.hpp.
Referenced by allocate(), Image(), operator=(), and reset().
|
protected |
Definition at line 388 of file Image.hpp.
Referenced by Image(), operator=(), reset(), and updatePitch().
Definition at line 381 of file Image.hpp.
Referenced by allocate(), allocate1D(), allocate2D(), allocate3D(), allocateCubemap(), Image(), operator=(), reset(), and setByteAlignment().
|
protected |
Definition at line 391 of file Image.hpp.
Referenced by Image(), operator=(), and reset().
|
protected |
Definition at line 385 of file Image.hpp.
Referenced by dimension(), Image(), isValid(), operator=(), reset(), and updatePitch().
Visualization Library 2.0.0 Reference Documentation
Updated on Wed Dec 23 2020 12:44:08.
© Copyright Michele Bosi. All rights reserved.