MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
mds::img Namespace Reference

Namespaces

namespace  cv
namespace  FeatureVector
namespace  gaussian
namespace  ImageTransform
namespace  log_filter
namespace  median
namespace  optflow
namespace  Point
namespace  RegionMerging
namespace  WatershedTransform

Classes

class  CAdjacencyGraph
class  CAffineMatrix
 Class encapsulates affine tranformation matrix. More...
class  CAffineTransform
 Base class for all geometrical image transformations. More...
class  CAnisotropicFilter
 Anisotropic filtering based on the diffusion process. More...
class  CArray
 Class template providing basic vector operations. More...
class  CAvg3Filter
 Averaging image filter (3x3 version). More...
class  CAvg5Filter
 Averaging image filter (5x5 version). More...
class  CAvg7Filter
 Averaging image filter (7x7 version). More...
class  CBicubic
 Bicubic interpolation. More...
class  CBilinear
 Bilinear interpolation. More...
class  CBlobLabeling
 Class encapsulating mapping of labels for image blobs. More...
class  CCanny
 Canny edge detector. More...
class  CCheckDiff
 Functor compares two pixels and checks if both pixels are almost equal. More...
class  CChiSquare
 The Chi-Square distance measure. More...
class  CColor
 RGBA color definition. More...
class  CConvolutionFilter
 General convolution filter. More...
class  CConvResponse
 Policy for image filter response normalization. More...
class  CCoordinates2
 Class representing coordinates in 2D space. More...
class  CCoordinates3
 Class representing coordinates in 3D space. More...
struct  CDefaultFilterPolicy
 Default policy for image filter response normalization. More...
class  CDensityVolume
 Class ecapsulating volumetric density data. More...
class  CDicomSlice
 Class encapsulating DICOM file operations. More...
class  CDiscardNegative
 Policy for image filter response normalization. More...
struct  CDistanceMeasure
 Base class for all distance measures. More...
class  CDoGFilter
 Difference of Gaussians image filter. More...
class  CFeatureExtractor
 Base class for all image feature extractors. More...
class  CFeatureVector
 Base class for all feature vectors encapsulating statistics extracted from an image region. More...
struct  CFilterPolicy
 Base class for all filter response normalization policies. More...
class  CFullHistogram
 Histogram having number of bins/columns corresponding to a number of possible item values. More...
class  CGaussFilter
 Gaussian smoothing filter. More...
class  CGraphics
 Base class for all graphic primitives. More...
class  CGStat
 The G-Statistics distance measure. More...
class  CHarris
 Harris corner detector. More...
class  CHistogram
 Quantized histogram having predefined number of bins/columns. More...
class  CHistogramBase
 Base class for all histogram classes. More...
class  CImage
 Class template representing 2D image data. More...
class  CImageBase
 Base class for all images. More...
class  CImageCornerDetector
 Base class for all image corner detectors. More...
class  CImageEdgeDetector
 Base class for all image edge detectors. More...
class  CImageFilter
 Base class for all image filters. More...
struct  CImageInterpolator
 Base class for all policies providing image pixel interpolation. More...
class  CImageIterator
 Iterator used to traverse image pixels by lines. More...
class  CImageRow
 Class template representing a single row of an existing image. More...
struct  CImageTraits
 Traits used to implement curiously recurring template pattern for images. More...
struct  CImageTraits< CImage< T, A > >
struct  CImageTraits< CvImage< T > >
class  CImageTransform
 Base class for all geometrical image transformations. More...
struct  CImageView
 Base class for all classes providing a view of an existing image. More...
class  CIsEqual
 Functor compares two pixels and returns true if both pixels are equal. More...
class  CKernel1D
 Class containing a 1D convolution kernel. More...
class  CKernel2D
 Class encapsulating a 2D convolution kernel. More...
class  CKernel3D
 Class encapsulating a 3D convolution kernel. More...
class  CLandmarkDetector
 Base class for all 3D landmark detectors. More...
class  CLaplaceFilter0
 Laplacian image filter (first version). More...
class  CLaplaceFilter1
 Laplacian image filter (second version). More...
class  CLaplaceFilter2
 Laplacian image filter (third version). More...
class  CLaplaceFilter5
 Laplacian image filter (4-th version). More...
class  CLine
 Class representing a line in 2D space. More...
class  CLocalMoment00
 Local moment. More...
class  CLocalMoment01
 Local moment. More...
class  CLocalMoment02
 Local moment. More...
class  CLocalMoment10
 Local moment. More...
class  CLocalMoment11
 Local moment. More...
class  CLocalMoment20
 Local moment. More...
class  CLocalMoment22
 Local moment. More...
class  CLoGFilter
 Laplacian of Gaussian image filter. More...
class  CMakeAbs
 Policy for image filter response normalization. More...
class  CMaxFilter
 Template providing square max-value image filtering functions. More...
class  CMeanValueSimilarity
 Basic similarity measure comparing mean pixel value. More...
class  CMedianFilter
 Template providing median image filtering functions. More...
class  CMinFilter
 Template providing square min-value image filtering functions. More...
class  CMinMaxThresholding
 Functor providing pixel value thresholding. More...
class  CMultiThresholding
 Functor providing pixel value thresholding. More...
class  CNearest
 The simplest nearest neighbour interpolator. More...
class  CNormImageFilter
 Base class for all image filters that normalize filter response using a predefined policy. More...
class  CNormVolumeFilter
 Base class for all volume filters that normalize filter response using a predefined policy. More...
class  COpticalFlow
class  CPixelConversion
 Template of a class for basic pixel conversions. More...
class  CPixelConversion< T, T >
 Specialization of the template class CPixelConversion for both pixels of a same type (no conversion). More...
class  CPixelConversion< T, tComplexPixel >
 Specialization of the CPixelConversion class for the tComplexPixel type. More...
class  CPixelConversion< T, tRGBPixel >
 Specialization of the CPixelConversion class for the tRGBPixel type. More...
class  CPixelConversion< tComplexPixel, R >
 Specialization of the CPixelConversion class for the tComplexPixel type. More...
class  CPixelConversion< tComplexPixel, tComplexPixel >
 Full specialization of the CPixelConversion class for the tComplexPixel type to prevent ambiquity. More...
class  CPixelConversion< tComplexPixel, tRGBPixel >
 Full specialization of the CPixelConversion class for the tComplexPixel and tRGBPixel types to prevent ambiquity. More...
class  CPixelConversion< tRGBPixel, R >
 Specialization of the CPixelConversion class for the tRGBPixel type. More...
class  CPixelConversion< tRGBPixel, tComplexPixel >
 Full specialization of the CPixelConversion class for the tComplexPixel and tRGBPixel types to prevent ambiquity. More...
class  CPixelConversion< tRGBPixel, tRGBPixel >
 Full specialization of the CPixelConversion class for the tRGBPixel type to prevent ambiquity. More...
class  CPixelStats
 Feature vector containing basic statistics like mean value and variance. More...
class  CPixelStatsExtractor
 Class used to extract image features for a triangle. More...
class  CPixelTraits
class  CPoint2
 Class representing a point in 2D space. More...
class  CPoint3
 Class representing a point in the 3D space. More...
class  CPrewitX
 Prewit gradient edge detector (horizontal version). More...
class  CPrewitY
 Prewit gradient edge detector (vertical edges). More...
class  CPyramid
 Template providing pyramidal image representation. More...
class  CRect
 Class template representing a rectangle within an existing image. More...
class  CRectBox
 Class template representing a rectangular box within an existing volume. More...
class  CRegionMerging
 Class providing watershed transform. More...
class  CRGBA
 Structure encapsulating RGBA values. More...
class  CRGBPixel
 RGB pixel definition. More...
class  CRobertsX
 Roberts cross operator (first version). More...
class  CRobertsY
 Roberts operator (second version). More...
class  CRohrLandmarks
class  CShiftZero2Gray
 Policy for image filter response normalization. More...
struct  CSimilarityMeasure
 Base class for all similarity measures. More...
class  CSinc
 Sinc interpolation. More...
class  CSingleThresholding
 Functor providing pixel value thresholding. More...
class  CSize2
 Class representing size of a rectangle in 2D space. More...
class  CSize3
 Class representing size of a rectangle box in 3D space. More...
class  CSlice
 Class ecapsulating a density slice. More...
class  CSobelX
 Sobel operator (horizontal version). More...
class  CSobelY
 Sobel operator (vertical edges). More...
class  CSusanDetector
 Modified Susan corner detector. More...
class  CSusanLandmarks
class  CUnion
 The union distance measure. More...
class  CUserFunc
 Policy for image filter response normalization. More...
class  CVarianceSimilarity
 Statistical test of the similarity based on pixel value variance. More...
class  CVector2
 Class representing a vector in 2D space. More...
class  CVector3
 Class representing a vector in 3D space. More...
class  CvImage
 Class template providing basic image operations. More...
class  CvImageRef
 Class template providing mechanism of reference counting to IplImage data (see the OpenCV library documentation). More...
class  CVolume
 Class template representing volumetric data. More...
class  CVolumeAnisotropicFilter
 Anisotropic filtering based on the diffusion process. More...
class  CVolumeAvg3Filter
 Averaging image filter (3x3 version). More...
class  CVolumeBase
 Base class for all volumes. More...
class  CVolumeCanny
 Canny edge detector in 3D space. More...
class  CVolumeConvolutionFilter
 General convolution volume filter. More...
class  CVolumeDiffXFilter
 Operator computes image derivatives in x direction. More...
class  CVolumeDiffYFilter
 Operator computes image derivatives in y direction. More...
class  CVolumeDiffZFilter
 Operator computes image derivatives in z direction. More...
class  CVolumeEdgeDetector
 Base class for all volume edge detectors. More...
struct  CVolumeFilter
 Base class for all volume filters. More...
class  CVolumeGauss3Filter
 3D Gaussian smoothing filter having kernel 3x3x3. More...
class  CVolumeGaussFilter
 3D Gaussian smoothing filter. More...
class  CVolumeIterator
 Iterator used to traverse volume by lines. More...
class  CVolumeLaplaceFilter0
 Laplacian volume filter (first version). More...
class  CVolumeLaplaceFilter1
 Laplacian volume filter (second version). More...
class  CVolumeMaxFilter
 Template providing max-value volume filtering functions. More...
class  CVolumeMedianFilter
 Template providing median volume filtering functions. More...
class  CVolumeMinFilter
 Template providing min-value volume filtering functions. More...
class  CVolumePrewitX
 Prewit gradient edge detector (x-axis). More...
class  CVolumePrewitY
 Prewit gradient edge detector (y-axis). More...
class  CVolumePrewitZ
 Prewit gradient edge detector (z-axis). More...
class  CVolumeRow
 Class template representing a single row of an existing volume. More...
class  CVolumeSobelX
 Sobel operator (x-axis). More...
class  CVolumeSobelY
 Sobel operator (y-axis). More...
class  CVolumeSobelZ
 Sobel operator (z-axis). More...
struct  CVolumeTraits
 Traits used to implement curiously recurring template pattern for volumes. More...
struct  CVolumeTraits< CVolume< T, A > >
struct  CVolumeView
 Base class for all classes providing a view of an existing volume. More...
class  CvTraits
class  CWatershedTransform
 Class providing watershed transform. More...
class  CWeightedEM
 Gaussian Mixture Model (GMM) optimization using maximal likelihood estimation via the Expection-Maximization (EM) algorithm. More...
class  CWeightedFCM
class  CZeroCrossDetector
 Zero crossings of the LoG filter. More...
struct  SIsFilterable
 Primary template. More...
struct  SIsFilterable< tDensityPixel >
struct  SIsFilterable< tFloatPixel >
struct  SIsFilterable< tPixel16 >
struct  SIsFilterable< tPixel32 >
struct  SIsFilterable< tPixel8 >

Typedefs

typedef CImage< tComplexPixelCComplexImage
 Complex image.
typedef CComplexImage::tSmartPtr CComplexImagePtr
 Smart pointer to complex image.
typedef CArray< double > CDArray
 Array of doubles.
typedef CDArray::tSmartPtr CDArrayPtr
 Pointer to a vector of doubles.
typedef CDensityVolume::tSmartPtr CDensityVolumePtr
typedef CDicomSlice::tSmartPtr CDicomSlicePtr
typedef CImage< tDensityPixelCDImage
 Density image.
typedef CFullHistogram< CDImageCDImageHistogram
 Histogram of the density image.
typedef CDImage::tSmartPtr CDImagePtr
 Smart pointer to density image.
typedef CPyramid< CDImageCDImagePyramid
 Pyramid of the density image.
typedef CDImagePyramid::tSmartPtr CDImagePyramidPtr
 Pyramid of the density image.
typedef CVolume< tDensityPixelCDVolume
 Density volume.
typedef CFullHistogram< CDVolumeCDVolumeHistogram
 Histogram of the density volume.
typedef CDVolume::tSmartPtr CDVolumePtr
 Density volume.
typedef CArray< float > CFArray
 Array of float numbers.
typedef CFArray::tSmartPtr CFArrayPtr
 Pointer to a vector of float numbers.
typedef CImage< tFloatPixelCFImage
 Float image.
typedef CHistogram< CFImageCFImageHistogram
 Histogram of the float image.
typedef CFImage::tSmartPtr CFImagePtr
 Smart pointer to float image.
typedef CPyramid< CFImageCFImagePyramid
 Pyramid of the float image.
typedef CFImagePyramid::tSmartPtr CFImagePyramidPtr
 Pyramid of the float image.
typedef CVolume< tFloatPixelCFVolume
 Float volume.
typedef CHistogram< CFVolumeCFVolumeHistogram
 Histogram of the float volume.
typedef CFVolume::tSmartPtr CFVolumePtr
 Float volume.
typedef CArray< intCIArray
 Array of int numbers.
typedef CIArray::tSmartPtr CIArrayPtr
 Pointer to a vector of int numbers.
typedef CImage< tPixel16CImage16
 Grayscale image, 16-bits per pixel.
typedef CFullHistogram< CImage16CImage16Histogram
 Histogram of the grayscale image, 16-bits per pixel.
typedef CImage16::tSmartPtr CImage16Ptr
 Smart pointer to grayscale image, 16-bit per pixel.
typedef CPyramid< CImage16CImage16Pyramid
 Pyramid of the grayscale image, 16-bits per pixel.
typedef CImage16Pyramid::tSmartPtr CImage16PyramidPtr
 Pyramid of the grayscale image, 16-bits per pixel.
typedef CImage< tPixel32CImage32
 Grayscale image, 32-bits per pixel.
typedef CFullHistogram< CImage32CImage32Histogram
 Histogram of the grayscale image, 32-bits per pixel.
typedef CImage32::tSmartPtr CImage32Ptr
 Smart pointer to grayscale image, 32-bit per pixel.
typedef CImage< tPixel8CImage8
 Grayscale image, 8-bits per pixel.
typedef CFullHistogram< CImage8CImage8Histogram
 Histogram of the grayscale image, 8-bits per pixel.
typedef CImage8::tSmartPtr CImage8Ptr
 Smart pointer to grayscale image, 8-bit per pixel.
typedef CPyramid< CImage8CImage8Pyramid
 Pyramid of the grayscale image, 8-bits per pixel.
typedef CImage8Pyramid::tSmartPtr CImage8PyramidPtr
 Pyramid of the grayscale image, 8-bits per pixel.
typedef CSize2i CImSize
 Favoured representation of an image size.
typedef CPoint2< double > CPoint2d
typedef CPoint2< float > CPoint2f
typedef CPoint2< intCPoint2i
 Point in 2D space.
typedef CPoint3< double > CPoint3d
typedef CPoint3< tCoordinateCPoint3D
 Favoured representation of a point in 3D space.
typedef CPoint3< float > CPoint3f
typedef CPoint3< intCPoint3i
 Point in 3D space.
typedef CImage< tRGBPixelCRGBImage
 Color RGB image.
typedef CRGBImage::tSmartPtr CRGBImagePtr
 Smart pointer to color RGB image.
typedef CVolume< tRGBPixelCRGBVolume
 Color RGB volume.
typedef CRGBVolume::tSmartPtr CRGBVolumePtr
 Color RGB volume.
typedef CSize2< double > CSize2d
typedef CSize2< float > CSize2f
typedef CSize2< intCSize2i
 Predefined 2D size types.
typedef CSize3< double > CSize3d
typedef CSize3< float > CSize3f
typedef CSize3< intCSize3i
 Predefined 3D size types.
typedef CSlice::tSmartPtr CSlicePtr
typedef CvImage< tComplexPixelCvComplexImage
 Complex image.
typedef CvComplexImage::tSmartPtr CvComplexImagePtr
 Smart pointer to complex image.
typedef CvImage< tDensityPixelCvDImage
 Density image.
typedef CvDImage::tSmartPtr CvDImagePtr
 Smart pointer to density image.
typedef CVector2< double > CVector2d
typedef CVector2< float > CVector2f
typedef CVector2< intCVector2i
 Vector in 2D space.
typedef CVector3< double > CVector3d
typedef CVector3< tCoordinateCVector3D
 Favoured representation of a vector in 3D space.
typedef CVector3< float > CVector3f
typedef CVector3< intCVector3i
 Vector in 3D space.
typedef CvImage< tFloatPixelCvFImage
 Float image.
typedef CvFImage::tSmartPtr CvFImagePtr
 Smart pointer to float image.
typedef CvImage< tPixel16CvImage16
 Grayscale image, 16-bits per pixel.
typedef CvImage16::tSmartPtr CvImage16Ptr
 Smart pointer to grayscale image, 16-bit per pixel.
typedef CvImage< tPixel32CvImage32
 Grayscale image, 32-bits per pixel.
typedef CvImage32::tSmartPtr CvImage32Ptr
 Smart pointer to grayscale image, 32-bit per pixel.
typedef CvImage< tPixel8CvImage8
 Grayscale image, 8-bits per pixel.
typedef CvImage8::tSmartPtr CvImage8Ptr
 Smart pointer to grayscale image, 8-bit per pixel.
typedef CSize3i CVolSize
 Favoured representation of a volume size.
typedef CVolume< tPixel16CVolume16
 Grayscale volume, 16-bits per pixel.
typedef CFullHistogram< CVolume16CVolume16Histogram
 Histogram of the grayscale volume, 16-bits per pixel.
typedef CVolume16::tSmartPtr CVolume16Ptr
 Grayscale volume, 16-bit per pixel.
typedef CVolume< tPixel32CVolume32
 Grayscale volume, 32-bits per pixel.
typedef CVolume32::tSmartPtr CVolume32Ptr
 Grayscale volume, 32-bit per pixel.
typedef CVolume< tPixel8CVolume8
 Grayscale volume, 8-bits per pixel.
typedef CFullHistogram< CVolume8CVolume8Histogram
 Histogram of the grayscale volume, 8-bits per pixel.
typedef CVolume8::tSmartPtr CVolume8Ptr
 Grayscale volume, 8-bit per pixel.
typedef CvImage< tRGBPixelCvRGBImage
 Color RGB image.
typedef CvRGBImage::tSmartPtr CvRGBImagePtr
 Smart pointer to color RGB image.
typedef mds::math::CComplex
< float > 
tComplexPixel
 Complex pixel definition.
typedef float tConvKernelData
 Type of convolution kernel data element.
typedef double tCoordinate
 Coordinate of a point in 2D (image) and 3D (volume) space.
typedef mds::sys::tInt16 tDensityPixel
 Density pixel used by medical images (slices).
typedef float tFloatPixel
 Pixel used for float images.
typedef SMyDestinationMgr * tMyDestinationPtr
typedef SMyErrorMgr * tMyErrorPtr
typedef SMySourceMgr * tMySourcePtr
typedef mds::sys::tUInt16 tPixel16
 Pixel used for grayscale 16-bit images.
typedef mds::sys::tUInt32 tPixel32
 Pixel used for grayscale 32-bit images.
typedef mds::sys::tUInt8 tPixel8
 Pixel used for grayscale 8-bit images.
typedef CRGBPixel tRGBPixel
 RGB pixel of a color image.

Enumerations

enum  EPlane { PLANE_NON = -1, PLANE_XY = 0, PLANE_XZ = 1, PLANE_YZ = 2 }
 Slice orientation. More...

Functions

template<class I >
bool abs (const CImageBase< CComplexImage > &SrcImage, CImageBase< I > &DstImage)
 Returns absolute value (magnitude) of a complex image.
template<class I >
bool arg (const CImageBase< CComplexImage > &SrcImage, CImageBase< I > &DstImage)
 Returns argument of a complex image.
const CColor C_BLACK (0x00, 0x00, 0x00, 0xFF)
 Several basic colors.
const CColor C_BLUE (0x00, 0x00, 0xFF, 0xFF)
const CColor C_CYAN (0x00, 0xFF, 0xFF, 0xFF)
const CColor C_GRAY (0x80, 0x80, 0x80, 0xFF)
const CColor C_GREEN (0x00, 0xFF, 0x00, 0xFF)
const CColor C_MAGENTA (0xFF, 0x00, 0xFF, 0xFF)
const CColor C_RED (0xFF, 0x00, 0x00, 0xFF)
const CColor C_WHITE (0xFF, 0xFF, 0xFF, 0xFF)
const CColor C_YELLOW (0xFF, 0xFF, 0x00, 0xFF)
template<class I1 , class I2 >
bool convert (const CImageBase< I1 > &SrcImage, CImageBase< I2 > &DstImage)
 Converts source image of one type to destination image of another type.
template<typename R , class I >
convolve (const CImageBase< I > &Image, tSize x, tSize y, const CKernel2D &Kernel)
 Convolves image with a given 2D convolution kernel.
template<typename R , class V >
convolve (const CVolumeBase< V > &Volume, tSize x, tSize y, tSize z, const CKernel3D &Kernel)
 Convolves the volume with a given 3D convolution kernel.
template<typename R , class I >
convolve (const CImageBase< I > &Image, const CPoint3D &Point, const CKernel2D &Kernel)
 Convolves the image with a given 2D convolution kernel.
template<typename R , class I >
convolveX (const CImageBase< I > &Image, tSize x, tSize y, const CKernel1D &Kernel)
 Convolves the image in the x-dimension with a given 1D kernel.
template<typename R , class I >
convolveX (const CImageBase< I > &Image, const CPoint3D &Point, const CKernel1D &Kernel)
 Convolves the image in the x-dimension with a given 1D kernel.
template<typename R , class V >
convolveX (const CVolumeBase< V > &Volume, tSize x, tSize y, tSize z, const CKernel1D &Kernel)
 Convolves the volume in the x-dimension with a given 1D kernel.
template<typename R , class V >
convolveXY (const CVolumeBase< V > &Volume, tSize x, tSize y, tSize z, const CKernel2D &Kernel)
 Convolves the volume with a given 2D convolution kernel.
template<typename R , class V >
convolveXZ (const CVolumeBase< V > &Volume, tSize x, tSize y, tSize z, const CKernel2D &Kernel)
 Convolves the volume with a given 2D convolution kernel.
template<typename R , class I >
convolveY (const CImageBase< I > &Image, tSize x, tSize y, const CKernel1D &Kernel)
 Convolves the image in the y-dimension with a given 1D kernel.
template<typename R , class I >
convolveY (const CImageBase< I > &Image, const CPoint3D &Point, const CKernel1D &Kernel)
 Convolves the image in the y-dimension with a given 1D kernel.
template<typename R , class V >
convolveY (const CVolumeBase< V > &Volume, tSize x, tSize y, tSize z, const CKernel1D &Kernel)
 Convolves the volume in the y-dimension with a given 1D kernel.
template<typename R , class V >
convolveYZ (const CVolumeBase< V > &Volume, tSize x, tSize y, tSize z, const CKernel2D &Kernel)
 Convolves the volume with a given 2D convolution kernel.
template<typename R , class V >
convolveZ (const CVolumeBase< V > &Volume, tSize x, tSize y, tSize z, const CKernel1D &Kernel)
 Convolves the volume in the z-dimension with a given 1D kernel.
 emptyOutputBuffer (j_compress_ptr pInfo)
template<class I >
bool fft (const CImageBase< I > &SrcImage, CComplexImage &DstImage)
 Computes unnormalized two-dimensional discrete Fourier transform (DFT) of a given source image.
template<class I >
void fftShift (CImageBase< I > &Image)
 Shift zero-frequency component to center of spectrum.
 fillInputBuffer (j_decompress_ptr pInfo)
template<class I1 , class I2 , class F >
bool findConnectedComponents (const CImageBase< I1 > &SrcImage, CImageBase< I2 > &LabelImage, F CompareFunc=F())
 Implementation of the well known Connected Components Labeling algorithm.
template<class H >
bool findSingleThreshold (const CHistogramBase< H > &Histogram, typename H::tItem &Threshold)
 Calculates an "optimal" threshold using the mode-based method which analyzes histogram peaks and valleys.
template<class H >
bool findSingleThresholdOtsu (const CHistogramBase< H > &Histogram, typename H::tItem &Threshold)
 Finds "optimal" thresholds using the Otsu's algorithm.
template<class H >
bool findThresholdsIterative (const CHistogramBase< H > &Histogram, int NumOfThresholds, CMultiThresholding< typename H::tItem > &Thresholds)
 Finds "optimal" thresholds using the iterative method.
template<typename R , class I >
getMax (const CImageBase< I > &Image)
 Maximum pixel in the image.
template<typename R , class V >
getMax (const CVolumeBase< V > &Volume)
 Maximum voxel in the volume.
template<typename R , class I >
getMean (const CImageBase< I > &Image)
 Mean of pixel value.
template<typename R , class V >
getMean (const CVolumeBase< V > &Volume)
 Mean of voxel value.
template<typename R , class I1 , class I2 >
getMeanSquareError (const CImageBase< I1 > &Image1, const CImageBase< I2 > &Image2)
 Mean square error between pixels of two images.
template<typename R , class V1 , class V2 >
getMeanSquareError (const CVolumeBase< V1 > &Volume1, const CVolumeBase< V2 > &Volume2)
 Mean square error between voxels of two volumes.
template<typename R , class I >
getMin (const CImageBase< I > &Image)
 Minimum pixel value in the image.
template<typename R , class V >
getMin (const CVolumeBase< V > &Volume)
 Minimum voxel value in the volume.
template<typename R , class I1 , class I2 >
getProduct (const CImageBase< I1 > &Image1, const CImageBase< I2 > &Image2)
 Inner product of two images.
template<typename R , class V1 , class V2 >
getProduct (const CVolumeBase< V1 > &Volume1, const CVolumeBase< V2 > &Volume2)
 Inner product of two volumes.
template<typename R , class I >
getSum (const CImageBase< I > &Image)
 Sum of pixels in the image.
template<typename R , class V >
getSum (const CVolumeBase< V > &Volume)
 Sum of voxels in the volume.
template<typename R , class I >
getSumOfSquares (const CImageBase< I > &Image)
 Sum of squares of pixels in the image.
template<typename R , class V >
getSumOfSquares (const CVolumeBase< V > &Volume)
 Sum of squares of voxels in the volume.
template<typename R , class I >
getVariance (const CImageBase< I > &Image)
 Variance of image pixels.
template<typename R , class V >
getVariance (const CVolumeBase< V > &Volume)
 Variance of volume voxels.
template<class I >
bool histogramEqualization (CImageBase< I > &Image)
 Histogram equalization.
template<class V >
bool histogramEqualization (CVolumeBase< V > &Volume)
 Histogram equalization.
template<class I >
bool ifft (const CImageBase< I > &SrcImage, CComplexImage &DstImage)
 Computes inverse two-dimensional discrete Fourier transform (inverse DFT) of a given source image.
template<class I >
bool imag (const CImageBase< CComplexImage > &SrcImage, CImageBase< I > &DstImage)
 Returns imaginary part of a complex image.
 initDestination (j_compress_ptr pInfo)
 initSource (j_decompress_ptr pInfo)
const CKernel1D K1D_DERIVATIVE (K1D_DERIVATIVE_DATA, 5)
bool loadColorJPEG (CRGBImage &Image, mds::mod::CChannel &Channel)
 Reads full color JPEG image from a given input channel.
bool loadColorPNG (CRGBImage &Image, mds::mod::CChannel &Channel)
 Reads full color PNG image from a given input channel.
bool loadGrayJPEG (CImage8 &Image, mds::mod::CChannel &Channel)
 Reads grayscale JPEG image from a given input channel.
bool loadGrayPNG (CImage16 &Image, mds::mod::CChannel &Channel)
 Reads grayscale PNG image from a given input channel.
template<class I >
bool loadJPEG (CImageBase< I > &Image, mds::mod::CChannel &Channel)
 Reads JPEG image from a given input channel.
template<>
bool loadJPEG (CImageBase< CImage8 > &Image, mds::mod::CChannel &Channel)
template<class I >
bool loadPNG (CImageBase< I > &Image, mds::mod::CChannel &Channel)
 Reads PNG image from a given input channel.
template<>
bool loadPNG (CImageBase< CImage16 > &Image, mds::mod::CChannel &Channel)
template<class I >
void log (CImageBase< I > &Image)
 Logarithmic operator that converts a given image to the logarithmic space.
 MDS_SPECIALIZE_ENTITY_COMPRESSION (CvImage< tDensityPixel >, mds::mod::CC_DENSITY)
template<class V >
bool multiIterativeThresholding (CVolumeBase< V > &Volume, int NumOfThresholds)
 Iterative histogram thresholding.
template<class I >
bool multiIterativeThresholding (CImageBase< I > &Image, int NumOfThresholds)
 Iterative histogram thresholding.
 myErrorExit (j_common_ptr pInfo)
CRGBPixel operator* (const CRGBPixel &l, double Scalar)
CRGBPixel operator* (double Scalar, const CRGBPixel &r)
CRGBPixel operator+ (const CRGBPixel &l, const CRGBPixel &r)
CRGBPixel operator- (const CRGBPixel &l, const CRGBPixel &r)
CRGBPixel operator- (const CRGBPixel &x)
template<class I >
bool real (const CImageBase< CComplexImage > &SrcImage, CImageBase< I > &DstImage)
 Returns real part of a complex image.
bool saveColorJPEG (const CRGBImage &Image, mds::mod::CChannel &Channel, int iQuality=128)
 Writes full color JPEG image to a given output channel.
bool saveColorPNG (const CRGBImage &Image, mds::mod::CChannel &Channel)
 Writes full color PNG image to a given output channel.
bool saveGrayJPEG (const CImage8 &Image, mds::mod::CChannel &Channel, int iQuality=128)
 Writes grayscale JPEG image to a given output channel.
bool saveGrayPNG (const CImage16 &Image, mds::mod::CChannel &Channel)
 Writes grayscale PNG image to a given output channel.
template<class I >
bool saveJPEG (const CImageBase< I > &Image, mds::mod::CChannel &Channel, int iQuality=128)
 Writes JPEG image to a given output channel.
template<>
bool saveJPEG (const CImageBase< CImage8 > &Image, mds::mod::CChannel &Channel, int iQuality)
template<class I >
bool savePNG (const CImageBase< I > &Image, mds::mod::CChannel &Channel)
 Writes PNG image to a given output channel.
template<>
bool savePNG (const CImageBase< CImage16 > &Image, mds::mod::CChannel &Channel)
template<class V >
bool singleOtsuThresholding (CVolumeBase< V > &Volume)
 Otsu's histogram thresholding algorithm.
template<class I >
bool singleOtsuThresholding (CImageBase< I > &Image)
 Otsu's histogram thresholding algorithm.
template<class I >
bool singleThresholding (CImageBase< I > &Image)
 Simple mode-based histogram thresholding choosing an optimal threshold with respect to histogram peaks and valleys.
template<class V >
bool singleThresholding (CVolumeBase< V > &Volume)
 Simple mode-based histogram thresholding choosing an optimal threshold with respect to histogram peaks and valleys.
 skipInputData (j_decompress_ptr pInfo, long int liNumBytes)
 term_source (j_decompress_ptr)
 termDestination (j_compress_ptr pInfo)
void userFlushData (png_structp)
void userReadData (png_structp pPNGStruct, png_bytep pData, png_size_t Length)
void userWriteData (png_structp pPNGStruct, png_bytep pData, png_size_t Length)

Variables

const unsigned int B_WEIGHT = 7209
const size_t BUFFER_SIZE = 4096
 I/O buffer size.
const double FILE_GAMMA = 0.45455
const unsigned int G_WEIGHT = 38666
const CKernel1D K1D_DERIVATIVE
 Convolution kernel that could be used to compute derivatives.
float K1D_DERIVATIVE_DATA []
const unsigned int R_WEIGHT = 19660
 Pixel conversion (RGB -> 0..65535).
const double SCREEN_GAMMA = 2.2
 Default gamma correction.

Typedef Documentation

Complex image.

typedef CComplexImage::tSmartPtr mds::img::CComplexImagePtr

Smart pointer to complex image.

typedef CArray<double> mds::img::CDArray

Array of doubles.

typedef CDArray::tSmartPtr mds::img::CDArrayPtr

Pointer to a vector of doubles.

typedef CDensityVolume::tSmartPtr mds::img::CDensityVolumePtr
typedef CDicomSlice::tSmartPtr mds::img::CDicomSlicePtr

Density image.

Histogram of the density image.

typedef CDImage::tSmartPtr mds::img::CDImagePtr

Smart pointer to density image.

Pyramid of the density image.

typedef CDImagePyramid::tSmartPtr mds::img::CDImagePyramidPtr

Pyramid of the density image.

Density volume.

Histogram of the density volume.

typedef CDVolume::tSmartPtr mds::img::CDVolumePtr

Density volume.

typedef CArray<float> mds::img::CFArray

Array of float numbers.

typedef CFArray::tSmartPtr mds::img::CFArrayPtr

Pointer to a vector of float numbers.

Float image.

Histogram of the float image.

typedef CFImage::tSmartPtr mds::img::CFImagePtr

Smart pointer to float image.

Pyramid of the float image.

typedef CFImagePyramid::tSmartPtr mds::img::CFImagePyramidPtr

Pyramid of the float image.

Float volume.

Histogram of the float volume.

typedef CFVolume::tSmartPtr mds::img::CFVolumePtr

Float volume.

Array of int numbers.

typedef CIArray::tSmartPtr mds::img::CIArrayPtr

Pointer to a vector of int numbers.

Grayscale image, 16-bits per pixel.

Histogram of the grayscale image, 16-bits per pixel.

typedef CImage16::tSmartPtr mds::img::CImage16Ptr

Smart pointer to grayscale image, 16-bit per pixel.

Pyramid of the grayscale image, 16-bits per pixel.

typedef CImage16Pyramid::tSmartPtr mds::img::CImage16PyramidPtr

Pyramid of the grayscale image, 16-bits per pixel.

Grayscale image, 32-bits per pixel.

Histogram of the grayscale image, 32-bits per pixel.

typedef CImage32::tSmartPtr mds::img::CImage32Ptr

Smart pointer to grayscale image, 32-bit per pixel.

Grayscale image, 8-bits per pixel.

Histogram of the grayscale image, 8-bits per pixel.

typedef CImage8::tSmartPtr mds::img::CImage8Ptr

Smart pointer to grayscale image, 8-bit per pixel.

Pyramid of the grayscale image, 8-bits per pixel.

typedef CImage8Pyramid::tSmartPtr mds::img::CImage8PyramidPtr

Pyramid of the grayscale image, 8-bits per pixel.

Favoured representation of an image size.

typedef CPoint2<double> mds::img::CPoint2d
typedef CPoint2<float> mds::img::CPoint2f

Point in 2D space.

typedef CPoint3<double> mds::img::CPoint3d

Favoured representation of a point in 3D space.

typedef CPoint3<float> mds::img::CPoint3f

Point in 3D space.

Color RGB image.

typedef CRGBImage::tSmartPtr mds::img::CRGBImagePtr

Smart pointer to color RGB image.

Color RGB volume.

typedef CRGBVolume::tSmartPtr mds::img::CRGBVolumePtr

Color RGB volume.

typedef CSize2<double> mds::img::CSize2d
typedef CSize2<float> mds::img::CSize2f

Predefined 2D size types.

typedef CSize3<double> mds::img::CSize3d
typedef CSize3<float> mds::img::CSize3f

Predefined 3D size types.

typedef CSlice::tSmartPtr mds::img::CSlicePtr

Complex image.

typedef CvComplexImage::tSmartPtr mds::img::CvComplexImagePtr

Smart pointer to complex image.

Density image.

typedef CvDImage::tSmartPtr mds::img::CvDImagePtr

Smart pointer to density image.

typedef CVector2<double> mds::img::CVector2d
typedef CVector2<float> mds::img::CVector2f

Vector in 2D space.

typedef CVector3<double> mds::img::CVector3d

Favoured representation of a vector in 3D space.

typedef CVector3<float> mds::img::CVector3f

Vector in 3D space.

Float image.

typedef CvFImage::tSmartPtr mds::img::CvFImagePtr

Smart pointer to float image.

Grayscale image, 16-bits per pixel.

typedef CvImage16::tSmartPtr mds::img::CvImage16Ptr

Smart pointer to grayscale image, 16-bit per pixel.

Grayscale image, 32-bits per pixel.

typedef CvImage32::tSmartPtr mds::img::CvImage32Ptr

Smart pointer to grayscale image, 32-bit per pixel.

Grayscale image, 8-bits per pixel.

typedef CvImage8::tSmartPtr mds::img::CvImage8Ptr

Smart pointer to grayscale image, 8-bit per pixel.

Favoured representation of a volume size.

Grayscale volume, 16-bits per pixel.

Histogram of the grayscale volume, 16-bits per pixel.

typedef CVolume16::tSmartPtr mds::img::CVolume16Ptr

Grayscale volume, 16-bit per pixel.

Grayscale volume, 32-bits per pixel.

typedef CVolume32::tSmartPtr mds::img::CVolume32Ptr

Grayscale volume, 32-bit per pixel.

Grayscale volume, 8-bits per pixel.

Histogram of the grayscale volume, 8-bits per pixel.

typedef CVolume8::tSmartPtr mds::img::CVolume8Ptr

Grayscale volume, 8-bit per pixel.

Color RGB image.

typedef CvRGBImage::tSmartPtr mds::img::CvRGBImagePtr

Smart pointer to color RGB image.

Complex pixel definition.

Type of convolution kernel data element.

typedef double mds::img::tCoordinate

Coordinate of a point in 2D (image) and 3D (volume) space.

typedef mds::sys::tInt16 mds::img::tDensityPixel

Density pixel used by medical images (slices).

typedef float mds::img::tFloatPixel

Pixel used for float images.

typedef SMyDestinationMgr* mds::img::tMyDestinationPtr
typedef SMyErrorMgr* mds::img::tMyErrorPtr
typedef SMySourceMgr* mds::img::tMySourcePtr
typedef mds::sys::tUInt16 mds::img::tPixel16

Pixel used for grayscale 16-bit images.

typedef mds::sys::tUInt32 mds::img::tPixel32

Pixel used for grayscale 32-bit images.

typedef mds::sys::tUInt8 mds::img::tPixel8

Pixel used for grayscale 8-bit images.

RGB pixel of a color image.


Enumeration Type Documentation

Slice orientation.

Enumerator:
PLANE_NON 
PLANE_XY 
PLANE_XZ 
PLANE_YZ 

Function Documentation

template<class I >
bool mds::img::abs ( const CImageBase< CComplexImage > &  SrcImage,
CImageBase< I > &  DstImage 
)

Returns absolute value (magnitude) of a complex image.

  • Changes size of the destination image if required.
  • Returns false on failure.
template<class I >
bool mds::img::arg ( const CImageBase< CComplexImage > &  SrcImage,
CImageBase< I > &  DstImage 
)

Returns argument of a complex image.

  • Changes size of the destination image if required.
  • Returns false on failure.
const CColor mds::img::C_BLACK ( 0x00  ,
0x00  ,
0x00  ,
0xFF   
)

Several basic colors.

const CColor mds::img::C_BLUE ( 0x00  ,
0x00  ,
0xFF  ,
0xFF   
)
const CColor mds::img::C_CYAN ( 0x00  ,
0xFF  ,
0xFF  ,
0xFF   
)
const CColor mds::img::C_GRAY ( 0x80  ,
0x80  ,
0x80  ,
0xFF   
)
const CColor mds::img::C_GREEN ( 0x00  ,
0xFF  ,
0x00  ,
0xFF   
)
const CColor mds::img::C_MAGENTA ( 0xFF  ,
0x00  ,
0xFF  ,
0xFF   
)
const CColor mds::img::C_RED ( 0xFF  ,
0x00  ,
0x00  ,
0xFF   
)
const CColor mds::img::C_WHITE ( 0xFF  ,
0xFF  ,
0xFF  ,
0xFF   
)
const CColor mds::img::C_YELLOW ( 0xFF  ,
0xFF  ,
0x00  ,
0xFF   
)
template<class I1 , class I2 >
bool mds::img::convert ( const CImageBase< I1 > &  SrcImage,
CImageBase< I2 > &  DstImage 
)

Converts source image of one type to destination image of another type.

  • Changes size of the destination image if required.
  • Returns false on failure.
template<typename R , class I >
R mds::img::convolve ( const CImageBase< I > &  Image,
tSize  x,
tSize  y,
const CKernel2D &  Kernel 
)

Convolves image with a given 2D convolution kernel.

template<typename R , class V >
R mds::img::convolve ( const CVolumeBase< V > &  Volume,
tSize  x,
tSize  y,
tSize  z,
const CKernel3D &  Kernel 
)

Convolves the volume with a given 3D convolution kernel.

template<typename R , class I >
R mds::img::convolve ( const CImageBase< I > &  Image,
const CPoint3D &  Point,
const CKernel2D &  Kernel 
)

Convolves the image with a given 2D convolution kernel.

  • Using subpixel representation.
template<typename R , class I >
R mds::img::convolveX ( const CImageBase< I > &  Image,
tSize  x,
tSize  y,
const CKernel1D &  Kernel 
)

Convolves the image in the x-dimension with a given 1D kernel.

template<typename R , class I >
R mds::img::convolveX ( const CImageBase< I > &  Image,
const CPoint3D &  Point,
const CKernel1D &  Kernel 
)

Convolves the image in the x-dimension with a given 1D kernel.

  • Using subpixel representation.
template<typename R , class V >
R mds::img::convolveX ( const CVolumeBase< V > &  Volume,
tSize  x,
tSize  y,
tSize  z,
const CKernel1D &  Kernel 
)

Convolves the volume in the x-dimension with a given 1D kernel.

template<typename R , class V >
R mds::img::convolveXY ( const CVolumeBase< V > &  Volume,
tSize  x,
tSize  y,
tSize  z,
const CKernel2D &  Kernel 
)

Convolves the volume with a given 2D convolution kernel.

template<typename R , class V >
R mds::img::convolveXZ ( const CVolumeBase< V > &  Volume,
tSize  x,
tSize  y,
tSize  z,
const CKernel2D &  Kernel 
)

Convolves the volume with a given 2D convolution kernel.

template<typename R , class I >
R mds::img::convolveY ( const CImageBase< I > &  Image,
tSize  x,
tSize  y,
const CKernel1D &  Kernel 
)

Convolves the image in the y-dimension with a given 1D kernel.

template<typename R , class I >
R mds::img::convolveY ( const CImageBase< I > &  Image,
const CPoint3D &  Point,
const CKernel1D &  Kernel 
)

Convolves the image in the y-dimension with a given 1D kernel.

  • Using subpixel representation.
template<typename R , class V >
R mds::img::convolveY ( const CVolumeBase< V > &  Volume,
tSize  x,
tSize  y,
tSize  z,
const CKernel1D &  Kernel 
)

Convolves the volume in the y-dimension with a given 1D kernel.

template<typename R , class V >
R mds::img::convolveYZ ( const CVolumeBase< V > &  Volume,
tSize  x,
tSize  y,
tSize  z,
const CKernel2D &  Kernel 
)

Convolves the volume with a given 2D convolution kernel.

template<typename R , class V >
R mds::img::convolveZ ( const CVolumeBase< V > &  Volume,
tSize  x,
tSize  y,
tSize  z,
const CKernel1D &  Kernel 
)

Convolves the volume in the z-dimension with a given 1D kernel.

mds::img::emptyOutputBuffer ( j_compress_ptr  pInfo)
template<class I >
bool mds::img::fft ( const CImageBase< I > &  SrcImage,
CComplexImage &  DstImage 
)

Computes unnormalized two-dimensional discrete Fourier transform (DFT) of a given source image.

  • Returns false on failure.
template<class I >
void mds::img::fftShift ( CImageBase< I > &  Image)

Shift zero-frequency component to center of spectrum.

Swaps the first and third quadrants and the second and fourth quadrants.

  • The function is similar to the MATLAB fftshift().
mds::img::fillInputBuffer ( j_decompress_ptr  pInfo)
template<class I1 , class I2 , class F >
bool mds::img::findConnectedComponents ( const CImageBase< I1 > &  SrcImage,
CImageBase< I2 > &  LabelImage,
CompareFunc = F() 
)

Implementation of the well known Connected Components Labeling algorithm.

  • It produces a labeled image.
  • Function object F is used to evaluate similarity of two neighbouring image pixels. It must return true if both pixels fall to the same region.
template<class H >
bool mds::img::findSingleThreshold ( const CHistogramBase< H > &  Histogram,
typename H::tItem &  Threshold 
)

Calculates an "optimal" threshold using the mode-based method which analyzes histogram peaks and valleys.

  • This method evaluates "peakness" for every possible pair of local histogram maxima and for all minimum values lying between them.
template<class H >
bool mds::img::findSingleThresholdOtsu ( const CHistogramBase< H > &  Histogram,
typename H::tItem &  Threshold 
)

Finds "optimal" thresholds using the Otsu's algorithm.

template<class H >
bool mds::img::findThresholdsIterative ( const CHistogramBase< H > &  Histogram,
int  NumOfThresholds,
CMultiThresholding< typename H::tItem > &  Thresholds 
)

Finds "optimal" thresholds using the iterative method.

template<typename R , class I >
R mds::img::getMax ( const CImageBase< I > &  Image)

Maximum pixel in the image.

template<typename R , class V >
R mds::img::getMax ( const CVolumeBase< V > &  Volume)

Maximum voxel in the volume.

template<typename R , class I >
R mds::img::getMean ( const CImageBase< I > &  Image)

Mean of pixel value.

template<typename R , class V >
R mds::img::getMean ( const CVolumeBase< V > &  Volume)

Mean of voxel value.

template<typename R , class I1 , class I2 >
R mds::img::getMeanSquareError ( const CImageBase< I1 > &  Image1,
const CImageBase< I2 > &  Image2 
)

Mean square error between pixels of two images.

template<typename R , class V1 , class V2 >
R mds::img::getMeanSquareError ( const CVolumeBase< V1 > &  Volume1,
const CVolumeBase< V2 > &  Volume2 
)

Mean square error between voxels of two volumes.

template<typename R , class I >
R mds::img::getMin ( const CImageBase< I > &  Image)

Minimum pixel value in the image.

template<typename R , class V >
R mds::img::getMin ( const CVolumeBase< V > &  Volume)

Minimum voxel value in the volume.

template<typename R , class I1 , class I2 >
R mds::img::getProduct ( const CImageBase< I1 > &  Image1,
const CImageBase< I2 > &  Image2 
)

Inner product of two images.

template<typename R , class V1 , class V2 >
R mds::img::getProduct ( const CVolumeBase< V1 > &  Volume1,
const CVolumeBase< V2 > &  Volume2 
)

Inner product of two volumes.

template<typename R , class I >
R mds::img::getSum ( const CImageBase< I > &  Image)

Sum of pixels in the image.

template<typename R , class V >
R mds::img::getSum ( const CVolumeBase< V > &  Volume)

Sum of voxels in the volume.

template<typename R , class I >
R mds::img::getSumOfSquares ( const CImageBase< I > &  Image)

Sum of squares of pixels in the image.

template<typename R , class V >
R mds::img::getSumOfSquares ( const CVolumeBase< V > &  Volume)

Sum of squares of voxels in the volume.

template<typename R , class I >
R mds::img::getVariance ( const CImageBase< I > &  Image)

Variance of image pixels.

  • Standard deviation is square root of the returned variance!
template<typename R , class V >
R mds::img::getVariance ( const CVolumeBase< V > &  Volume)

Variance of volume voxels.

  • Standard deviation is square root of the returned variance!
template<class I >
bool mds::img::histogramEqualization ( CImageBase< I > &  Image)

Histogram equalization.

template<class V >
bool mds::img::histogramEqualization ( CVolumeBase< V > &  Volume)

Histogram equalization.

template<class I >
bool mds::img::ifft ( const CImageBase< I > &  SrcImage,
CComplexImage &  DstImage 
)

Computes inverse two-dimensional discrete Fourier transform (inverse DFT) of a given source image.

  • Returns false on failure.
template<class I >
bool mds::img::imag ( const CImageBase< CComplexImage > &  SrcImage,
CImageBase< I > &  DstImage 
)

Returns imaginary part of a complex image.

  • Changes size of the destination image if required.
  • Returns false on failure.
mds::img::initDestination ( j_compress_ptr  pInfo)
mds::img::initSource ( j_decompress_ptr  pInfo)
const CKernel1D mds::img::K1D_DERIVATIVE ( K1D_DERIVATIVE_DATA  ,
 
)
bool mds::img::loadColorJPEG ( CRGBImage &  Image,
mds::mod::CChannel Channel 
)

Reads full color JPEG image from a given input channel.

  • Returns false on failure.
bool mds::img::loadColorPNG ( CRGBImage &  Image,
mds::mod::CChannel Channel 
)

Reads full color PNG image from a given input channel.

  • Returns false on failure.
bool mds::img::loadGrayJPEG ( CImage8 &  Image,
mds::mod::CChannel Channel 
)

Reads grayscale JPEG image from a given input channel.

  • Returns false on failure.
bool mds::img::loadGrayPNG ( CImage16 &  Image,
mds::mod::CChannel Channel 
)

Reads grayscale PNG image from a given input channel.

  • Returns false on failure.
template<class I >
bool mds::img::loadJPEG ( CImageBase< I > &  Image,
mds::mod::CChannel Channel 
)

Reads JPEG image from a given input channel.

  • Returns false on failure.
template<>
bool mds::img::loadJPEG ( CImageBase< CImage8 > &  Image,
mds::mod::CChannel Channel 
)
template<class I >
bool mds::img::loadPNG ( CImageBase< I > &  Image,
mds::mod::CChannel Channel 
)

Reads PNG image from a given input channel.

  • Returns false on failure.
template<>
bool mds::img::loadPNG ( CImageBase< CImage16 > &  Image,
mds::mod::CChannel Channel 
)
template<class I >
void mds::img::log ( CImageBase< I > &  Image)

Logarithmic operator that converts a given image to the logarithmic space.

  • Conversion is done in-place, the input image is modified.
template<class V >
bool mds::img::multiIterativeThresholding ( CVolumeBase< V > &  Volume,
int  NumOfThresholds 
)

Iterative histogram thresholding.

  • Produces labeled volume data.
template<class I >
bool mds::img::multiIterativeThresholding ( CImageBase< I > &  Image,
int  NumOfThresholds 
)

Iterative histogram thresholding.

  • Produces a labeled image.
mds::img::myErrorExit ( j_common_ptr  pInfo)
CRGBPixel mds::img::operator* ( const CRGBPixel &  l,
double  Scalar 
)
CRGBPixel mds::img::operator* ( double  Scalar,
const CRGBPixel &  r 
)
CRGBPixel mds::img::operator+ ( const CRGBPixel &  l,
const CRGBPixel &  r 
)
CRGBPixel mds::img::operator- ( const CRGBPixel &  l,
const CRGBPixel &  r 
)
CRGBPixel mds::img::operator- ( const CRGBPixel &  x)
template<class I >
bool mds::img::real ( const CImageBase< CComplexImage > &  SrcImage,
CImageBase< I > &  DstImage 
)

Returns real part of a complex image.

  • Changes size of the destination image if required.
  • Returns false on failure.
bool mds::img::saveColorJPEG ( const CRGBImage &  Image,
mds::mod::CChannel Channel,
int  iQuality = 128 
)

Writes full color JPEG image to a given output channel.

  • Quality of JPEG image is value in the range <0..255>.
  • Returns false on failure.
bool mds::img::saveColorPNG ( const CRGBImage &  Image,
mds::mod::CChannel Channel 
)

Writes full color PNG image to a given output channel.

  • Returns false on failure.
bool mds::img::saveGrayJPEG ( const CImage8 &  Image,
mds::mod::CChannel Channel,
int  iQuality = 128 
)

Writes grayscale JPEG image to a given output channel.

  • Quality of JPEG image is value in the range <0..255>.
  • Returns false on failure.
bool mds::img::saveGrayPNG ( const CImage16 &  Image,
mds::mod::CChannel Channel 
)

Writes grayscale PNG image to a given output channel.

  • Returns false on failure.
template<class I >
bool mds::img::saveJPEG ( const CImageBase< I > &  Image,
mds::mod::CChannel Channel,
int  iQuality = 128 
)

Writes JPEG image to a given output channel.

  • Quality of JPEG image is value in the range <0..255>.
  • Returns false on failure.
template<>
bool mds::img::saveJPEG ( const CImageBase< CImage8 > &  Image,
mds::mod::CChannel Channel,
int  iQuality 
)
template<class I >
bool mds::img::savePNG ( const CImageBase< I > &  Image,
mds::mod::CChannel Channel 
)

Writes PNG image to a given output channel.

  • Returns false on failure.
template<>
bool mds::img::savePNG ( const CImageBase< CImage16 > &  Image,
mds::mod::CChannel Channel 
)
template<class V >
bool mds::img::singleOtsuThresholding ( CVolumeBase< V > &  Volume)

Otsu's histogram thresholding algorithm.

  • Produces binary volume data.
template<class I >
bool mds::img::singleOtsuThresholding ( CImageBase< I > &  Image)

Otsu's histogram thresholding algorithm.

  • Produces a binary image.
template<class I >
bool mds::img::singleThresholding ( CImageBase< I > &  Image)

Simple mode-based histogram thresholding choosing an optimal threshold with respect to histogram peaks and valleys.

  • Results in a binary image containing zeros and ones.
template<class V >
bool mds::img::singleThresholding ( CVolumeBase< V > &  Volume)

Simple mode-based histogram thresholding choosing an optimal threshold with respect to histogram peaks and valleys.

  • Results in binary volume data containing zeros and ones.
mds::img::skipInputData ( j_decompress_ptr  pInfo,
long int  liNumBytes 
)
mds::img::term_source ( j_decompress_ptr  )
mds::img::termDestination ( j_compress_ptr  pInfo)
void mds::img::userFlushData ( png_structp  )
void mds::img::userReadData ( png_structp  pPNGStruct,
png_bytep  pData,
png_size_t  Length 
)
void mds::img::userWriteData ( png_structp  pPNGStruct,
png_bytep  pData,
png_size_t  Length 
)

Variable Documentation

const unsigned int mds::img::B_WEIGHT = 7209
const size_t mds::img::BUFFER_SIZE = 4096

I/O buffer size.

const double mds::img::FILE_GAMMA = 0.45455
const unsigned int mds::img::G_WEIGHT = 38666

Convolution kernel that could be used to compute derivatives.

  • [-1/9, 8/9, 0, -8/9, 1/9]
    Convolution kernel that could be used to compute derivatives
  • [-1/12, 8/12, 0, -8/12, 1/12]
Initial value:
{
    -1.0f/9, 8.0f/9, 0.0f, -8.0f/9, 1.0f/9
}
const unsigned int mds::img::R_WEIGHT = 19660

Pixel conversion (RGB -> 0..65535).

const double mds::img::SCREEN_GAMMA = 2.2

Default gamma correction.