InputImage Class Reference

List of all members.

Public Member Functions

 InputImage (const std::string filename)
 ~InputImage ()
const std::string getPixelType () const
const bool isColor () const
const bool isGrayscale () const
const int numBands () const
const int numExtraBands () const
const int numPixelSamples () const
const float getXResolution () const
const float getYResolution () const
const vigra::ImageImportInfo::ICCProfile getICCProfile () const
const std::string getFilename () const
const vigra::Rect2D getROI () const
const vigra::Size2D getCanvasSize () const
const std::string getMaskFilename () const
const vigra::ImageImportInfo & getImageImportInfo () const
void readLine (const int y)
template<class ValueType>
void getValue (const int x, vigra::RGBValue< ValueType > &value, ValueType &mask)
template<class ValueType>
void getValue (const int x, ValueType &value, ValueType &mask)

Private Attributes

std::string m_filename
vigra::ImageImportInfo m_info
vigra::Size2D m_canvassize
int m_offsetX
int m_offsetY
unsigned m_x
unsigned m_y
unsigned m_width
unsigned m_height
unsigned m_offset
unsigned m_bands
VIGRA_UNIQUE_PTR< vigra::Decoder > m_decoder
bool m_hasAlpha
bool m_noData

Detailed Description

Definition at line 198 of file stacker.cpp.


Constructor & Destructor Documentation

InputImage::InputImage ( const std::string  filename  )  [inline, explicit]

Definition at line 201 of file stacker.cpp.

References m_bands, m_canvassize, m_decoder, m_filename, m_hasAlpha, m_height, m_info, m_offset, m_offsetX, m_offsetY, m_width, m_x, and m_y.

InputImage::~InputImage (  )  [inline]

Definition at line 222 of file stacker.cpp.

References m_decoder.


Member Function Documentation

const vigra::Size2D InputImage::getCanvasSize (  )  const [inline]

Definition at line 237 of file stacker.cpp.

References m_canvassize.

const std::string InputImage::getFilename (  )  const [inline]

Definition at line 235 of file stacker.cpp.

References m_filename.

const vigra::ImageImportInfo::ICCProfile InputImage::getICCProfile (  )  const [inline]

Definition at line 234 of file stacker.cpp.

References m_info.

const vigra::ImageImportInfo& InputImage::getImageImportInfo (  )  const [inline]

Definition at line 239 of file stacker.cpp.

References m_info.

const std::string InputImage::getMaskFilename (  )  const [inline]

Definition at line 238 of file stacker.cpp.

References m_filename, and hugin_utils::stripExtension().

const std::string InputImage::getPixelType (  )  const [inline]

Definition at line 226 of file stacker.cpp.

References m_info.

const vigra::Rect2D InputImage::getROI (  )  const [inline]

Definition at line 236 of file stacker.cpp.

References m_height, m_offsetX, m_offsetY, and m_width.

template<class ValueType>
void InputImage::getValue ( const int  x,
ValueType &  value,
ValueType &  mask 
) [inline]

Definition at line 308 of file stacker.cpp.

References m_bands, m_decoder, m_noData, m_offset, m_offsetX, m_width, and celeste::max().

template<class ValueType>
void InputImage::getValue ( const int  x,
vigra::RGBValue< ValueType > &  value,
ValueType &  mask 
) [inline]

Definition at line 266 of file stacker.cpp.

References m_bands, m_decoder, m_noData, m_offset, m_offsetX, m_width, and celeste::max().

const float InputImage::getXResolution (  )  const [inline]

Definition at line 232 of file stacker.cpp.

References m_info.

const float InputImage::getYResolution (  )  const [inline]

Definition at line 233 of file stacker.cpp.

References m_info.

const bool InputImage::isColor (  )  const [inline]

Definition at line 227 of file stacker.cpp.

References m_info.

const bool InputImage::isGrayscale (  )  const [inline]

Definition at line 228 of file stacker.cpp.

References m_info.

const int InputImage::numBands (  )  const [inline]

Definition at line 229 of file stacker.cpp.

References m_bands.

const int InputImage::numExtraBands (  )  const [inline]

Definition at line 230 of file stacker.cpp.

References m_info.

const int InputImage::numPixelSamples (  )  const [inline]

Definition at line 231 of file stacker.cpp.

References m_bands, and m_info.

void InputImage::readLine ( const int  y  )  [inline]

Definition at line 240 of file stacker.cpp.

References m_decoder, m_height, m_noData, m_offsetY, and m_y.


Member Data Documentation

unsigned InputImage::m_bands [private]

Definition at line 351 of file stacker.cpp.

Referenced by getValue(), InputImage(), numBands(), and numPixelSamples().

vigra::Size2D InputImage::m_canvassize [private]

Definition at line 349 of file stacker.cpp.

Referenced by getCanvasSize(), and InputImage().

VIGRA_UNIQUE_PTR<vigra::Decoder> InputImage::m_decoder [private]

Definition at line 352 of file stacker.cpp.

Referenced by getValue(), InputImage(), readLine(), and ~InputImage().

std::string InputImage::m_filename [private]

Definition at line 344 of file stacker.cpp.

Referenced by getFilename(), getMaskFilename(), and InputImage().

bool InputImage::m_hasAlpha [private]

Definition at line 353 of file stacker.cpp.

Referenced by InputImage().

unsigned InputImage::m_height [private]

Definition at line 351 of file stacker.cpp.

Referenced by getROI(), InputImage(), and readLine().

vigra::ImageImportInfo InputImage::m_info [private]

Definition at line 348 of file stacker.cpp.

Referenced by getICCProfile(), getImageImportInfo(), getPixelType(), getXResolution(), getYResolution(), InputImage(), isColor(), isGrayscale(), numExtraBands(), and numPixelSamples().

bool InputImage::m_noData [private]

Definition at line 353 of file stacker.cpp.

Referenced by getValue(), and readLine().

unsigned InputImage::m_offset [private]

Definition at line 351 of file stacker.cpp.

Referenced by getValue(), and InputImage().

int InputImage::m_offsetX [private]

Definition at line 350 of file stacker.cpp.

Referenced by getROI(), getValue(), and InputImage().

int InputImage::m_offsetY [private]

Definition at line 350 of file stacker.cpp.

Referenced by getROI(), InputImage(), and readLine().

unsigned InputImage::m_width [private]

Definition at line 351 of file stacker.cpp.

Referenced by getROI(), getValue(), and InputImage().

unsigned InputImage::m_x [private]

Definition at line 351 of file stacker.cpp.

Referenced by InputImage().

unsigned InputImage::m_y [private]

Definition at line 351 of file stacker.cpp.

Referenced by InputImage(), and readLine().


The documentation for this class was generated from the following file:
Generated on 25 Apr 2018 for Hugintrunk by  doxygen 1.4.7