![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpImage.h>
Public Member Functions | |
| vpImage () | |
| vpImage (const vpImage< Type > &img) | |
| vpImage (vpImage< Type > &&img) | |
| vpImage (unsigned int height, unsigned int width) | |
| vpImage (unsigned int height, unsigned int width, Type value) | |
| vpImage (Type *const array, unsigned int height, unsigned int width, bool copyData=false) | |
| virtual | ~vpImage () |
Public Attributes | |
| Type * | bitmap |
| vpDisplay * | display |
Friends | |
| class | vpImageConvert |
Related Symbols | |
(Note that these are not member symbols.) | |
| template<> | |
| void | getMinMaxValue (double &min, double &max, bool onlyFiniteVal) const |
| template<> | |
| void | getMinMaxValue (float &min, float &max, bool onlyFiniteVal) const |
| template<> | |
| void | getMinMaxValue (vpRGBf &min, vpRGBf &max, bool onlyFiniteVal) const |
| template<> | |
| void | performLut (const unsigned char(&lut)[256], unsigned int nbThreads) |
| template<> | |
| void | performLut (const vpRGBa(&lut)[256], unsigned int nbThreads) |
Inherited functionalities from vpImage | |
| std::ostream & | operator<< (std::ostream &s, const vpImage< Type > &I) |
| std::ostream & | operator<< (std::ostream &s, const vpImage< unsigned char > &I) |
| std::ostream & | operator<< (std::ostream &s, const vpImage< char > &I) |
| std::ostream & | operator<< (std::ostream &s, const vpImage< float > &I) |
| std::ostream & | operator<< (std::ostream &s, const vpImage< double > &I) |
| void | swap (vpImage< Type > &first, vpImage< Type > &second) |
| void | destroy () |
| void | doubleSizeImage (vpImage< Type > &res) |
| unsigned int | getCols () const |
| unsigned int | getHeight () const |
| Type | getMaxValue (bool onlyFiniteVal=true) const |
| double | getMeanValue (const vpImage< bool > *p_mask=nullptr, unsigned int *nbValidPoints=nullptr) const |
| Type | getMinValue (bool onlyFiniteVal=true) const |
| void | getMinMaxValue (Type &min, Type &max, bool onlyFiniteVal=true) const |
| void | getMinMaxLoc (vpImagePoint *minLoc, vpImagePoint *maxLoc, Type *minVal=nullptr, Type *maxVal=nullptr) const |
| unsigned int | getNumberOfPixel () const |
| unsigned int | getRows () const |
| unsigned int | getSize () const |
| double | getStdev (const vpImage< bool > *p_mask=nullptr, unsigned int *nbValidPoints=nullptr) const |
| double | getStdev (const double &mean, const vpImage< bool > *p_mask=nullptr, unsigned int *nbValidPoints=nullptr) const |
| double | getSum (const vpImage< bool > *p_mask=nullptr, unsigned int *nbValidPoints=nullptr) const |
| Type | getValue (unsigned int i, unsigned int j) const |
| Type | getValue (double i, double j) const |
| Type | getValue (const vpImagePoint &ip) const |
| unsigned int | getWidth () const |
| void | halfSizeImage (vpImage< Type > &res) const |
| void | init (unsigned int height, unsigned int width) |
| void | init (unsigned int height, unsigned int width, Type value) |
| void | init (Type *const array, unsigned int height, unsigned int width, bool copyData=false) |
| void | insert (const vpImage< Type > &src, const vpImagePoint &topLeft) |
| Type * | operator[] (unsigned int i) |
| Type * | operator[] (int i) |
| const Type * | operator[] (unsigned int i) const |
| const Type * | operator[] (int i) const |
| Type | operator() (unsigned int i, unsigned int j) const |
| void | operator() (unsigned int i, unsigned int j, const Type &v) |
| Type | operator() (const vpImagePoint &ip) const |
| void | operator() (const vpImagePoint &ip, const Type &v) |
| vpImage< Type > | operator- (const vpImage< Type > &B) const |
| vpImage< Type > & | operator= (const vpImage< Type > &other) |
| vpImage< Type > & | operator= (vpImage< Type > &&other) |
| vpImage< Type > & | operator= (const Type &v) |
| bool | operator== (const vpImage< Type > &I) const |
| bool | operator!= (const vpImage< Type > &I) const |
| void | performLut (const Type(&lut)[256], unsigned int nbThreads=1) |
| void | quarterSizeImage (vpImage< Type > &res) const |
| void | resize (unsigned int h, unsigned int w) |
| void | resize (unsigned int h, unsigned int w, const Type &val) |
| void | sub (const vpImage< Type > &B, vpImage< Type > &C) const |
| void | sub (const vpImage< Type > &A, const vpImage< Type > &B, vpImage< Type > &C) const |
| void | subsample (unsigned int v_scale, unsigned int h_scale, vpImage< Type > &sampled) const |
Definition of the vpImage class member functions.
This is a template class, therefore the type of each element of the array is not a priori defined.
Each image is build using two structure (an array bitmap which size is [width*height]) and an array of pointer row (which size is [nrow]) the ith element in the row array row[i] is pointer toward the ith "line" of the image (ie, bitmap +i*width )
Such a structure allows a fast access to each element of the image. if i is the ith rows and j the jth columns the value of this pixel is given by I[i][j] (that is equivalent to row[i][j]).
The following example available in tutorial-image-manipulation.cpp shows how to create gray level and color images and how to access to the pixels.
To provide high-performance access there is no verification to ensure that 0
i < height and 0
j < width. Since the memory allocated in the bitmap array is continuous, that means that if (i, j) is outside the image you will manipulate a pixel that is not as expected. To highlight this remark, we provide hereafter an example where the considered pixel is outside the image:
| vpImage | ( | ) |
constructor
Definition at line 521 of file vpImage.h.
References bitmap, and display.
Referenced by doubleSizeImage(), getMeanValue(), getStdev(), getStdev(), getSum(), halfSizeImage(), insert(), operator!=(), operator-(), operator<<, operator<<, operator<<, operator<<, operator<<, operator=(), operator=(), operator=(), operator==(), quarterSizeImage(), sub(), sub(), subsample(), swap, vpImage(), and vpImage().
| vpImage | ( | unsigned int | height, |
| unsigned int | width ) |
| vpImage | ( | unsigned int | height, |
| unsigned int | width, | ||
| Type | value ) |
| vpImage | ( | Type *const | array, |
| unsigned int | height, | ||
| unsigned int | width, | ||
| bool | copyData = false ) |
| void vpImage< Type >::destroy | ( | ) |
Destructor : Memory de-allocation.
Definition at line 573 of file vpImage.h.
References bitmap.
Referenced by vpImageFilter::filter(), vpImageFilter::gaussianBlur(), vpTemplateTracker::initTracking(), and ~vpImage().
Returns a new image that's double size of the current image. Used (eg. in case of keypoints extraction, we might double size of the image in order to have more keypoints). The double size image is computed by nearest-neighbour interpolation:
| res | [out] : Image that is double size of the current image. |
The example below shows how to use this method:
See halfSizeImage(vpImage<Type> &) for an example of pyramid construction.
|
inline |
Get the number of columns in the image.
Definition at line 171 of file vpImage.h.
Referenced by vpCircleHoughTransform::computeCenterCandidates(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpMomentObject::fromImage(), vpMomentObject::fromImage(), and vpMeTracker::inMeMaskCandidates().
|
inline |
Get the image height.
Definition at line 181 of file vpImage.h.
Referenced by VISP_NAMESPACE_NAME::clahe(), VISP_NAMESPACE_NAME::clahe(), vpRBVisualOdometryUtils::computeIndicesObjectAndEnvironment(), vpImageCircle::computePixelsInMask(), vpPose::computePlanarObjectPoseFromRGBD(), vpPose::computePlanarObjectPoseFromRGBD(), vpColorHistogram::computeProbas(), vpColorHistogram::computeProbas(), VISP_NAMESPACE_NAME::connectedComponents(), vpColormap::convert(), vpColormap::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpKeyPoint::createImageMatching(), vpKeyPoint::createImageMatching(), vpKeyPoint::createImageMatching(), vpKeyPoint::createImageMatching(), vpImageConvert::depthToPointCloud(), vpImageConvert::depthToPointCloud(), vpImageMorphology::dilatation(), vpDisplayGTK::displayImageROI(), vpDisplayGTK::displayImageROI(), vpKeyPoint::displayMatching(), vpKeyPoint::displayMatching(), vpCircleHoughTransform::edgeDetection(), VISP_NAMESPACE_NAME::equalizeHistogram(), vpImageMorphology::erosion(), vpPlaneEstimation::estimatePlane(), vpRBSilhouetteCCDTracker::extractFeatures(), vpRBSilhouetteMeTracker::extractFeatures(), VISP_NAMESPACE_NAME::fillHoles(), vpCircleHoughTransform::filterEdgeMap(), VISP_NAMESPACE_NAME::findContours(), vpSimulatorAfma6::getCameraParameters(), vpSimulatorAfma6::getCameraParameters(), vpSimulatorViper850::getCameraParameters(), vpSimulatorViper850::getCameraParameters(), vpKinect::getDepthMap(), vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpSilhouettePointsExtractionSettings::getSilhouetteCandidates(), getStdev(), getSum(), vpImageTools::imageAdd(), vpImageTools::imageDifference(), vpImageTools::imageDifference(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageSubtract(), vpMbEdgeTracker::initPyramid(), insert(), vpKeyPoint::insertImageMatching(), vpKeyPoint::insertImageMatching(), vpImageTools::integralImage(), vpImageConvert::merge(), vpImageTools::normalizedCorrelation(), VISP_NAMESPACE_NAME::reconstruct(), vpImageTools::resize(), vpImageTools::resize(), vpImageTools::resize(), vpRBProbabilistic3DDriftDetector::score(), vpMeNurbs::seekExtremitiesCanny(), vpPanda3DRGBRenderer::setBackgroundImage(), vpImageConvert::split(), sub(), sub(), vpImageTools::templateMatching(), vpRBProbabilistic3DDriftDetector::update(), vpColorHistogramMask::updateMask(), vpDepthMask::updateMask(), vpImageTools::warpImage(), vpImageTools::warpLinear(), and vpKinect::warpRGBFrame().
|
inline |
Return the maximum value within the bitmap.
Return the maximum value within the float bitmap.
Return the maximum value within the double bitmap.
| onlyFiniteVal | : This parameter is ignored for non double or non float bitmap. If true, consider only finite values. |
Definition at line 349 of file vpImage_getters.h.
References bitmap, and vpException::fatalError.
| double vpImage< Type >::getMeanValue | ( | const vpImage< bool > * | p_mask = nullptr, |
| unsigned int * | nbValidPoints = nullptr ) const |
Return the mean value of the bitmap.
For vpRGBa and vpRGBf image types, the sum of image intensities is computed by (R+G+B).
| [in] | p_mask | Optional parameter. If not set to nullptr, a boolean mask that indicates which points must be considered, if set to true. |
| [out] | nbValidPoints | Optional parameter. When different from nullptr contains the number of points that are valid according to the boolean mask or image size when p_mask is set to nullptr. |
Definition at line 770 of file vpImage_getters.h.
References vpException::divideByZeroError, getSum(), and vpImage().
Referenced by getStdev(), and vpImageTools::normalizedCorrelation().
| void vpImage< Type >::getMinMaxLoc | ( | vpImagePoint * | minLoc, |
| vpImagePoint * | maxLoc, | ||
| Type * | minVal = nullptr, | ||
| Type * | maxVal = nullptr ) const |
Get the position of the minimum and/or the maximum pixel value within the bitmap and the corresponding value. Following code allows retrieving only minimum value and position:
| minLoc | : Position of the pixel with minimum value if not nullptr. |
| maxLoc | : Position of the pixel with maximum value if not nullptr. |
| minVal | : Minimum pixel value if not nullptr. |
| maxVal | : Maximum pixel value if not nullptr. |
Definition at line 720 of file vpImage_getters.h.
References bitmap, vpException::fatalError, and vpImagePoint::set_ij().
| void vpImage< Type >::getMinMaxValue | ( | Type & | min, |
| Type & | max, | ||
| bool | onlyFiniteVal = true ) const |
Look for the minimum and the maximum value within the bitmap.
| min | : The minimal value within the bitmap. |
| max | : The maximal value within the bitmap. |
| onlyFiniteVal | : This parameter is ignored for non double or non float bitmap. |
Definition at line 520 of file vpImage_getters.h.
References bitmap, and vpException::fatalError.
Referenced by vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), VISP_NAMESPACE_NAME::stretchContrast(), and VISP_NAMESPACE_NAME::stretchContrastHSV().
|
inline |
Return the minimum value within the bitmap.
Return the minimum value within the float bitmap.
Return the minimum value within the double bitmap.
| onlyFiniteVal | : This parameter is ignored for non double or non float bitmap. If true, consider only finite values. |
Definition at line 433 of file vpImage_getters.h.
References bitmap, and vpException::fatalError.
|
inline |
Get the image number of pixels which corresponds to the image width multiplied by the image height.
Definition at line 203 of file vpImage.h.
Referenced by vpImageConvert::split().
|
inline |
Get the number of rows in the image.
Definition at line 212 of file vpImage.h.
Referenced by vpCircleHoughTransform::computeCenterCandidates(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpMomentObject::fromImage(), vpMomentObject::fromImage(), and vpMeTracker::inMeMaskCandidates().
|
inline |
Get the image size.
Definition at line 221 of file vpImage.h.
Referenced by vpColorHistogram::build(), vpColorHistogram::computeProbas(), vpColorHistogram::computeSplitHistograms(), vpColorHistogram::computeSplitHistograms(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::depthToPointCloud(), vpImageConvert::depthToPointCloud(), vpObjectMask::display(), vpRBSilhouetteMeTracker::extractFeatures(), VISP_NAMESPACE_NAME::findContours(), vpImageTools::imageAdd(), vpImageTools::imageDifference(), vpImageTools::imageDifference(), vpImageTools::imageSubtract(), vpImageTools::normalizedCorrelation(), VISP_NAMESPACE_NAME::reconstruct(), vpPointMap::selectValidNewCandidates(), vpImageConvert::split(), vpImageTools::templateMatching(), vpColorHistogramMask::updateMask(), vpDepthMask::updateMask(), and vpImageTools::warpImage().
| double vpImage< Type >::getStdev | ( | const double & | mean, |
| const vpImage< bool > * | p_mask = nullptr, | ||
| unsigned int * | nbValidPoints = nullptr ) const |
Return the standard deviation of the bitmap.
where
is the mean of the image as computed by vpImage::getMeanValue() and
is the number of pixels to consider in the mask.
| [in] | mean | The mean of the image. |
| [in] | p_mask | Optional parameter. When different from nullptr, a boolean mask that indicates which pixels must be considered, if set to true. |
| [out] | nbValidPoints | Optional parameter. When different from nullptr contains the number of points that are valid according to the boolean mask or image size when p_mask is set to nullptr. |
Definition at line 825 of file vpImage_getters.h.
References bitmap, vpException::fatalError, getHeight(), getWidth(), and vpImage().
| double vpImage< Type >::getStdev | ( | const vpImage< bool > * | p_mask = nullptr, |
| unsigned int * | nbValidPoints = nullptr ) const |
Return the standard deviation of the bitmap.
where
is the mean of the image as computed by vpImage::getMeanValue() and
is the number of pixels to consider in the mask.
| [in] | p_mask | A boolean mask that indicates which points must be considered, if set to true. |
| [out] | nbValidPoints | Optional parameter. When different from nullptr contains the number of points that are valid according to the boolean mask or image size when p_mask is set to nullptr. |
Definition at line 801 of file vpImage_getters.h.
References getMeanValue(), getStdev(), and vpImage().
Referenced by getStdev().
|
inline |
Compute the sum of image intensities.
| [in] | p_mask | Optional parameter. If not set to nullptr, pointer to a boolean mask that indicates the valid points by a true flag. |
| [out] | nbValidPoints | Optional parameter. When different from nullptr contains the number of points that are valid according to the boolean mask or image size when p_mask is set to nullptr. |
Definition at line 976 of file vpImage_getters.h.
References bitmap, vpException::fatalError, getHeight(), getWidth(), and vpImage().
Referenced by getMeanValue().
|
inline |
Retrieves pixel value from an image containing values of type Type with sub-pixel accuracy.
Gets the value of a sub-pixel with coordinates (i,j) with bilinear interpolation.
See also vpImageTools::interpolate() for a similar result, but with a choice of the interpolation method.
| ip | : Sub-pixel coordinates of a point in the image. |
| vpImageException::notInTheImage | : If the image point ip is out of the image. |
Definition at line 313 of file vpImage_getters.h.
References vpImagePoint::get_i(), vpImagePoint::get_j(), and getValue().
|
inline |
Retrieves pixel value from an image containing values of type Type with sub-pixel accuracy.
Gets the value of a sub-pixel with coordinates (i,j) with bilinear interpolation.
See also vpImageTools::interpolate() for a similar result, but with a choice of the interpolation method.
| i | : Sub-pixel coordinate along the rows. |
| j | : Sub-pixel coordinate along the columns. |
| vpImageException::notInTheImage | : If (i,j) is out of the image. |
Definition at line 76 of file vpImage_getters.h.
References vpImageException::notInitializedError, vpImageException::notInTheImage, and vpMath::round().
|
inline |
Retrieves pixel value from an image containing values of type Type.
Gets the value of a sub-pixel with coordinates (i,j).
| i | : Pixel coordinate along the rows. |
| j | : Pixel coordinate along the columns. |
| vpImageException::notInTheImage | : If (i,j) is out of the image. |
Definition at line 51 of file vpImage_getters.h.
References vpImageException::notInTheImage.
Referenced by vpTemplateTrackerMI::getMI(), vpTemplateTrackerMI::getMI256(), getValue(), vpTemplateTrackerZNCCForwardAdditional::initHessienDesired(), vpTemplateTrackerZNCCInverseCompositional::initHessienDesired(), and vpMeTracker::inRoiMask().
|
inline |
Get the image width.
Definition at line 242 of file vpImage.h.
Referenced by VISP_NAMESPACE_NAME::clahe(), VISP_NAMESPACE_NAME::clahe(), vpRBVisualOdometryUtils::computeIndicesObjectAndEnvironment(), vpImageCircle::computePixelsInMask(), vpPose::computePlanarObjectPoseFromRGBD(), vpPose::computePlanarObjectPoseFromRGBD(), vpColorHistogram::computeProbas(), vpColorHistogram::computeProbas(), vpColorHistogram::computeSplitHistograms(), VISP_NAMESPACE_NAME::connectedComponents(), vpColormap::convert(), vpColormap::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpKeyPoint::createImageMatching(), vpKeyPoint::createImageMatching(), vpKeyPoint::createImageMatching(), vpKeyPoint::createImageMatching(), vpImageConvert::depthToPointCloud(), vpImageConvert::depthToPointCloud(), vpImageMorphology::dilatation(), vpDisplayGTK::displayImageROI(), vpDisplayGTK::displayImageROI(), vpKeyPoint::displayMatching(), vpKeyPoint::displayMatching(), vpKeyPoint::displayMatching(), vpKeyPoint::displayMatching(), vpKeyPoint::displayMatching(), vpCircleHoughTransform::edgeDetection(), VISP_NAMESPACE_NAME::equalizeHistogram(), vpImageMorphology::erosion(), vpPlaneEstimation::estimatePlane(), vpRBSilhouetteCCDTracker::extractFeatures(), vpRBSilhouetteMeTracker::extractFeatures(), VISP_NAMESPACE_NAME::fillHoles(), vpCircleHoughTransform::filterEdgeMap(), VISP_NAMESPACE_NAME::findContours(), vpSimulatorAfma6::getCameraParameters(), vpSimulatorAfma6::getCameraParameters(), vpSimulatorViper850::getCameraParameters(), vpSimulatorViper850::getCameraParameters(), vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpSilhouettePointsExtractionSettings::getSilhouetteCandidates(), getStdev(), getSum(), vpImageTools::imageAdd(), vpImageTools::imageDifference(), vpImageTools::imageDifference(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageSubtract(), vpMbTracker::initClick(), vpMbEdgeTracker::initPyramid(), insert(), vpKeyPoint::insertImageMatching(), vpKeyPoint::insertImageMatching(), vpKeyPoint::insertImageMatching(), vpKeyPoint::insertImageMatching(), vpImageTools::integralImage(), vpImageConvert::merge(), vpImageTools::normalizedCorrelation(), VISP_NAMESPACE_NAME::reconstruct(), vpImageTools::resize(), vpImageTools::resize(), vpImageTools::resize(), vpRBProbabilistic3DDriftDetector::score(), vpMeNurbs::seekExtremitiesCanny(), vpPanda3DRGBRenderer::setBackgroundImage(), vpImageConvert::split(), sub(), sub(), vpImageTools::templateMatching(), vpRBProbabilistic3DDriftDetector::update(), vpColorHistogramMask::updateMask(), vpDepthMask::updateMask(), vpImageTools::warpImage(), vpImageTools::warpLinear(), and vpKinect::warpRGBFrame().
Returns a new image that's half size of the current image. No filtering is used during the sub sampling.
Used for building pyramid of the image.
| res | [out] : Subsampled image that is half size of the current image. |
The example below shows how to use this method:
This other example shows how to construct a pyramid of the image:
| void init | ( | Type *const | array, |
| unsigned int | height, | ||
| unsigned int | width, | ||
| bool | copyData = false ) |
Initialization from an image stored as a continuous array in memory.
Definition at line 432 of file vpImage.h.
References bitmap, and vpException::memoryAllocationError.
| void init | ( | unsigned int | height, |
| unsigned int | width ) |
| void init | ( | unsigned int | height, |
| unsigned int | width, | ||
| Type | value ) |
| void vpImage< Type >::insert | ( | const vpImage< Type > & | src, |
| const vpImagePoint & | topLeft ) |
Insert an image into another one.
It is possible to insert the image
into the calling vpImage. You can set the point in the destination image where the top left corner of the
image will be located.
| src | : Image to insert |
| topLeft | : Upper/left coordinates in the image where the image src is inserted in the destination image. |
Definition at line 639 of file vpImage.h.
References bitmap, vpImagePoint::get_i(), vpImagePoint::get_j(), getHeight(), getWidth(), and vpImage().
Referenced by vpKeyPoint::insertImageMatching(), vpKeyPoint::insertImageMatching(), vpKeyPoint::insertImageMatching(), and vpKeyPoint::insertImageMatching().
Compare two images.
Definition at line 300 of file vpImage_operators.h.
References vpImage().
|
inline |
Get the value of an image point.
| ip | : An image point with sub-pixel coordinates. Sub-pixel coordinates are roughly transformed to insigned int coordinates by cast. |
Definition at line 290 of file vpImage.h.
References bitmap, vpImagePoint::get_i(), and vpImagePoint::get_j().
|
inline |
Set the value of an image point.
| ip | : An image point with sub-pixel coordinates. Sub-pixel coordinates are roughly transformed to insigned int coordinates by cast. |
| v | : Value to set for the image point. |
Definition at line 306 of file vpImage.h.
References bitmap, vpImagePoint::get_i(), and vpImagePoint::get_j().
|
inline |
|
inline |
Operation A - B (A is unchanged).
Definition at line 331 of file vpImage_operators.h.
= operator : Set all the element of the bitmap to a given value v.
Definition at line 257 of file vpImage_operators.h.
Copy operator.
Copy operator. Resizes and copies the contents of the image other. The pointer to the display remains unchanged.
| [in] | other | : Image to copy. |
| When | the display is initialised and the images have different sizes. |
Definition at line 190 of file vpImage_operators.h.
References bitmap, vpException::dimensionError, display, resize(), and vpImage().
move constructor
Move operator. Moves the image pointers without deep copying image content.
| [in] | other | : Image to move. |
| vpException::dimensionError | When the display is initialised and the images have different sizes. |
| vpException::fatalError | When the display attached to the `other` image is initialized. |
Definition at line 213 of file vpImage_operators.h.
References bitmap, vpException::dimensionError, display, vpException::fatalError, and vpImage().
Compare two images.
Definition at line 271 of file vpImage_operators.h.
|
inline |
|
inline |
|
inline |
|
inline |
| void vpImage< Type >::performLut | ( | const Type(&) | lut[256], |
| unsigned int | nbThreads = 1 ) |
Definition at line 172 of file vpImage_lut.h.
Referenced by vpHistogram::equalize().
Returns a new image that's a quarter size of the current image. No filtering is used during the sub sampling. Used for building a quarter of the image.
| res | [out] : Subsampled image that is quarter size of the current image. |
The example below shows how to use this method:
See halfSizeImage(vpImage<Type> &) for an example of pyramid construction.
| void vpImage< Type >::resize | ( | unsigned int | h, |
| unsigned int | w ) |
resize the image : Image initialization
Allocate memory for an [height x width] image.
| w | : Image width. |
| h | : Image height. |
Element of the bitmap are not initialized
If the image has been already initialized, memory allocation is done only if the new image size is different, else we re-use the same memory space.
| vpException::memoryAllocationError | Memory allocation error. |
Definition at line 544 of file vpImage.h.
References init().
Referenced by vpRealSense2::acquire(), vpRealSense2::acquire(), vpRealSense2::acquire(), VISP_NAMESPACE_NAME::clahe(), VISP_NAMESPACE_NAME::clahe(), vpImageFilter::computePartialDerivatives(), vpColorHistogram::computeProbas(), vpColorHistogram::computeProbas(), VISP_NAMESPACE_NAME::connectedComponents(), vpColormap::convert(), vpColormap::convert(), doubleSizeImage(), vpImageTools::extract(), vpImageTools::extract(), vpImageFilter::filter(), vpImageFilter::filter(), vpImageTools::flip(), vpImageTools::flip(), vpImageFilter::getGaussXPyramidal(), vpImageFilter::getGaussYPyramidal(), vpRealSense2::getGreyFrame(), vpPanda3DDepthCannyFilter::getRender(), vpPanda3DDepthCannyFilter::getRender(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpImageFilter::gradientFilter(), vpImageFilter::gradientFilterX(), vpImageFilter::gradientFilterY(), halfSizeImage(), vpImageTools::imageAdd(), vpImageTools::imageDifference(), vpImageTools::imageDifference(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageSubtract(), vpImageTools::integralImage(), vpImageConvert::merge(), operator=(), vpObjectCentricRenderer::placeRenderInto(), quarterSizeImage(), vpImageTools::remap(), vpImageTools::remap(), vpImageTools::resize(), vpImageFilter::sepFilter(), vpImageConvert::split(), sub(), sub(), subsample(), vpImageTools::templateMatching(), vpImageTools::undistort(), vpColorHistogramMask::updateMask(), vpCombinedDepthAndColorMask::updateMask(), vpDepthMask::updateMask(), vpRBTracker::updateRender(), vpImage(), vpImageSimulator::vpImageSimulator(), vpImageTools::warpImage(), and vpKinect::warpRGBFrame().
| void vpImage< Type >::resize | ( | unsigned int | h, |
| unsigned int | w, | ||
| const Type & | val ) |
resize the image : Image initialization
Allocate memory for an [height x width] image and initialize the image.
| w | : Image width. |
| h | : Image height. |
| val | : Pixels value. |
Element of the bitmap are not initialized
If the image has been already initialized, memory allocation is done only if the new image size is different, else we re-use the same memory space.
| vpException::memoryAllocationError | Memory allocation error. |
Definition at line 565 of file vpImage.h.
References init().
| void vpImage< Type >::sub | ( | const vpImage< Type > & | A, |
| const vpImage< Type > & | B, | ||
| vpImage< Type > & | C ) const |
Operation C = A - B.
The result is placed in the third parameter C and not returned. A new image won't be allocated for every use of the function (Speed gain if used many times with the same result matrix size).
| vpException::memoryAllocationError | If the images size differ. |
Definition at line 950 of file vpImage.h.
References bitmap, getHeight(), getWidth(), vpException::memoryAllocationError, resize(), and vpImage().
| void vpImage< Type >::sub | ( | const vpImage< Type > & | B, |
| vpImage< Type > & | C ) const |
Operation C = *this - B.
The result is placed in the third parameter C and not returned. A new image won't be allocated for every use of the function (Speed gain if used many times with the same result matrix size).
| vpException::memoryAllocationError | If the images size differ. |
Definition at line 915 of file vpImage.h.
References bitmap, getHeight(), getWidth(), vpException::memoryAllocationError, resize(), and vpImage().
Referenced by operator-().
| void vpImage< Type >::subsample | ( | unsigned int | v_scale, |
| unsigned int | h_scale, | ||
| vpImage< Type > & | sampled ) const |
Computes a subsampled image. No filtering is used during the sub sampling.
| v_scale | [in] : Vertical subsampling factor. |
| h_scale | [in] : Horizontal subsampling factor. |
| sampled | [out] : Subsampled image. |
The example below shows how to use this method:
Definition at line 755 of file vpImage.h.
References resize(), and vpImage().
Referenced by VISP_NAMESPACE_NAME::gammaCorrectionSpatialBased(), and VISP_NAMESPACE_NAME::gammaCorrectionSpatialBased().
|
Look for the minimum and the maximum value within the double bitmap.
| min | : The minimal value within the bitmap. |
| max | : The maximal value within the bitmap. |
| onlyFiniteVal | : If true, consider only finite values. |
Definition at line 550 of file vpImage_getters.h.
|
Look for the minimum and the maximum value within the float bitmap.
| min | : The minimal value within the bitmap. |
| max | : The maximal value within the bitmap. |
| onlyFiniteVal | : If true, consider only finite values. |
Definition at line 593 of file vpImage_getters.h.
Look for the minimum and the maximum value within the 3-channels float bitmap.
| min | : The minimal values within the bitmap. |
| max | : The maximal values within the bitmap. |
| onlyFiniteVal | : If true, consider only finite values. |
Definition at line 636 of file vpImage_getters.h.
|
friend |
Definition at line 93 of file vpImage_operators.h.
References operator<<, and vpImage().
|
friend |
Definition at line 152 of file vpImage_operators.h.
References operator<<, and vpImage().
|
friend |
Definition at line 122 of file vpImage_operators.h.
References operator<<, and vpImage().
|
friend |
Definition at line 39 of file vpImage_operators.h.
References operator<<, and vpImage().
Referenced by operator<<, operator<<, operator<<, operator<<, and operator<<.
|
friend |
Definition at line 64 of file vpImage_operators.h.
References operator<<, and vpImage().
|
Modify the intensities of a grayscale image using the look-up table passed in parameter.
| lut | : Look-up table (unsigned char array of size=256) which maps each intensity to his new value. |
| nbThreads | : Number of threads to use for the computation. |
Definition at line 187 of file vpImage_lut.h.
|
Modify the intensities of a color image using the look-up table passed in parameter.
| lut | : Look-up table (vpRGBa array of size=256) which maps each intensity to his new value. |
| nbThreads | : Number of threads to use for the computation. |
Definition at line 266 of file vpImage_lut.h.
|
friend |
| Type* vpImage< Type >::bitmap |
points toward the bitmap
Definition at line 135 of file vpImage.h.
Referenced by vpOccipitalStructure::acquire(), vpOccipitalStructure::acquire(), vpOccipitalStructure::acquire(), vpOccipitalStructure::acquire(), vpV4l2Grabber::acquire(), vpV4l2Grabber::acquire(), vpColorHistogram::build(), VISP_NAMESPACE_NAME::clahe(), vpImageFilter::computeCannyThreshold(), vpImageFilter::computeCannyThreshold(), vpColorHistogram::computeProbas(), vpColorHistogram::computeSplitHistograms(), vpColorHistogram::computeSplitHistograms(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::convert(), vpImageConvert::depthToPointCloud(), vpImageConvert::depthToPointCloud(), destroy(), vpObjectMask::display(), VISP_NAMESPACE_NAME::equalizeHistogram(), vpImageTools::flip(), vpImageTools::flip(), VISP_NAMESPACE_NAME::gammaCorrection(), VISP_NAMESPACE_NAME::gammaCorrectionSpatialBased(), VISP_NAMESPACE_NAME::gammaCorrectionSpatialBased(), vpRealSense2::getGreyFrame(), getMaxValue(), getMinMaxLoc(), getMinMaxValue(), getMinValue(), getStdev(), getSum(), vpImageTools::imageAdd(), vpImageTools::imageDifference(), vpImageTools::imageDifference(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageDifferenceAbsolute(), vpImageTools::imageSubtract(), init(), init(), init(), insert(), vpImageConvert::merge(), VISP_NAMESPACE_NAME::MSRCR(), vpImageTools::normalizedCorrelation(), operator()(), operator()(), operator()(), operator()(), operator=(), operator=(), operator=(), operator==(), vpObjectCentricRenderer::placeRenderInto(), vpImageTools::remap(), vpImageConvert::split(), VISP_NAMESPACE_NAME::stretchContrastHSV(), sub(), sub(), swap, vpImageTools::templateMatching(), vpImageTools::undistort(), VISP_NAMESPACE_NAME::unsharpMask(), VISP_NAMESPACE_NAME::unsharpMask(), vpColorHistogramMask::updateMask(), vpCombinedDepthAndColorMask::updateMask(), vpDepthMask::updateMask(), vpImage(), vpImage(), vpImage(), vpImage(), vpImage(), and vpImage().
Definition at line 136 of file vpImage.h.
Referenced by vpDisplay::getImage(), vpDisplay::getImage(), vpMbTracker::initClick(), operator=(), operator=(), swap, vpImage(), vpImage(), vpImage(), vpImage(), vpImage(), and vpImage().