library of assembled shared sources |
http://lass.cocamware.com |
#include <image.h>
Data Structures | |
class | BadFormat |
struct | ColorSpace |
struct | FileFormat |
struct | HeaderIgi |
struct | HeaderLass |
struct | HeaderPfm |
struct | HeaderRadianceHdr |
struct | HeaderTarga |
Public Types | |
enum | { numChromaticities = 4 } |
typedef prim::ColorRGBA | TPixel |
typedef std::vector< TPixel > | TRaster |
typedef prim::ColorRGBA::TValue | TValue |
typedef prim::ColorRGBA::TParam | TParam |
typedef prim::ColorRGBA::TNumTraits | TNumTraits |
typedef prim::Point2D < num::Tfloat32 > | TChromaticity |
typedef TValue(* | TFilterFunction )(TValue) |
Public Member Functions | |
Image () | |
Default constructor. | |
Image (unsigned rows, unsigned cols) | |
Construct image of given width and height. | |
Image (const std::string &filename) | |
Construct image from given file. | |
Image (const Image &other) | |
Copy constructor. | |
~Image () | |
Destructor. | |
void | reset () |
Reset image to empty image. | |
void | reset (unsigned rows, unsigned cols) |
Reset image to (black) image of given width. | |
void | reset (const std::string &filename) |
Reset image to the one in the given file. | |
void | reset (const Image &other) |
Reset image to copy of given image. | |
void | open (const std::string &filename) |
Open image from file. | |
void | open (BinaryIStream &stream, const std::string &formatTag) |
Open image from binary stream. | |
void | save (const std::string &filename) |
Save image to file. | |
void | save (BinaryOStream &stream, const std::string &formatTag) |
Save image to file. | |
Image & | operator= (const Image &other) |
Copy other into this image. | |
void | swap (Image &other) |
swap two images | |
const TPixel & | operator[] (unsigned flatIndex) const |
TPixel & | operator[] (unsigned flatIndex) |
const TPixel & | operator() (unsigned row, unsigned col) const |
Return const pixel at position row, col. | |
TPixel & | operator() (unsigned row, unsigned col) |
Return reference to pixel at position row, col. | |
const TPixel & | at (signed row, signed col) const |
Return const pixel at position row, col. | |
TPixel & | at (signed row, signed col) |
Return reference to pixel at position row, col. | |
const TPixel *const | data () const |
Return const data block. | |
TPixel *const | data () |
Return data block. | |
const ColorSpace & | colorSpace () const |
Return colorSpace of image data. | |
ColorSpace & | colorSpace () |
Return colorSpace of image data. | |
void | transformColors (const ColorSpace &newColorSpace) |
Transform the colors from the current color spacer to destColorSpace. | |
const unsigned | rows () const |
Return height of image. | |
const unsigned | cols () const |
Return width of image. | |
const bool | isEmpty () const |
Return true if image is empty (no data). | |
void | over (const Image &other) |
this = this over other | |
void | in (const Image &other) |
this = this in other | |
void | out (const Image &other) |
this = this out other | |
void | atop (const Image &other) |
this = this atop other | |
void | through (const Image &other) |
this = this through other | |
void | rover (const Image &other) |
this = other over this | |
void | rin (const Image &other) |
this = other in this | |
void | rout (const Image &other) |
this = other out this | |
void | ratop (const Image &other) |
this = other atop this | |
void | rthrough (const Image &other) |
this = other through this | |
void | plus (const Image &other) |
this = this plus other = other plus this | |
void | clampNegatives () |
clamp all negative pixel components to zero. | |
void | filterMedian (unsigned boxSize) |
Apply a median filter on image. | |
void | filterGamma (TParam gammaExponent) |
apply gamma correction to image | |
void | filterExposure (TParam exposureTime) |
apply exposure to image | |
void | filterInverseExposure (TParam exposureTime) |
apply exposure to image | |
void | filter (TFilterFunction function) |
Private Types | |
typedef std::map< std::string, FileFormat > | TFileFormats |
typedef BinaryIStream &(Image::* | TFileOpener )(BinaryIStream &) |
typedef BinaryOStream &(Image::* | TFileSaver )(BinaryOStream &) const |
Private Member Functions | |
unsigned | resize (unsigned rows, unsigned cols) |
(re)allocate data chunck | |
unsigned | flatIndex (unsigned rows, unsigned cols) const |
BinaryIStream & | openLass (BinaryIStream &stream) |
Open LASS Raw file. | |
BinaryIStream & | openTarga (BinaryIStream &stream) |
Open TARGA file. | |
BinaryIStream & | openTargaTrueColor (BinaryIStream &stream, const HeaderTarga &iHeader) |
Open Type 2 and 11 TARGA file. | |
BinaryIStream & | openRadianceHdr (BinaryIStream &stream) |
BinaryIStream & | openPfm (BinaryIStream &stream) |
BinaryIStream & | openIgi (BinaryIStream &stream) |
BinaryOStream & | saveLass (BinaryOStream &stream) const |
BinaryOStream & | saveTarga (BinaryOStream &stream) const |
Save TARGA file (type 2, 32 bit). | |
BinaryOStream & | saveRadianceHdr (BinaryOStream &stream) const |
Save RADIANCE HDR. | |
BinaryOStream & | savePfm (BinaryOStream &stream) const |
BinaryOStream & | saveIgi (BinaryOStream &stream) const |
FileFormat | findFormat (const std::string &formatTag) |
std::string | readRadianceHdrString (BinaryIStream &stream) const |
Static Private Member Functions | |
static BinaryIStream & | readLine (BinaryIStream &stream, std::string &line) |
static BinaryOStream & | writeLine (BinaryOStream &stream, const std::string &line) |
static TFileFormats | fillFileFormats () |
static const ColorSpace | defaultColorSpace () |
return sRGB as colorSpace | |
static const ColorSpace | xyzColorSpace () |
Private Attributes | |
ColorSpace | colorSpace_ |
unsigned | rows_ |
unsigned | cols_ |
TRaster | raster_ |
Static Private Attributes | |
static TFileFormats | fileFormats_ = Image::fillFileFormats() |
static num::Tuint32 | magicLass_ = 0x7373616c |
static std::string | magicRadiance_ = "#?RADIANCE\n" |
static num::Tint32 | magicIgi_ = 66613373 |
Definition at line 71 of file image.h.
typedef std::vector<TPixel> lass::io::Image::TRaster |
typedef std::map<std::string, FileFormat> lass::io::Image::TFileFormats [private] |
typedef TValue(* lass::io::Image::TFilterFunction)(TValue) |
typedef BinaryIStream&(Image::* lass::io::Image::TFileOpener)(BinaryIStream &) [private] |
typedef BinaryOStream&(Image::* lass::io::Image::TFileSaver)(BinaryOStream &) const [private] |
lass::io::Image::Image | ( | ) |
lass::io::Image::Image | ( | unsigned | rows, | |
unsigned | cols | |||
) |
lass::io::Image::Image | ( | const std::string & | filename | ) |
lass::io::Image::Image | ( | const Image & | other | ) |
void lass::io::Image::reset | ( | ) |
void lass::io::Image::reset | ( | unsigned | rows, | |
unsigned | cols | |||
) |
void lass::io::Image::reset | ( | const std::string & | filename | ) |
void lass::io::Image::reset | ( | const Image & | other | ) |
void lass::io::Image::open | ( | const std::string & | filename | ) |
Open image from file.
Definition at line 192 of file image.cpp.
References lass::io::fileExtension(), LASS_THROW, LASS_THROW_EX, and lass::util::Exception::message().
Referenced by Image().
void lass::io::Image::open | ( | BinaryIStream & | stream, | |
const std::string & | formatTag | |||
) |
Open image from binary stream.
Definition at line 218 of file image.cpp.
References lass::io::StreamBase::eof(), findFormat(), lass::io::StreamBase::good(), LASS_THROW_EX, lass::io::Image::FileFormat::open, and swap().
void lass::io::Image::save | ( | const std::string & | filename | ) |
Save image to file.
Definition at line 247 of file image.cpp.
References lass::io::fileExtension(), LASS_THROW, LASS_THROW_EX, and lass::util::Exception::message().
void lass::io::Image::save | ( | BinaryOStream & | stream, | |
const std::string & | formatTag | |||
) |
Save image to file.
Definition at line 273 of file image.cpp.
References lass::io::StreamBase::eof(), findFormat(), lass::io::StreamBase::good(), LASS_THROW_EX, and lass::io::Image::FileFormat::save.
void lass::io::Image::swap | ( | Image & | other | ) |
swap two images
Definition at line 308 of file image.cpp.
References colorSpace_, cols_, raster_, and rows_.
Referenced by open(), operator=(), and reset().
const TPixel& lass::io::Image::operator[] | ( | unsigned | flatIndex | ) | const [inline] |
TPixel& lass::io::Image::operator[] | ( | unsigned | flatIndex | ) | [inline] |
const Image::TPixel & lass::io::Image::operator() | ( | unsigned | row, | |
unsigned | col | |||
) | const |
Return const pixel at position row, col.
row | row of pixel, y coordinate. | |
col | column of pixel, x coordinate. |
Definition at line 322 of file image.cpp.
References cols_, flatIndex(), LASS_ASSERT, raster_, and rows_.
Image::TPixel & lass::io::Image::operator() | ( | unsigned | row, | |
unsigned | col | |||
) |
Return reference to pixel at position row, col.
row | row of pixel, y coordinate. | |
col | column of pixel, x coordinate. |
Definition at line 334 of file image.cpp.
References cols_, flatIndex(), LASS_ASSERT, raster_, and rows_.
const Image::TPixel & lass::io::Image::at | ( | signed | row, | |
signed | col | |||
) | const |
Return const pixel at position row, col.
position is wrapped around.
row | row of pixel, y coordinate. | |
col | column of pixel, x coordinate. |
Definition at line 346 of file image.cpp.
References cols_, flatIndex(), lass::num::mod(), raster_, and rows_.
Image::TPixel & lass::io::Image::at | ( | signed | row, | |
signed | col | |||
) |
Return reference to pixel at position row, col.
position is wrapped around.
row | row of pixel, y coordinate. | |
col | column of pixel, x coordinate. |
Definition at line 359 of file image.cpp.
References cols_, flatIndex(), lass::num::mod(), raster_, and rows_.
const Image::TPixel *const lass::io::Image::data | ( | ) | const |
Image::TPixel *const lass::io::Image::data | ( | ) |
const Image::ColorSpace & lass::io::Image::colorSpace | ( | ) | const |
Return colorSpace of image data.
Definition at line 388 of file image.cpp.
References colorSpace_.
Referenced by transformColors().
Image::ColorSpace & lass::io::Image::colorSpace | ( | ) |
Return colorSpace of image data.
You can change the parameters of the current color space without transforming the pixels. This is most useful if you know that the pixels are in a different color space that the current one is set to. For example, if you know the pixels have a gamma correction 2.2 applied, but the this->colorSpace().gamma == 1.
Definition at line 402 of file image.cpp.
References colorSpace_.
void lass::io::Image::transformColors | ( | const ColorSpace & | newColorSpace | ) |
Transform the colors from the current color spacer to destColorSpace.
The transformation consists of three stages:
Definition at line 422 of file image.cpp.
References lass::io::Image::ColorSpace::blue, lass::stde::C, colorSpace(), colorSpace_, lass::prim::concatenate(), filterGamma(), lass::io::Image::ColorSpace::gamma, lass::io::Image::ColorSpace::green, lass::io::Image::ColorSpace::isFromFile, raster_, lass::io::Image::ColorSpace::red, lass::prim::transform(), lass::io::Image::ColorSpace::white, lass::prim::Point2D< T >::x, and lass::prim::Point2D< T >::y.
const unsigned lass::io::Image::rows | ( | ) | const |
const unsigned lass::io::Image::cols | ( | ) | const |
const bool lass::io::Image::isEmpty | ( | ) | const |
void lass::io::Image::over | ( | const Image & | other | ) |
this = this over other
Definition at line 511 of file image.cpp.
References LASS_IO_IMAGE_ENFORCE_SAME_SIZE, lass::prim::over(), raster_, and lass::prim::transform().
void lass::io::Image::in | ( | const Image & | other | ) |
this = this in other
Definition at line 521 of file image.cpp.
References lass::prim::in(), LASS_IO_IMAGE_ENFORCE_SAME_SIZE, raster_, and lass::prim::transform().
void lass::io::Image::out | ( | const Image & | other | ) |
this = this out other
Definition at line 531 of file image.cpp.
References LASS_IO_IMAGE_ENFORCE_SAME_SIZE, lass::prim::out(), raster_, and lass::prim::transform().
void lass::io::Image::atop | ( | const Image & | other | ) |
this = this atop other
Definition at line 541 of file image.cpp.
References lass::prim::atop(), LASS_IO_IMAGE_ENFORCE_SAME_SIZE, raster_, and lass::prim::transform().
void lass::io::Image::through | ( | const Image & | other | ) |
this = this through other
Definition at line 551 of file image.cpp.
References LASS_IO_IMAGE_ENFORCE_SAME_SIZE, raster_, lass::prim::through(), and lass::prim::transform().
void lass::io::Image::rover | ( | const Image & | other | ) |
this = other over this
Definition at line 561 of file image.cpp.
References LASS_IO_IMAGE_ENFORCE_SAME_SIZE, lass::prim::over(), raster_, and lass::prim::transform().
void lass::io::Image::rin | ( | const Image & | other | ) |
this = other in this
Definition at line 571 of file image.cpp.
References lass::prim::in(), LASS_IO_IMAGE_ENFORCE_SAME_SIZE, raster_, and lass::prim::transform().
void lass::io::Image::rout | ( | const Image & | other | ) |
this = other out this
Definition at line 581 of file image.cpp.
References LASS_IO_IMAGE_ENFORCE_SAME_SIZE, lass::prim::out(), raster_, and lass::prim::transform().
void lass::io::Image::ratop | ( | const Image & | other | ) |
this = other atop this
Definition at line 591 of file image.cpp.
References lass::prim::atop(), LASS_IO_IMAGE_ENFORCE_SAME_SIZE, raster_, and lass::prim::transform().
void lass::io::Image::rthrough | ( | const Image & | other | ) |
this = other through this
Definition at line 601 of file image.cpp.
References LASS_IO_IMAGE_ENFORCE_SAME_SIZE, raster_, lass::prim::through(), and lass::prim::transform().
void lass::io::Image::plus | ( | const Image & | other | ) |
this = this plus other = other plus this
Definition at line 611 of file image.cpp.
References LASS_IO_IMAGE_ENFORCE_SAME_SIZE, lass::prim::plus(), raster_, and lass::prim::transform().
void lass::io::Image::clampNegatives | ( | ) |
void lass::io::Image::filterMedian | ( | unsigned | boxSize | ) |
Apply a median filter on image.
boxSize | size of box filter, must be odd. |
Definition at line 644 of file image.cpp.
References lass::prim::ColorRGBA::a, cols_, lass::prim::distance(), LASS_ASSERT, LASS_THROW, raster_, rows_, and lass::num::NumTraits< C >::zero.
void lass::io::Image::filterGamma | ( | TParam | gammaExponent | ) |
apply gamma correction to image
Definition at line 730 of file image.cpp.
References colorSpace_, lass::io::Image::ColorSpace::gamma, and raster_.
Referenced by transformColors().
void lass::io::Image::filterExposure | ( | TParam | exposureTime | ) |
void lass::io::Image::filterInverseExposure | ( | TParam | exposureTime | ) |
void lass::io::Image::filter | ( | TFilterFunction | function | ) |
unsigned lass::io::Image::resize | ( | unsigned | rows, | |
unsigned | cols | |||
) | [private] |
(re)allocate data chunck
Definition at line 777 of file image.cpp.
References cols_, raster_, and rows_.
Referenced by Image(), openIgi(), openLass(), openPfm(), openRadianceHdr(), and openTarga().
unsigned lass::io::Image::flatIndex | ( | unsigned | rows, | |
unsigned | cols | |||
) | const [inline, private] |
BinaryIStream & lass::io::Image::openLass | ( | BinaryIStream & | stream | ) | [private] |
Open LASS Raw file.
Definition at line 790 of file image.cpp.
References colorSpace_, lass::io::Image::HeaderLass::cols, defaultColorSpace(), lass::io::Image::ColorSpace::gamma, lass::io::Image::ColorSpace::isFromFile, lass::io::Image::HeaderLass::lass, LASS_THROW_EX, lass::num::littleEndian, magicLass_, numChromaticities, raster_, lass::io::Image::HeaderLass::readFrom(), resize(), lass::io::Image::HeaderLass::rows, and lass::io::Image::HeaderLass::version.
Referenced by fillFileFormats().
BinaryIStream & lass::io::Image::openTarga | ( | BinaryIStream & | stream | ) | [private] |
Open TARGA file.
Definition at line 841 of file image.cpp.
References colorSpace_, defaultColorSpace(), lass::io::Image::ColorSpace::gamma, lass::io::Image::HeaderTarga::imageHeight, lass::io::Image::HeaderTarga::imageType, lass::io::Image::HeaderTarga::imageWidth, LASS_THROW_EX, openTargaTrueColor(), lass::io::Image::HeaderTarga::readFrom(), and resize().
Referenced by fillFileFormats().
BinaryIStream & lass::io::Image::openTargaTrueColor | ( | BinaryIStream & | stream, | |
const HeaderTarga & | iHeader | |||
) | [private] |
Open Type 2 and 11 TARGA file.
Definition at line 867 of file image.cpp.
References lass::prim::ColorRGBA::a, lass::prim::ColorRGBA::b, lass::io::Image::HeaderTarga::colorMapEntrySize, lass::io::Image::HeaderTarga::colorMapLength, cols_, lass::io::Image::HeaderTarga::flipHorizontalFlag(), lass::io::Image::HeaderTarga::flipVerticalFlag(), lass::prim::ColorRGBA::g, lass::io::impl::Bytes4::get(), lass::io::Image::HeaderTarga::idLength, lass::io::Image::HeaderTarga::imageHeight, lass::io::Image::HeaderTarga::imagePixelSize, lass::io::Image::HeaderTarga::imageType, lass::io::Image::HeaderTarga::imageWidth, lass::num::inv(), LASS_ASSERT, LASS_THROW_EX, lass::num::NumTraits< C >::one, lass::prim::ColorRGBA::r, raster_, lass::io::BinaryIStream::read(), rows_, and lass::io::BinaryIStream::seekg().
Referenced by openTarga().
BinaryIStream & lass::io::Image::openRadianceHdr | ( | BinaryIStream & | stream | ) | [private] |
Definition at line 958 of file image.cpp.
References lass::io::Image::ColorSpace::blue, lass::io::Image::HeaderRadianceHdr::colorCorr, colorSpace_, lass::io::Image::HeaderRadianceHdr::exposure, lass::io::Image::ColorSpace::gamma, lass::io::impl::Bytes4::get(), lass::io::Image::ColorSpace::green, lass::io::Image::HeaderRadianceHdr::height, lass::num::inv(), lass::io::Image::ColorSpace::isFromFile, lass::io::Image::HeaderRadianceHdr::isRgb, LASS_ASSERT, LASS_THROW_EX, numChromaticities, lass::io::Image::HeaderRadianceHdr::primaries, raster_, lass::io::BinaryIStream::read(), lass::io::Image::HeaderRadianceHdr::readFrom(), lass::io::Image::ColorSpace::red, resize(), lass::io::Image::ColorSpace::white, lass::io::Image::HeaderRadianceHdr::width, lass::io::Image::HeaderRadianceHdr::xIncreasing, and lass::io::Image::HeaderRadianceHdr::yIncreasing.
Referenced by fillFileFormats().
BinaryIStream & lass::io::Image::openPfm | ( | BinaryIStream & | stream | ) | [private] |
Definition at line 1096 of file image.cpp.
References colorSpace_, cols_, defaultColorSpace(), lass::io::Image::HeaderPfm::endianness, lass::io::Image::ColorSpace::gamma, lass::io::Image::HeaderPfm::height, lass::io::Image::HeaderPfm::isGrey, LASS_THROW_EX, raster_, lass::io::Image::HeaderPfm::readFrom(), resize(), rows_, and lass::io::Image::HeaderPfm::width.
Referenced by fillFileFormats().
BinaryIStream & lass::io::Image::openIgi | ( | BinaryIStream & | stream | ) | [private] |
Definition at line 1146 of file image.cpp.
References colorSpace_, lass::io::Image::HeaderIgi::dataSize, defaultColorSpace(), lass::io::Image::ColorSpace::gamma, lass::io::Image::HeaderIgi::height, lass::io::Image::ColorSpace::isFromFile, LASS_THROW_EX, lass::num::littleEndian, lass::io::Image::HeaderIgi::magic, magicIgi_, raster_, lass::io::Image::HeaderIgi::readFrom(), resize(), lass::io::Image::HeaderIgi::rgb, lass::io::Image::HeaderIgi::version, lass::io::Image::HeaderIgi::width, xyzColorSpace(), and lass::io::Image::HeaderIgi::zipped.
Referenced by fillFileFormats().
BinaryOStream & lass::io::Image::saveLass | ( | BinaryOStream & | stream | ) | const [private] |
Definition at line 1186 of file image.cpp.
References colorSpace_, lass::io::Image::HeaderLass::cols, cols_, lass::io::Image::ColorSpace::gamma, lass::io::Image::HeaderLass::lass, lass::num::littleEndian, magicLass_, numChromaticities, raster_, lass::io::Image::HeaderLass::rows, rows_, lass::io::Image::HeaderLass::version, and lass::io::Image::HeaderLass::writeTo().
Referenced by fillFileFormats().
BinaryOStream & lass::io::Image::saveTarga | ( | BinaryOStream & | stream | ) | const [private] |
Save TARGA file (type 2, 32 bit).
Definition at line 1223 of file image.cpp.
References lass::prim::ColorRGBA::a, lass::prim::ColorRGBA::b, lass::num::clamp(), lass::io::Image::HeaderTarga::colorMapEntrySize, lass::io::Image::HeaderTarga::colorMapLength, lass::io::Image::HeaderTarga::colorMapOrigin, lass::io::Image::HeaderTarga::colorMapType, cols_, lass::prim::ColorRGBA::g, lass::io::impl::Bytes4::get(), lass::io::Image::HeaderTarga::idLength, lass::io::Image::HeaderTarga::imageDescriptor, lass::io::Image::HeaderTarga::imageHeight, lass::io::Image::HeaderTarga::imagePixelSize, lass::io::Image::HeaderTarga::imageType, lass::io::Image::HeaderTarga::imageWidth, lass::io::Image::HeaderTarga::imageXorigin, lass::io::Image::HeaderTarga::imageYorigin, LASS_ASSERT, lass::prim::ColorRGBA::r, raster_, rows_, lass::io::BinaryOStream::write(), and lass::io::Image::HeaderTarga::writeTo().
Referenced by fillFileFormats().
BinaryOStream & lass::io::Image::saveRadianceHdr | ( | BinaryOStream & | stream | ) | const [private] |
Save RADIANCE HDR.
Definition at line 1316 of file image.cpp.
References lass::prim::ColorRGBA::b, lass::num::clamp(), colorSpace_, cols_, lass::prim::ColorRGBA::g, lass::io::Image::HeaderRadianceHdr::height, lass::io::Image::HeaderRadianceHdr::isRgb, LASS_THROW_EX, numChromaticities, lass::io::Image::HeaderRadianceHdr::primaries, lass::prim::ColorRGBA::r, raster_, rows_, lass::io::Image::HeaderRadianceHdr::width, lass::io::BinaryOStream::write(), lass::io::Image::HeaderRadianceHdr::writeTo(), lass::io::Image::HeaderRadianceHdr::xIncreasing, xyzColorSpace(), and lass::io::Image::HeaderRadianceHdr::yIncreasing.
Referenced by fillFileFormats().
BinaryOStream & lass::io::Image::savePfm | ( | BinaryOStream & | stream | ) | const [private] |
Definition at line 1425 of file image.cpp.
References cols_, lass::io::Image::HeaderPfm::endianness, lass::io::Image::HeaderPfm::height, raster_, rows_, lass::io::Image::HeaderPfm::width, and lass::io::Image::HeaderPfm::writeTo().
Referenced by fillFileFormats().
BinaryOStream & lass::io::Image::saveIgi | ( | BinaryOStream & | stream | ) | const [private] |
Definition at line 1452 of file image.cpp.
References colorSpace_, cols_, lass::io::Image::HeaderIgi::dataSize, lass::io::Image::HeaderIgi::height, lass::num::littleEndian, lass::io::Image::HeaderIgi::magic, magicIgi_, lass::io::Image::HeaderIgi::numSamples, raster_, lass::io::Image::HeaderIgi::rgb, rows_, lass::io::Image::HeaderIgi::superSampling, lass::io::Image::HeaderIgi::version, lass::io::Image::HeaderIgi::width, lass::io::Image::HeaderIgi::writeTo(), xyzColorSpace(), and lass::io::Image::HeaderIgi::zipped.
Referenced by fillFileFormats().
Image::FileFormat lass::io::Image::findFormat | ( | const std::string & | formatTag | ) | [private] |
Definition at line 1481 of file image.cpp.
References fileFormats_, LASS_THROW_EX, and lass::stde::tolower().
std::string lass::io::Image::readRadianceHdrString | ( | BinaryIStream & | stream | ) | const [private] |
BinaryIStream & lass::io::Image::readLine | ( | BinaryIStream & | stream, | |
std::string & | line | |||
) | [static, private] |
Definition at line 1494 of file image.cpp.
References lass::io::StreamBase::good(), and lass::util::NonCopyable::swap().
Referenced by lass::io::Image::HeaderPfm::readFrom(), and lass::io::Image::HeaderRadianceHdr::readFrom().
BinaryOStream & lass::io::Image::writeLine | ( | BinaryOStream & | stream, | |
const std::string & | line | |||
) | [static, private] |
Definition at line 1518 of file image.cpp.
References lass::io::BinaryOStream::write().
Referenced by lass::io::Image::HeaderPfm::writeTo(), and lass::io::Image::HeaderRadianceHdr::writeTo().
Image::TFileFormats lass::io::Image::fillFileFormats | ( | ) | [static, private] |
Definition at line 1527 of file image.cpp.
References openIgi(), openLass(), openPfm(), openRadianceHdr(), openTarga(), saveIgi(), saveLass(), savePfm(), saveRadianceHdr(), and saveTarga().
const Image::ColorSpace lass::io::Image::defaultColorSpace | ( | ) | [static, private] |
return sRGB as colorSpace
Definition at line 1545 of file image.cpp.
References lass::io::Image::ColorSpace::blue, lass::io::Image::ColorSpace::gamma, lass::io::Image::ColorSpace::green, lass::io::Image::ColorSpace::isFromFile, lass::io::Image::ColorSpace::red, and lass::io::Image::ColorSpace::white.
Referenced by openIgi(), openLass(), openPfm(), and openTarga().
const Image::ColorSpace lass::io::Image::xyzColorSpace | ( | ) | [static, private] |
Definition at line 1559 of file image.cpp.
References lass::io::Image::ColorSpace::blue, lass::io::Image::ColorSpace::gamma, lass::io::Image::ColorSpace::green, lass::io::Image::ColorSpace::isFromFile, lass::io::Image::ColorSpace::red, and lass::io::Image::ColorSpace::white.
Referenced by openIgi(), saveIgi(), and saveRadianceHdr().
ColorSpace lass::io::Image::colorSpace_ [private] |
Definition at line 313 of file image.h.
Referenced by colorSpace(), filterGamma(), openIgi(), openLass(), openPfm(), openRadianceHdr(), openTarga(), saveIgi(), saveLass(), saveRadianceHdr(), swap(), and transformColors().
unsigned lass::io::Image::rows_ [private] |
Definition at line 314 of file image.h.
Referenced by at(), filterMedian(), openPfm(), openTargaTrueColor(), operator()(), resize(), rows(), saveIgi(), saveLass(), savePfm(), saveRadianceHdr(), saveTarga(), and swap().
unsigned lass::io::Image::cols_ [private] |
Definition at line 315 of file image.h.
Referenced by at(), cols(), filterMedian(), openPfm(), openTargaTrueColor(), operator()(), resize(), saveIgi(), saveLass(), savePfm(), saveRadianceHdr(), saveTarga(), and swap().
TRaster lass::io::Image::raster_ [private] |
Definition at line 316 of file image.h.
Referenced by at(), atop(), clampNegatives(), data(), filterExposure(), filterGamma(), filterInverseExposure(), filterMedian(), Image(), in(), isEmpty(), openIgi(), openLass(), openPfm(), openRadianceHdr(), openTargaTrueColor(), operator()(), out(), over(), plus(), ratop(), resize(), rin(), rout(), rover(), rthrough(), saveIgi(), saveLass(), savePfm(), saveRadianceHdr(), saveTarga(), swap(), through(), and transformColors().
Image::TFileFormats lass::io::Image::fileFormats_ = Image::fillFileFormats() [static, private] |
num::Tuint32 lass::io::Image::magicLass_ = 0x7373616c [static, private] |
std::string lass::io::Image::magicRadiance_ = "#?RADIANCE\n" [static, private] |
Definition at line 320 of file image.h.
Referenced by lass::io::Image::HeaderRadianceHdr::readFrom(), and lass::io::Image::HeaderRadianceHdr::writeTo().
num::Tint32 lass::io::Image::magicIgi_ = 66613373 [static, private] |
Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by 1.5.7.1 |