Functions | |
void | FilterGaussGetBufferSize (const QVGenericImage &image, QVImage< uChar > &buffer, uInt kernelSize) |
Computes the size of the external buffer for the Gaussian filter with border. | |
void | MinEigenValGetBufferSize (const QVGenericImage &src, QVImage< uChar > &buffer, uInt apertureSize=5, uInt avgWindow=5) |
Allocates size in a buffer image for temporary data for function MinEigenValGet. | |
void | CannyGetSize (const QVGenericImage &src, QVImage< uChar > &buffer) |
Allocates size in a buffer image for temporary data for function Canny. | |
void | Canny (QVImage< sShort > &dX, QVImage< sShort > &dY, QVImage< uChar > &dest, QVImage< uChar > &buffer, double low=50.0, double high=150.0) |
Performs Canny algorithm for edge detection. | |
void | Canny (QVImage< sFloat > &dX, QVImage< sFloat > &dY, QVImage< uChar > &dest, QVImage< uChar > &buffer, double low=50.0, double high=150.0) |
Performs Canny algorithm for edge detection. | |
void | MinEigenVal (const QVImage< uChar > &src, QVImage< sFloat > &dest, QVImage< uChar > &buffer, uInt apertureSize=3, uInt avgWindow=5, IppiKernelType kernel=ippKernelSobel) |
Calculates the minimal eigen value of image blocks for corner detection. | |
void | FastMarchingGetBufferSize (const QVGenericImage &image, QVImage< uChar > &buffer) |
Allocates size in a buffer image for temporary data for function FastMarching. | |
void | FastMarching (const QVImage< uChar > &mask, QVImage< sFloat > &distances, int radius, QVImage< uChar > &buffer) |
Calculates distance transform to closest zero pixel for all non-zero pixels of source image using fast marching method. | |
void | Inpaint (const QVImage< uChar > &src, const QVImage< uChar > &mask, const QVImage< sFloat > &distances, QVImage< uChar > &dest, int radius=4, IppiInpaintFlag flag=IPP_INPAINT_TELEA) |
Restores unknown image pixels. | |
void | Inpaint (const QVImage< uChar, 3 > &src, const QVImage< uChar > &mask, const QVImage< sFloat > &distances, QVImage< uChar, 3 > &dest, int radius=4, IppiInpaintFlag flag=IPP_INPAINT_TELEA) |
Overload for function Inpaint, for different channel number images. | |
QMap< sInt, int > | HistogramRange (const QVImage< uChar, 1 > &src, QList< uChar > values=QList< uChar >()) |
Calculates frequency histogram for a given set of values, for a QVImage. | |
void | FloodFillGetSize (const QVGenericImage &src, QVImage< uChar > &buffer) |
Allocates size in a buffer image for temporary data for function family FloodFill. | |
void | Copy (const QVImage< uChar, 1 > &src, QVImage< uChar, 1 > &dest) |
Copies pixel values between two images. | |
void | Copy (const QVImage< sShort, 1 > &src, QVImage< sShort, 1 > &dest) |
Copies pixel values between two images. | |
void | Copy (const QVImage< sFloat, 1 > &src, QVImage< sFloat, 1 > &dest) |
Copies pixel values between two images. | |
void | Copy (const QVImage< uChar, 3 > &src, QVImage< uChar, 3 > &dest) |
Copies pixel values between two images. | |
void | Copy (const QVImage< sShort, 3 > &src, QVImage< sShort, 3 > &dest) |
Copies pixel values between two images. | |
void | Copy (const QVImage< sFloat, 3 > &src, QVImage< sFloat, 3 > &dest) |
Copies pixel values between two images. | |
void | Copy (const QVImage< uChar, 1 > &src, QVImage< uChar, 3 > &dest) |
Copies pixel values from a 1-channel image to all of the channels for a 3-channel image. | |
void | Copy (const QVImage< sShort, 1 > &src, QVImage< sShort, 3 > &dest) |
Copies pixel values from a 1-channel image to all of the channels for a 3-channel image. | |
void | Copy (const QVImage< sFloat, 1 > &src, QVImage< sFloat, 3 > &dest) |
Copies pixel values from a 1-channel image to all of the channels for a 3-channel image. | |
void | Compare (const QVImage< uChar > &src1, const QVImage< uChar > &src2, QVImage< uChar > &dest, IppCmpOp ippCmpOp=ippCmpEq) |
Compares pixel values of two images using a specified compare operation. | |
void | Compare (const QVImage< sShort > &src1, const QVImage< sShort > &src2, QVImage< uChar > &dest, IppCmpOp ippCmpOp=ippCmpEq) |
Compares pixel values of two images using a specified compare operation. | |
void | Compare (const QVImage< sFloat > &src1, const QVImage< sFloat > &src2, QVImage< uChar > &dest, IppCmpOp ippCmpOp=ippCmpEq) |
Compares pixel values of two images using a specified compare operation. | |
void | Compare (const QVImage< uChar, 3 > &src1, const QVImage< uChar, 3 > &src2, QVImage< uChar > &dest, IppCmpOp ippCmpOp=ippCmpEq) |
Compares pixel values of two images using a specified compare operation. | |
void | Compare (const QVImage< sShort, 3 > &src1, const QVImage< sShort, 3 > &src2, QVImage< uChar > &dest, IppCmpOp ippCmpOp=ippCmpEq) |
Compares pixel values of two images using a specified compare operation. | |
void | Compare (const QVImage< sFloat, 3 > &src1, const QVImage< sFloat, 3 > &src2, QVImage< uChar > &dest, IppCmpOp ippCmpOp=ippCmpEq) |
Compares pixel values of two images using a specified compare operation. | |
void | CompareC (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant, IppCmpOp ippCmpOp=ippCmpEq) |
Compares pixel values of a source image to a given value using a specified compare operation. | |
void | CompareC (const QVImage< sFloat > &src, QVImage< uChar > &dest, sFloat constant, IppCmpOp ippCmpOp=ippCmpEq) |
Compares pixel values of a source image to a given value using a specified compare operation. | |
void | Convert (const QVImage< uChar, 1 > &src, QVImage< sShort, 1 > &dest) |
Converts a image from one bit depth to another. | |
void | Convert (const QVImage< uChar, 1 > &src, QVImage< sFloat, 1 > &dest) |
Converts a image from one bit depth to another. | |
void | Convert (const QVImage< sShort, 1 > &src, QVImage< uChar, 1 > &dest) |
Converts a image from one bit depth to another. | |
void | Convert (const QVImage< sShort, 1 > &src, QVImage< sFloat, 1 > &dest) |
Converts a image from one bit depth to another. | |
void | Convert (const QVImage< uChar, 3 > &src, QVImage< sShort, 3 > &dest) |
Converts a image from one bit depth to another. | |
void | Convert (const QVImage< uChar, 3 > &src, QVImage< sFloat, 3 > &dest) |
Converts a image from one bit depth to another. | |
void | Convert (const QVImage< sShort, 3 > &src, QVImage< uChar, 3 > &dest) |
Converts a image from one bit depth to another. | |
void | Convert (const QVImage< sShort, 3 > &src, QVImage< sFloat, 3 > &dest) |
Converts a image from one bit depth to another. | |
void | Convert (const QVImage< sFloat, 1 > &src, QVImage< uChar, 1 > &dest, IppRoundMode roundMode=ippRndNear) |
Converts a image from a floating point bit depth to a integer bit depth, using a given round mode. | |
void | Convert (const QVImage< sFloat, 1 > &src, QVImage< sShort, 1 > &dest, IppRoundMode roundMode=ippRndNear) |
Converts a image from a floating point bit depth to a integer bit depth, using a given round mode. | |
void | Convert (const QVImage< sFloat, 3 > &src, QVImage< uChar, 3 > &dest, IppRoundMode roundMode=ippRndNear) |
Converts a image from a floating point bit depth to a integer bit depth, using a given round mode. | |
void | Convert (const QVImage< sFloat, 3 > &src, QVImage< sShort, 3 > &dest, IppRoundMode roundMode=ippRndNear) |
Converts a image from a floating point bit depth to a integer bit depth, using a given round mode. | |
void | RGBToGray (const QVImage< uChar, 3 > &src, QVImage< uChar, 1 > &dest) |
Converts an RGB image to gray-scale using fixed transform coefficients. | |
void | RGBToGray (const QVImage< sShort, 3 > &src, QVImage< sShort, 1 > &dest) |
Converts an RGB image to gray-scale using fixed transform coefficients. | |
void | RGBToGray (const QVImage< sFloat, 3 > &src, QVImage< sFloat, 1 > &dest) |
Converts an RGB image to gray-scale using fixed transform coefficients. | |
void | Threshold (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant, IppCmpOp ippCmpOp=ippCmpEq) |
Performs thresholding of pixel values in an image buffer. | |
void | Threshold (const QVImage< sShort > &src, QVImage< sShort > &dest, sShort constant, IppCmpOp ippCmpOp=ippCmpEq) |
Performs thresholding of pixel values in an image buffer. | |
void | Threshold (const QVImage< sFloat > &src, QVImage< sFloat > &dest, sFloat constant, IppCmpOp ippCmpOp=ippCmpEq) |
Performs thresholding of pixel values in an image buffer. | |
void | Set (QVImage< uChar > &img, uChar constant) |
Sets pixels of an image ROI to a value. | |
void | Set (QVImage< sShort > &img, sShort constant) |
Sets pixels of an image ROI to a value. | |
void | Set (QVImage< sFloat > &img, sFloat constant) |
Sets pixels of an image ROI to a value. | |
void | Set (QVImage< uChar, 3 > &img, uChar red, uChar green, uChar blue) |
Sets pixels of a 3-channel image ROI to a value respective constant value, one for each channel. | |
void | Set (QVImage< sShort, 3 > &img, sShort red, sShort green, sShort blue) |
Sets pixels of a 3-channel image ROI to a value respective constant value, one for each channel. | |
void | Set (QVImage< sFloat, 3 > &img, sFloat red, sFloat green, sFloat blue) |
Sets pixels of a 3-channel image ROI to a value respective constant value, one for each channel. | |
void | Abs (const QVImage< sShort > &src, QVImage< sShort > &dest) |
Computes absolute pixel values of a source image and places them into the destination image. | |
void | Abs (const QVImage< sFloat > &src, QVImage< sFloat > &dest) |
Computes absolute pixel values of a source image and places them into the destination image. | |
void | Not (const QVImage< uChar > &src, QVImage< uChar > &dest) |
Performs a bit-wise NOT operation on each pixel of an image. | |
void | Not (const QVImage< uChar, 3 > &src, QVImage< uChar, 3 > &dest) |
Performs a bit-wise NOT operation on each pixel of an image. | |
void | OrC (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant) |
Performs a bit-wise inclusive OR operation between each pixel of an image and a constant. | |
void | AndC (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant) |
Performs a bit-wise AND operation between each pixel of an image and a constant. | |
void | XorC (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant) |
Performs a bit-wise exclusive OR operation between each pixel of an image and a constant. | |
void | LShiftC (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant) |
Shifts bits in pixel values to the left. | |
void | RShiftC (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant) |
Shifts bits in pixel values to the right. | |
void | Add (const QVImage< uChar > &src1, const QVImage< uChar > &src2, QVImage< uChar > &dest, int scale=1) |
Adds pixel values of two images. | |
void | Add (const QVImage< uChar, 3 > &src1, const QVImage< uChar, 3 > &src2, QVImage< uChar, 3 > &dest, int scale=1) |
Adds pixel values of two images. | |
void | Add (const QVImage< sShort > &src1, const QVImage< sShort > &src2, QVImage< sShort > &dest, int scale=1) |
Adds pixel values of two images. | |
void | Add (const QVImage< sShort, 3 > &src1, const QVImage< sShort, 3 > &src2, QVImage< sShort, 3 > &dest, int scale=1) |
Adds pixel values of two images. | |
void | Add (const QVImage< sFloat > &src1, const QVImage< sFloat > &src2, QVImage< sFloat > &dest) |
Adds pixel values of two images. | |
void | Add (const QVImage< sFloat, 3 > &src1, const QVImage< sFloat, 3 > &src2, QVImage< sFloat, 3 > &dest) |
Adds pixel values of two images. | |
void | Sub (const QVImage< uChar > &src1, const QVImage< uChar > &src2, QVImage< uChar > &dest, int scale=1) |
Subtracts pixel values of two images. | |
void | Sub (const QVImage< uChar, 3 > &src1, const QVImage< uChar, 3 > &src2, QVImage< uChar, 3 > &dest, int scale=1) |
Subtracts pixel values of two images. | |
void | Sub (const QVImage< sShort > &src1, const QVImage< sShort > &src2, QVImage< sShort > &dest, int scale=1) |
Subtracts pixel values of two images. | |
void | Sub (const QVImage< sShort, 3 > &src1, const QVImage< sShort, 3 > &src2, QVImage< sShort, 3 > &dest, int scale=1) |
Subtracts pixel values of two images. | |
void | Sub (const QVImage< sFloat > &src1, const QVImage< sFloat > &src2, QVImage< sFloat > &dest) |
Subtracts pixel values of two images. | |
void | Sub (const QVImage< sFloat, 3 > &src1, const QVImage< sFloat, 3 > &src2, QVImage< sFloat, 3 > &dest) |
Subtracts pixel values of two images. | |
void | Mul (const QVImage< uChar > &src1, const QVImage< uChar > &src2, QVImage< uChar > &dest, int scale=1) |
Multiplies pixel values of two images. | |
void | Mul (const QVImage< uChar, 3 > &src1, const QVImage< uChar, 3 > &src2, QVImage< uChar, 3 > &dest, int scale=1) |
Multiplies pixel values of two images. | |
void | Mul (const QVImage< sShort > &src1, const QVImage< sShort > &src2, QVImage< sShort > &dest, int scale=1) |
Multiplies pixel values of two images. | |
void | Mul (const QVImage< sShort, 3 > &src1, const QVImage< sShort, 3 > &src2, QVImage< sShort, 3 > &dest, int scale=1) |
Multiplies pixel values of two images. | |
void | Mul (const QVImage< sFloat > &src1, const QVImage< sFloat > &src2, QVImage< sFloat > &dest) |
Multiplies pixel values of two images. | |
void | Mul (const QVImage< sFloat, 3 > &src1, const QVImage< sFloat, 3 > &src2, QVImage< sFloat, 3 > &dest) |
Multiplies pixel values of two images. | |
void | Div (const QVImage< uChar > &src1, const QVImage< uChar > &src2, QVImage< uChar > &dest, int scale=1) |
Divides pixel values of an image by pixel values of another image. | |
void | Div (const QVImage< uChar, 3 > &src1, const QVImage< uChar, 3 > &src2, QVImage< uChar, 3 > &dest, int scale=1) |
Divides pixel values of an image by pixel values of another image. | |
void | Div (const QVImage< sShort > &src1, const QVImage< sShort > &src2, QVImage< sShort > &dest, int scale=1) |
Divides pixel values of an image by pixel values of another image. | |
void | Div (const QVImage< sShort, 3 > &src1, const QVImage< sShort, 3 > &src2, QVImage< sShort, 3 > &dest, int scale=1) |
Divides pixel values of an image by pixel values of another image. | |
void | Div (const QVImage< sFloat > &src1, const QVImage< sFloat > &src2, QVImage< sFloat > &dest) |
Divides pixel values of an image by pixel values of another image. | |
void | Div (const QVImage< sFloat, 3 > &src1, const QVImage< sFloat, 3 > &src2, QVImage< sFloat, 3 > &dest) |
Divides pixel values of an image by pixel values of another image. | |
void | MulScale (const QVImage< uChar > &src1, const QVImage< uChar > &src2, QVImage< uChar > &dest) |
Multiplies pixel values of two images and scales the products. | |
void | MulScale (const QVImage< uChar, 3 > &src1, const QVImage< uChar, 3 > &src2, QVImage< uChar, 3 > &dest) |
Multiplies pixel values of two images and scales the products. | |
void | AbsDiff (const QVImage< uChar > &src1, const QVImage< uChar > &src2, QVImage< uChar > &dest) |
Calculates absolute difference between two images. | |
void | AbsDiff (const QVImage< sFloat > &src1, const QVImage< sFloat > &src2, QVImage< sFloat > &dest) |
Calculates absolute difference between two images. | |
void | MulC (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant, int scale=1) |
Multiplies pixel values of an image by a constant. | |
void | MulC (const QVImage< sShort > &src, QVImage< sShort > &dest, sShort constant, int scale=1) |
Multiplies pixel values of an image by a constant. | |
void | MulC (const QVImage< sFloat > &src, QVImage< sFloat > &dest, sFloat constant) |
Multiplies pixel values of an image by a constant. | |
void | AddC (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant, int scale=1) |
Adds a constant to pixel values of an image. | |
void | AddC (const QVImage< sShort > &src, QVImage< sShort > &dest, sShort constant, int scale=1) |
Adds a constant to pixel values of an image. | |
void | AddC (const QVImage< sFloat > &src, QVImage< sFloat > &dest, sFloat constant) |
Adds a constant to pixel values of an image. | |
void | SubC (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant, int scale=1) |
Subtracts a constant from pixel values of an image. | |
void | SubC (const QVImage< sShort > &src, QVImage< sShort > &dest, sShort constant, int scale=1) |
Subtracts a constant from pixel values of an image. | |
void | SubC (const QVImage< sFloat > &src, QVImage< sFloat > &dest, sFloat constant) |
Subtracts a constant from pixel values of an image. | |
void | DivC (const QVImage< uChar > &src, QVImage< uChar > &dest, uChar constant, int scale=1) |
Divides pixel values of an image by a constant. | |
void | DivC (const QVImage< sShort > &src, QVImage< sShort > &dest, sShort constant, int scale=1) |
Divides pixel values of an image by a constant. | |
void | DivC (const QVImage< sFloat > &src, QVImage< sFloat > &dest, sFloat constant) |
Divides pixel values of an image by a constant. | |
void | Sum (const QVImage< uChar > &src, sDouble &value) |
Computes the sum of image pixel values. | |
void | Sum (const QVImage< sShort > &src, sDouble &value) |
Computes the sum of image pixel values. | |
void | Sum (const QVImage< uChar, 3 > &src, sDouble &r, sDouble &g, sDouble &b) |
Computes the sum of image pixel values, by separate planes. | |
void | Sum (const QVImage< sShort, 3 > &src, sDouble &r, sDouble &g, sDouble &b) |
Computes the sum of image pixel values, by separate planes. | |
void | Mean (const QVImage< uChar > &src, sDouble &value) |
Computes the mean of image pixel values. | |
void | Mean (const QVImage< sShort > &src, sDouble &value) |
Computes the mean of image pixel values. | |
void | Mean (const QVImage< uChar, 3 > &src, sDouble &r, sDouble &g, sDouble &b) |
Computes the mean of image pixel values, by separate planes. | |
void | Mean (const QVImage< sShort, 3 > &src, sDouble &r, sDouble &g, sDouble &b) |
Computes the mean of image pixel values, by separate planes. | |
void | Max (const QVImage< uChar > &src, uChar &value) |
Computes the maximum of image pixel values. | |
void | Max (const QVImage< sShort > &src, sShort &value) |
Computes the maximum of image pixel values. | |
void | Max (const QVImage< sFloat > &src, sFloat &value) |
Computes the maximum of image pixel values. | |
void | Max (const QVImage< uChar, 3 > &src, uChar &r, uChar &g, uChar &b) |
Computes the maximum of image pixel values, by separate planes. | |
void | Max (const QVImage< sShort, 3 > &src, sShort &r, sShort &g, sShort &b) |
Computes the maximum of image pixel values, by separate planes. | |
void | Min (const QVImage< uChar > &src, uChar &value) |
Computes the minimum of image pixel values. | |
void | Min (const QVImage< sShort > &src, sShort &value) |
Computes the minimum of image pixel values. | |
void | Min (const QVImage< sFloat > &src, sFloat &value) |
Computes the minimum of image pixel values. | |
void | Min (const QVImage< uChar, 3 > &src, uChar &r, uChar &g, uChar &b) |
Computes the minimum of image pixel values, by separate planes. | |
void | Min (const QVImage< sShort, 3 > &src, sShort &r, sShort &g, sShort &b) |
Computes the minimum of image pixel values, by separate planes. | |
void | FilterMax (const QVImage< uChar > &src, QVImage< uChar > &dest, uInt colMaskSize, uInt rowMaskSize) |
Applies the max filter to an image. | |
void | FilterMax (const QVImage< sFloat > &src, QVImage< sFloat > &dest, uInt colMaskSize, uInt rowMaskSize) |
Applies the max filter to an image. | |
void | FilterMin (const QVImage< uChar > &src, QVImage< uChar > &dest, uInt colMaskSize, uInt rowMaskSize) |
Applies the min filter to an image. | |
void | FilterMin (const QVImage< sFloat > &src, QVImage< sFloat > &dest, uInt colMaskSize, uInt rowMaskSize) |
Applies the min filter to an image. | |
void | FilterBox (const QVImage< uChar > &src, QVImage< uChar > &dest, uInt colMaskRadius, uInt rowMaskRadius) |
Blurs an image using a simple box filter. | |
void | FilterBox (const QVImage< sFloat > &src, QVImage< sFloat > &dest, uInt colMaskRadius, uInt rowMaskRadius) |
Blurs an image using a simple box filter. | |
void | FilterGauss (const QVImage< uChar > &src, QVImage< uChar > &dest, uInt maskSize) |
Filters an image using a Gaussian kernel. | |
void | FilterGauss (const QVImage< sFloat > &src, QVImage< sFloat > &dest, uInt maskSize) |
Filters an image using a Gaussian kernel. | |
void | FilterHipass (const QVImage< uChar > &src, QVImage< uChar > &dest, uInt maskSize=3) |
Filters an image using a high-pass filter. | |
void | FilterHipass (const QVImage< sFloat > &src, QVImage< sFloat > &dest, uInt maskSize=3) |
Filters an image using a high-pass filter. | |
void | FilterLowpass (const QVImage< uChar > &src, QVImage< uChar > &dest, uInt maskSize=3) |
Filters an image using a lowpass filter. | |
void | FilterLowpass (const QVImage< sFloat > &src, QVImage< sFloat > &dest, uInt maskSize=3) |
Filters an image using a lowpass filter. | |
void | FilterSharpen (const QVImage< uChar > &src, QVImage< uChar > &dest) |
Filters an image using a sharpening filter. | |
void | FilterSharpen (const QVImage< sFloat > &src, QVImage< sFloat > &dest) |
Filters an image using a sharpening filter. | |
void | FilterSobelHoriz (const QVImage< uChar > &src, QVImage< uChar > &dest) |
Filters an image using a horizontal Sobel kernel. | |
void | FilterSobelHoriz (const QVImage< sShort > &src, QVImage< sShort > &dest) |
Filters an image using a horizontal Sobel kernel. | |
void | FilterSobelHoriz (const QVImage< sFloat > &src, QVImage< sFloat > &dest) |
Filters an image using a horizontal Sobel kernel. | |
void | FilterSobelVert (const QVImage< uChar > &src, QVImage< uChar > &dest) |
Filters an image using a vertical Sobel kernel. | |
void | FilterSobelVert (const QVImage< sShort > &src, QVImage< sShort > &dest) |
Filters an image using a vertical Sobel kernel. | |
void | FilterSobelVert (const QVImage< sFloat > &src, QVImage< sFloat > &dest) |
Filters an image using a vertical Sobel kernel. | |
void | FilterSobelHorizMask (const QVImage< sFloat > &src, QVImage< sFloat > &dest, uInt maskSize=3) |
Filters an image using a horizontal Sobel kernel. | |
void | FilterSobelVertMask (const QVImage< sFloat > &src, QVImage< sFloat > &dest, uInt maskSize=3) |
Filters an image using a vertical Sobel kernel. | |
void | FilterSobelHorizBorder (const QVImage< uChar > &src, QVImage< sShort > &dest, QVImage< uChar > &buffer, uInt maskSize=3) |
Applies horizontal Sobel filter with border. | |
void | FilterSobelNegVertBorder (const QVImage< uChar > &src, QVImage< sShort > &dest, QVImage< uChar > &buffer, uInt maskSize=3) |
Applies vertical Sobel filter with border. | |
void | FilterMedian (const QVImage< uChar > &src, QVImage< uChar > &dest, uInt colMaskRadius=3, uInt rowMaskRadius=3) |
Filters an image using a median filter. | |
void | FilterMedian (const QVImage< sShort > &src, QVImage< sShort > &dest, uInt colMaskRadius=3, uInt rowMaskRadius=3) |
Filters an image using a median filter. | |
void | Resize (const QVImage< uChar > &src, QVImage< uChar > &dest, int interpolation=IPPI_INTER_LINEAR) |
Changes an image size. | |
void | Resize (const QVImage< sFloat > &src, QVImage< sFloat > &dest, int interpolation=IPPI_INTER_LINEAR) |
Changes an image size. | |
void | FilterSobelHorizGetBufferSize (const QVGenericImage &src, QVImage< uChar > &buffer, uInt maskSize=3) |
Allocates size in a buffer image for temporary data for function FilterSobelHoriz. | |
void | FilterSobelNegVertGetBufferSize (const QVGenericImage &src, QVImage< uChar > &buffer, uInt maskSize=3) |
Allocates size in a buffer image for temporary data for function FilterSobelNegVert. | |
void | FloodFillRange (QVImage< uChar > &img, QVImage< uChar > &buffer, uInt seedX, uInt seedY, uChar newVal, uChar minDelta, uChar maxDelta) |
Performs flood filling of pixels with values in the specified range in the connected area on an image. | |
void | FilterGaussBorder (const QVImage< sFloat, 1 > &src, QVImage< sFloat, 1 > &dest, QVImage< uChar > &buffer, sInt kernelSize, sFloat sigma, IppiBorderType borderType=ippBorderConst, sFloat borderValue=0.0) |
Applies Gauss filter with border. | |
void | FindPeaks3x3 (const QVImage< sInt, 1 > &img, QVImage< uChar > &buffer, QList< QPoint > &points, sInt threshold, IppiNorm norm, uInt border, uInt maxPeakCount) |
Finds coordinates of peaks (maximums or minimums) with absolute value exceeding threshold value. | |
void | FindPeaks3x3 (const QVImage< sFloat, 1 > &img, QVImage< uChar > &buffer, QList< QPoint > &points, sFloat threshold, IppiNorm norm, uInt border, uInt maxPeakCount) |
Finds coordinates of peaks (maximums or minimums) with absolute value exceeding threshold value. | |
void | FindPeaks3x3GetBufferSize (const QVImage< sInt, 1 > &image, QVImage< uChar > &buffer) |
Computes the size of the working buffer for the peak search. | |
void | FindPeaks3x3GetBufferSize (const QVImage< sFloat, 1 > &image, QVImage< uChar > &buffer) |
Computes the size of the working buffer for the peak search. |
Computes absolute pixel values of a source image and places them into the destination image.
Computes absolute pixel values of a source image and places them into the destination image.
src | source image. | |
dest | destination image. |
void qvipp::AbsDiff | ( | const QVImage< sFloat > & | src1, | |
const QVImage< sFloat > & | src2, | |||
QVImage< sFloat > & | dest | |||
) |
Calculates absolute difference between two images.
void qvipp::AbsDiff | ( | const QVImage< uChar > & | src1, | |
const QVImage< uChar > & | src2, | |||
QVImage< uChar > & | dest | |||
) |
Calculates absolute difference between two images.
This function calculates the absolute pixel-wise difference between two images by the formula:
dest(x,y) = abs(src1(x,y) - src2(x,y))
src1 | source image to use pixels as first operands in subtraction. | |
src2 | source image to use pixels as second operands in subtraction. | |
dest | destination image to hold result pixels of operation. |
void qvipp::Add | ( | const QVImage< sFloat, 3 > & | src1, | |
const QVImage< sFloat, 3 > & | src2, | |||
QVImage< sFloat, 3 > & | dest | |||
) |
Adds pixel values of two images.
void qvipp::Add | ( | const QVImage< sFloat > & | src1, | |
const QVImage< sFloat > & | src2, | |||
QVImage< sFloat > & | dest | |||
) |
Adds pixel values of two images.
void qvipp::Add | ( | const QVImage< sShort, 3 > & | src1, | |
const QVImage< sShort, 3 > & | src2, | |||
QVImage< sShort, 3 > & | dest, | |||
int | scale = 1 | |||
) |
Adds pixel values of two images.
void qvipp::Add | ( | const QVImage< sShort > & | src1, | |
const QVImage< sShort > & | src2, | |||
QVImage< sShort > & | dest, | |||
int | scale = 1 | |||
) |
Adds pixel values of two images.
void qvipp::Add | ( | const QVImage< uChar, 3 > & | src1, | |
const QVImage< uChar, 3 > & | src2, | |||
QVImage< uChar, 3 > & | dest, | |||
int | scale = 1 | |||
) |
Adds pixel values of two images.
void qvipp::Add | ( | const QVImage< uChar > & | src1, | |
const QVImage< uChar > & | src2, | |||
QVImage< uChar > & | dest, | |||
int | scale = 1 | |||
) |
Adds pixel values of two images.
This function adds corresponding pixel values of two source image buffers and places the results in a destination buffer. Saturation and scaling is used for integer data (uChar, sShort, etc...).
Scaling is done by multiplying the output pixel values by 2-scale before the function returns. This helps retain either the output data range or its precision. Usually the scaling with a positive factor is performed by the shift operation. Then, the result is rounded off to the nearest integer number.
src1 | source image to use pixels as first operands in add. | |
src2 | source image to use pixels as second operands in add. | |
dest | destination image to hold result pixels of add. | |
scale | value to perform scaling of resulting pixel values, for integer bit depth. |
Adds a constant to pixel values of an image.
void qvipp::AddC | ( | const QVImage< sShort > & | src, | |
QVImage< sShort > & | dest, | |||
sShort | constant, | |||
int | scale = 1 | |||
) |
Adds a constant to pixel values of an image.
void qvipp::AddC | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uChar | constant, | |||
int | scale = 1 | |||
) |
Adds a constant to pixel values of an image.
This function changes the image intensity by adding the value to image pixel values. Saturation and scaling is used for integer data (uChar, sShort, etc...).
Scaling is done by multiplying the output pixel values by 2-scale before the function returns. This helps retain either the output data range or its precision. Usually the scaling with a positive factor is performed by the shift operation. Then, the result is rounded off to the nearest integer number.
src | source image to use pixels as first operands in add. | |
dest | destination image to hold result pixels of add. | |
constant | value to use as second operand in add. | |
scale | value to perform scaling of resulting pixel values, for integer bit depth. |
Performs a bit-wise AND operation between each pixel of an image and a constant.
src | source image to perform bit-wise AND operation on. | |
dest | destination image to hold result of bit-wise operation. | |
constant | value to perform bit-wise operation with. |
void qvipp::Canny | ( | QVImage< sFloat > & | dX, | |
QVImage< sFloat > & | dY, | |||
QVImage< uChar > & | dest, | |||
QVImage< uChar > & | buffer, | |||
double | low = 50.0 , |
|||
double | high = 150.0 | |||
) |
Performs Canny algorithm for edge detection.
Definition at line 585 of file qvipp.cpp.
References Canny(), CHECK_COMPATIBLE_IMAGES, QVGenericImage::getAnchor(), QVGenericImage::getROI(), QVImage< Type, Planes >::getStep(), QVImage< Type, Planes >::getWriteData(), IMAGE_ROISIZE, IPP_DEBUG, PDATA_WRITE, and QVGenericImage::setROI().
void qvipp::Canny | ( | QVImage< sShort > & | dX, | |
QVImage< sShort > & | dY, | |||
QVImage< uChar > & | dest, | |||
QVImage< uChar > & | buffer, | |||
double | low = 50.0 , |
|||
double | high = 150.0 | |||
) |
Performs Canny algorithm for edge detection.
This function finds edges in the source image ROI and stores them into the output image dest using the Canny algorithm.
The function requires a temporary buffer image, that should have been initialized with CannyGetSize function.
Images dX and dY should be filtered images from the original, from which we desire to obtain the contours, using horizontal and vertical Sobel filters.
A code example of a full canny extractor, given a source image, is described in the code below:
[...] QVImage<sFloat> imageFloat(cols, rows), dX(cols, rows), dY(cols, rows); QVImage<uChar> canny(cols, rows), buffer; qvipp::Convert(image, imageFloat); qvipp::FilterSobelHorizMask(imageFloat,dY,3); qvipp::FilterSobelVertMask(imageFloat,dX,3); qvipp::CannyGetSize(canny, buffer); qvipp::Canny(dX, dY, canny, buffer); [...]
dX | source image x-derivative. | |
dY | source image y-derivative. | |
dest | output image of the detected edges. | |
buffer | image to hold temporary data during function operations. | |
low | lower threshold for edges detection. | |
high | upper threshold for edges detection. |
Definition at line 571 of file qvipp.cpp.
References CHECK_COMPATIBLE_IMAGES, QVGenericImage::getAnchor(), QVGenericImage::getROI(), QVImage< Type, Planes >::getStep(), QVImage< Type, Planes >::getWriteData(), IMAGE_ROISIZE, IPP_DEBUG, PDATA_WRITE, and QVGenericImage::setROI().
Referenced by Canny().
void qvipp::CannyGetSize | ( | const QVGenericImage & | src, | |
QVImage< uChar > & | buffer | |||
) |
Allocates size in a buffer image for temporary data for function Canny.
This function should be applied to any QVImage<uChar> image to be used as a buffer image for function Canny. Initializes dimensions for that buffer image, appropriated for canny algorithm.
src | source image to apply later Canny operator. | |
buffer | buffer image to initialize for further operations. |
Definition at line 564 of file qvipp.cpp.
References IMAGE_ROISIZE, and IPP_DEBUG.
Referenced by FastMarchingGetBufferSize(), and FloodFillGetSize().
void qvipp::Compare | ( | const QVImage< sFloat, 3 > & | src1, | |
const QVImage< sFloat, 3 > & | src2, | |||
QVImage< uChar > & | dest, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Compares pixel values of two images using a specified compare operation.
void qvipp::Compare | ( | const QVImage< sShort, 3 > & | src1, | |
const QVImage< sShort, 3 > & | src2, | |||
QVImage< uChar > & | dest, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Compares pixel values of two images using a specified compare operation.
void qvipp::Compare | ( | const QVImage< uChar, 3 > & | src1, | |
const QVImage< uChar, 3 > & | src2, | |||
QVImage< uChar > & | dest, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Compares pixel values of two images using a specified compare operation.
void qvipp::Compare | ( | const QVImage< sFloat > & | src1, | |
const QVImage< sFloat > & | src2, | |||
QVImage< uChar > & | dest, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Compares pixel values of two images using a specified compare operation.
void qvipp::Compare | ( | const QVImage< sShort > & | src1, | |
const QVImage< sShort > & | src2, | |||
QVImage< uChar > & | dest, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Compares pixel values of two images using a specified compare operation.
void qvipp::Compare | ( | const QVImage< uChar > & | src1, | |
const QVImage< uChar > & | src2, | |||
QVImage< uChar > & | dest, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Compares pixel values of two images using a specified compare operation.
This function compares the corresponding pixels of ROI in two source images src1, src2 using the ippCmpOp compare operation, and writes the results to a 1-channel uChar image dest.
If the result of the compare is true, the corresponding output pixel is set to an IPP_MAX_8U value; otherwise, it is set to 0.
src1 | first operand in comparison image. | |
src2 | second operand in comparison image. | |
dest | image to store comparison value pixels. | |
ippCmpOp | Compare operation to be used for comparing the pixel values. Must be one of these enumerated values:
|
void qvipp::CompareC | ( | const QVImage< sFloat > & | src, | |
QVImage< uChar > & | dest, | |||
sFloat | constant, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Compares pixel values of a source image to a given value using a specified compare operation.
void qvipp::CompareC | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uChar | constant, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Compares pixel values of a source image to a given value using a specified compare operation.
This function compares pixels of the each channel of the source image ROI src to a given value specified for each channel using the ippCmpOp compare operation, and writes the results to a 1-channel Ipp8u image dest.
If the result of the compare is true, that is all pixels of all channels satisfy to the specified condition, then the corresponding output pixel is set to an IPP_MAX_8U value; otherwise, it is set to 0.
src | image to compare pixel values. | |
dest | image to store pixel comparison values. | |
constant | value to compare each pixel value. | |
ippCmpOp | Compare operation to be used for comparing the pixel values. Must be one of these enumerated values:
|
void qvipp::Convert | ( | const QVImage< sFloat, 3 > & | src, | |
QVImage< sShort, 3 > & | dest, | |||
IppRoundMode | roundMode = ippRndNear | |||
) |
Converts a image from a floating point bit depth to a integer bit depth, using a given round mode.
void qvipp::Convert | ( | const QVImage< sFloat, 3 > & | src, | |
QVImage< uChar, 3 > & | dest, | |||
IppRoundMode | roundMode = ippRndNear | |||
) |
Converts a image from a floating point bit depth to a integer bit depth, using a given round mode.
void qvipp::Convert | ( | const QVImage< sFloat, 1 > & | src, | |
QVImage< sShort, 1 > & | dest, | |||
IppRoundMode | roundMode = ippRndNear | |||
) |
Converts a image from a floating point bit depth to a integer bit depth, using a given round mode.
void qvipp::Convert | ( | const QVImage< sFloat, 1 > & | src, | |
QVImage< uChar, 1 > & | dest, | |||
IppRoundMode | roundMode = ippRndNear | |||
) |
Converts a image from a floating point bit depth to a integer bit depth, using a given round mode.
This function converts pixel values in the source image ROI pSrc to a different bit depth and writes them to the destination image ROI pDst. No scaling is done.
Rounding defined by roundMode is performed, and the result is saturated to the destination data type range.
src | image to convert bit depth. | |
dest | image to store resulting bit depth image conversion. | |
roundMode | specified round mode. Possible values for the enumeration are:
|
Converts a image from one bit depth to another.
Converts a image from one bit depth to another.
Converts a image from one bit depth to another.
Converts a image from one bit depth to another.
Converts a image from one bit depth to another.
Converts a image from one bit depth to another.
Converts a image from one bit depth to another.
Converts a image from one bit depth to another.
This function converts pixel values in the source image ROI pSrc to a different bit depth and writes them to the destination image ROI pDst. No scaling is done.
src | image to convert bit depth. | |
dest | image to store resulting bit depth image conversion. |
Copies pixel values from a 1-channel image to all of the channels for a 3-channel image.
Copies pixel values from a 1-channel image to all of the channels for a 3-channel image.
Copies pixel values from a 1-channel image to all of the channels for a 3-channel image.
This function copies data from a source 1-channel image ROI src, to each of the channels of the destination 3-channel image ROI dest.
src | source image. | |
dest | destination image. |
Copies pixel values between two images.
Copies pixel values between two images.
Copies pixel values between two images.
Copies pixel values between two images.
Copies pixel values between two images.
Copies pixel values between two images.
This function copies data from a source image ROI src to the destination image ROI dest.
src | source image. | |
dest | destination image. |
void qvipp::Div | ( | const QVImage< sFloat, 3 > & | src1, | |
const QVImage< sFloat, 3 > & | src2, | |||
QVImage< sFloat, 3 > & | dest | |||
) |
Divides pixel values of an image by pixel values of another image.
void qvipp::Div | ( | const QVImage< sFloat > & | src1, | |
const QVImage< sFloat > & | src2, | |||
QVImage< sFloat > & | dest | |||
) |
Divides pixel values of an image by pixel values of another image.
void qvipp::Div | ( | const QVImage< sShort, 3 > & | src1, | |
const QVImage< sShort, 3 > & | src2, | |||
QVImage< sShort, 3 > & | dest, | |||
int | scale = 1 | |||
) |
Divides pixel values of an image by pixel values of another image.
void qvipp::Div | ( | const QVImage< sShort > & | src1, | |
const QVImage< sShort > & | src2, | |||
QVImage< sShort > & | dest, | |||
int | scale = 1 | |||
) |
Divides pixel values of an image by pixel values of another image.
void qvipp::Div | ( | const QVImage< uChar, 3 > & | src1, | |
const QVImage< uChar, 3 > & | src2, | |||
QVImage< uChar, 3 > & | dest, | |||
int | scale = 1 | |||
) |
Divides pixel values of an image by pixel values of another image.
void qvipp::Div | ( | const QVImage< uChar > & | src1, | |
const QVImage< uChar > & | src2, | |||
QVImage< uChar > & | dest, | |||
int | scale = 1 | |||
) |
Divides pixel values of an image by pixel values of another image.
This function divides corresponding pixel values of two source image buffers and places the results in a destination buffer. Saturation and scaling is used for integer data (uChar, sShort, etc...).
Scaling is done by multiplying the output pixel values by 2-scale before the function returns. This helps retain either the output data range or its precision. Usually the scaling with a positive factor is performed by the shift operation. Then, the result is rounded off to the nearest integer number.
src1 | source image to use pixels as dividends in division. | |
src2 | source image to use pixels as divisors in division. | |
dest | destination image to hold result pixels of division. | |
scale | value to perform scaling of resulting pixel values, for integer bit depth. |
Divides pixel values of an image by a constant.
void qvipp::DivC | ( | const QVImage< sShort > & | src, | |
QVImage< sShort > & | dest, | |||
sShort | constant, | |||
int | scale = 1 | |||
) |
Divides pixel values of an image by a constant.
void qvipp::DivC | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uChar | constant, | |||
int | scale = 1 | |||
) |
Divides pixel values of an image by a constant.
This function changes image intensity by dividing pixel values of an image buffer by the constant value. Saturation and scaling is used for integer data (uChar, sShort, etc...).
Scaling is done by multiplying the output pixel values by 2-scale before the function returns. This helps retain either the output data range or its precision. Usually the scaling with a positive factor is performed by the shift operation. Then, the result is rounded off to the nearest integer number.
src | source image to use pixels as first operands in multiplication. | |
dest | destination image to hold result pixels of multiplication. | |
constant | value to use as second operand in multiplication. | |
scale | value to perform scaling of resulting pixel values, for integer bit depth. |
void qvipp::FastMarching | ( | const QVImage< uChar > & | mask, | |
QVImage< sFloat > & | distances, | |||
int | radius, | |||
QVImage< uChar > & | buffer | |||
) |
Calculates distance transform to closest zero pixel for all non-zero pixels of source image using fast marching method.
This function computes the distance from the closest zero pixel to each image pixel according to the Fast Marching Method (FMM). For further info, see:
A.Telea. An Image Inprinting Technique Based on the Fast Marching Method. Journal of Graphic Tools, vol.9, No.1. ACM Press, 2004.
mask | source image to obtain distances to closest zero pixel. | |
distances | image to hold distances to closest zero pixel. | |
radius | Radius of the neighborhood of the marked area. | |
buffer | image to hold temporary data during function operations. |
Definition at line 621 of file qvipp.cpp.
References QVGenericImage::getAnchor(), QVGenericImage::getROI(), QVImage< Type, Planes >::getStep(), QVImage< Type, Planes >::getWriteData(), IMAGE_ROISIZE, IPP_DEBUG, PDATA_READ, PDATA_WRITE, and QVGenericImage::setROI().
void qvipp::FastMarchingGetBufferSize | ( | const QVGenericImage & | image, | |
QVImage< uChar > & | buffer | |||
) |
Allocates size in a buffer image for temporary data for function FastMarching.
This function should be applied to any QVImage<uChar> image to be used as a buffer image for function FastMarching. Initializes dimensions for that buffer image, appropriated for that algorithm.
image | source image to apply Fast Marching algorithm. | |
buffer | buffer image to initialize for further operations. |
Definition at line 614 of file qvipp.cpp.
References CannyGetSize(), IMAGE_ROISIZE, and IPP_DEBUG.
void qvipp::FilterBox | ( | const QVImage< sFloat > & | src, | |
QVImage< sFloat > & | dest, | |||
uInt | colMaskRadius, | |||
uInt | rowMaskRadius | |||
) |
Blurs an image using a simple box filter.
void qvipp::FilterBox | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uInt | colMaskRadius, | |||
uInt | rowMaskRadius | |||
) |
Blurs an image using a simple box filter.
This function sets each pixel in the output image as the average of all the input image pixels in the rectangular neighborhood of size mask size given.
This has the effect of smoothing or blurring the input image.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
colMaskSize | mask width. | |
rowMaskSize | mask height. |
Filters an image using a Gaussian kernel.
Filters an image using a Gaussian kernel.
This function applies a lowpass Gaussian filter to an image ROI. The corresponding kernel is the matrix of either 3x3 or 5x5 size. The 3x3 filter uses the kernel:
These filter coefficients correspond to a 2-dimensional Gaussian distribution with standard deviation 0.85.
The 5x5 filter uses the kernel:
These filter coefficients correspond to a 2-dimensional Gaussian distribution with standard deviation 1.0.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
maskSize | size of mask. Should be 3 (for mask of size 3x3) or 5 (for mask of size 5x5). |
void qvipp::FilterGaussBorder | ( | const QVImage< sFloat, 1 > & | src, | |
QVImage< sFloat, 1 > & | dest, | |||
QVImage< uChar > & | buffer, | |||
sInt | kernelSize, | |||
sFloat | sigma, | |||
IppiBorderType | borderType = ippBorderConst , |
|||
sFloat | borderValue = 0.0 | |||
) |
Applies Gauss filter with border.
This function applies the Gaussian filter to the source image ROI pSrc. The kernel of this filter is the matrix of size with the standard deviation
. The values of the elements of the Gaussian kernel are calculated according to the formula:
and then are normalized. The function requires a working image buffer whose size should be computed by the function FilterGaussGetBufferSize beforehand.
src | source image to apply filter | |
dest | resulting image. | |
buffer | buffer image initiated beforehand by the function FilterGaussGetBufferSize. | |
kernelSize | specifies the size of the Gaussian kernel, must be odd and greater than or equal to 3. | |
sigma | standard deviation of the Gaussian kernel. | |
borderType | type of border. Following values are possible:
| |
borderValue | The constant value to assign to the pixels in the constant border (not applicable for other border’s type). |
void qvipp::FilterGaussGetBufferSize | ( | const QVGenericImage & | image, | |
QVImage< uChar > & | buffer, | |||
uInt | kernelSize | |||
) |
Computes the size of the external buffer for the Gaussian filter with border.
This function computes the size of the external buffer that is required for the filter function FilterGaussBorder. This buffer can be used to filter an image whose width and height are equal to or less than param QVGenericImage image, and the kernel size is equal to or less than kernelSize.
src | source image to apply later filter. | |
buffer | buffer image to initialize for further operations. | |
kernelSize | Size of the Gaussian kernel, odd, greater than or equal to 3. |
Definition at line 550 of file qvipp.cpp.
References IMAGE_ROISIZE, and IPP_DEBUG.
void qvipp::FilterHipass | ( | const QVImage< sFloat > & | src, | |
QVImage< sFloat > & | dest, | |||
uInt | maskSize = 3 | |||
) |
Filters an image using a high-pass filter.
void qvipp::FilterHipass | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uInt | maskSize = 3 | |||
) |
Filters an image using a high-pass filter.
This function applies a high-pass filter to an image ROI. The corresponding kernel is the matrix of either 3x3 or 5x5 size with the following values:
for 3x3 size, or
For 5x5 size. This filter attenuates low-frequency components and thus sharpens an image.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
maskSize | size of mask. Should be 3 (for mask of size 3x3) or 5 (for mask of size 5x5). |
void qvipp::FilterLowpass | ( | const QVImage< sFloat > & | src, | |
QVImage< sFloat > & | dest, | |||
uInt | maskSize = 3 | |||
) |
Filters an image using a lowpass filter.
void qvipp::FilterLowpass | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uInt | maskSize = 3 | |||
) |
Filters an image using a lowpass filter.
This filter blurs an image by averaging the pixel values over some neighborhood. It works similar to FilterBox function, but uses two fixed mask sizes: 3x3, or 5x5.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
maskSize | size of mask. Should be 3 (for mask of size 3x3) or 5 (for mask of size 5x5). |
void qvipp::FilterMax | ( | const QVImage< sFloat > & | src, | |
QVImage< sFloat > & | dest, | |||
uInt | colMaskSize, | |||
uInt | rowMaskSize | |||
) |
Applies the max filter to an image.
void qvipp::FilterMax | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uInt | colMaskSize, | |||
uInt | rowMaskSize | |||
) |
Applies the max filter to an image.
This function sets each pixel in the destination image to the maximum value of all the source image pixel values in the neighborhood of mask size given.
This has the effect of increasing the contrast in the image.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
colMaskSize | mask width. | |
rowMaskSize | mask height. |
void qvipp::FilterMedian | ( | const QVImage< sShort > & | src, | |
QVImage< sShort > & | dest, | |||
uInt | colMaskRadius = 3 , |
|||
uInt | rowMaskRadius = 3 | |||
) |
Filters an image using a median filter.
void qvipp::FilterMedian | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uInt | colMaskRadius = 3 , |
|||
uInt | rowMaskRadius = 3 | |||
) |
Filters an image using a median filter.
This function sets each pixel in the output buffer as the median value of all the input pixel values taken in the neighborhood of the processed pixel.
This filter removes noise and does not cut out signal brightness drops, as an averaging filter does.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
colMaskSize | mask width. | |
rowMaskSize | mask height. |
void qvipp::FilterMin | ( | const QVImage< sFloat > & | src, | |
QVImage< sFloat > & | dest, | |||
uInt | colMaskSize, | |||
uInt | rowMaskSize | |||
) |
Applies the min filter to an image.
void qvipp::FilterMin | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uInt | colMaskSize, | |||
uInt | rowMaskSize | |||
) |
Applies the min filter to an image.
This function sets each pixel in the destination image to the minimum value of all the source image pixel values in the neighborhood of mask size given.
This has the effect of decreasing the contrast in the image.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
colMaskSize | mask width. | |
rowMaskSize | mask height. |
Filters an image using a sharpening filter.
Filters an image using a sharpening filter.
This function applies a sharpening filter to an image ROI. The corresponding kernel is the matrix of 3x3 size with the following values:
This filter enhances high-frequency components and thus sharpens an image.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. |
Filters an image using a horizontal Sobel kernel.
Filters an image using a horizontal Sobel kernel.
Filters an image using a horizontal Sobel kernel.
This function apply a horizontal Sobel operator to an image ROI.
This filter has the effect of both enhancing and smoothing horizontal edges of an image.
Warning: this function is not working properly. It will be repaired, for now better use function FilterSobelHorizMask
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. |
void qvipp::FilterSobelHorizBorder | ( | const QVImage< uChar > & | src, | |
QVImage< sShort > & | dest, | |||
QVImage< uChar > & | buffer, | |||
uInt | maskSize = 3 | |||
) |
Applies horizontal Sobel filter with border.
This function is similar to FilterSobelHorizMask, but automatically creates a required border and define appropriate pixel values.
Function FilterSobelHorizGetBufferSize should be used to initialize sizes for a buffer QVImage<uChar> image, which will hold temporary data for the function operations.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
buffer | buffer image to hold temporal data during function operation. | |
maskSize | size of mask. Should be 3 (for mask of size 3x3) or 5 (for mask of size 5x5). |
void qvipp::FilterSobelHorizGetBufferSize | ( | const QVGenericImage & | src, | |
QVImage< uChar > & | buffer, | |||
uInt | maskSize = 3 | |||
) |
Allocates size in a buffer image for temporary data for function FilterSobelHoriz.
This function should be applied to any QVImage<uChar> image to be used as a buffer image for function FilterSobelHoriz. Initializes dimensions for that buffer image, appropriated for that algorithm.
src | source image to apply later filter. | |
buffer | buffer image to initialize for further operations. | |
maskSize | size of mask. Should be 3 (for mask of size 3x3) or 5 (for mask of size 5x5). |
void qvipp::FilterSobelHorizMask | ( | const QVImage< sFloat > & | src, | |
QVImage< sFloat > & | dest, | |||
uInt | maskSize = 3 | |||
) |
Filters an image using a horizontal Sobel kernel.
This function apply a horizontal Sobel operator to an image ROI.
The appropriate kernel is the matrix of 3x3 size, or either 3x3 or 5x5 size in accordance with mask parameter of the corresponding function flavors. The kernels have the following values:
for 3x3 size, or
For 5x5 size. This filter has the effect of both enhancing and smoothing horizontal edges of an image.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
maskSize | size of mask. Should be 3 (for mask of size 3x3) or 5 (for mask of size 5x5). |
Referenced by qvdta::SobelCornerResponseImage().
void qvipp::FilterSobelNegVertBorder | ( | const QVImage< uChar > & | src, | |
QVImage< sShort > & | dest, | |||
QVImage< uChar > & | buffer, | |||
uInt | maskSize = 3 | |||
) |
Applies vertical Sobel filter with border.
This function is similar to FilterSobelVertMask, but uses negative values for the mask applied, and automatically create a required border and define appropriate pixel values.
Function FilterSobelNegVertGetBufferSize should be used to initialize sizes for a buffer QVImage<uChar> image, which will hold temporary data for the function operations.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
buffer | buffer image to hold temporal data during function operation. | |
maskSize | size of mask. Should be 3 (for mask of size 3x3) or 5 (for mask of size 5x5). |
void qvipp::FilterSobelNegVertGetBufferSize | ( | const QVGenericImage & | src, | |
QVImage< uChar > & | buffer, | |||
uInt | maskSize = 3 | |||
) |
Allocates size in a buffer image for temporary data for function FilterSobelNegVert.
This function should be applied to any QVImage<uChar> image to be used as a buffer image for function FilterSobelNegVert. Initializes dimensions for that buffer image, appropriated for that algorithm.
src | source image to apply later filter. | |
buffer | buffer image to initialize for further operations. | |
maskSize | size of mask. Should be 3 (for mask of size 3x3) or 5 (for mask of size 5x5). |
Filters an image using a vertical Sobel kernel.
Filters an image using a vertical Sobel kernel.
Filters an image using a vertical Sobel kernel.
This function apply a vertical Sobel operator to an image ROI.
This filter has the effect of both enhancing and smoothing vertical edges of an image.
Warning: this function is not working properly. It will be repaired, for now better use function FilterSobelVertMask
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. |
void qvipp::FilterSobelVertMask | ( | const QVImage< sFloat > & | src, | |
QVImage< sFloat > & | dest, | |||
uInt | maskSize = 3 | |||
) |
Filters an image using a vertical Sobel kernel.
This function apply a vertical Sobel operator to an image ROI. The appropriate kernel is the matrix of 3x3 size, or either 3x3 or 5x5 size in accordance with mask parameter of the corresponding function flavors. The kernels have the following values:
for 3x3 size, or
For 5x5 size. This filter has the effect of both enhancing and smoothing vertical edges of an image.
src | source image to filter. | |
dest | destination image to hold the resulting image after filtering. | |
maskSize | size of mask. Should be 3 (for mask of size 3x3) or 5 (for mask of size 5x5). |
Referenced by qvdta::SobelCornerResponseImage().
void qvipp::FindPeaks3x3 | ( | const QVImage< sFloat, 1 > & | img, | |
QVImage< uChar > & | buffer, | |||
QList< QPoint > & | points, | |||
sFloat | threshold, | |||
IppiNorm | norm, | |||
uInt | border, | |||
uInt | maxPeakCount | |||
) |
Finds coordinates of peaks (maximums or minimums) with absolute value exceeding threshold value.
void qvipp::FindPeaks3x3 | ( | const QVImage< sInt, 1 > & | img, | |
QVImage< uChar > & | buffer, | |||
QList< QPoint > & | points, | |||
sInt | threshold, | |||
IppiNorm | norm, | |||
uInt | border, | |||
uInt | maxPeakCount | |||
) |
Finds coordinates of peaks (maximums or minimums) with absolute value exceeding threshold value.
This function detects local maximum pixels in the source image, and stores their coordinates in the points point list. The neighborhood O(i, j) for the search is defined by the parameter norm. The number of detected maximums is returned in pPeakCount[0]. The operation is stopped The function requires a working image buffer whose size should be computed by the function FindPeaks3x3GetBufferSize beforehand.
img | image to obtain from peaks. | |
buffer | buffer image initiated beforehand by the function FindPeaks3x3GetBufferSize. | |
points | QPoint list to store the resulting point list. | |
threshold | threshold value. | |
norm | Specifies type of the norm to form the mask for maximum search:
| |
border | Border value, only pixel with distance from the edge of the image greater than border are processed. | |
maxPeakCount | Maximum number of peaks. |
void qvipp::FindPeaks3x3GetBufferSize | ( | const QVImage< sFloat, 1 > & | image, | |
QVImage< uChar > & | buffer | |||
) |
Computes the size of the working buffer for the peak search.
void qvipp::FindPeaks3x3GetBufferSize | ( | const QVImage< sInt, 1 > & | image, | |
QVImage< uChar > & | buffer | |||
) |
Computes the size of the working buffer for the peak search.
This function computes the size of the working image buffer required for the function FindPeaks3x3. The image buffer can be used to filter images with ROI width that is less than or equal to the image ROI width.
image | source image to apply later filter. | |
buffer | buffer image to initialize for further operations. |
void qvipp::FloodFillGetSize | ( | const QVGenericImage & | src, | |
QVImage< uChar > & | buffer | |||
) |
Allocates size in a buffer image for temporary data for function family FloodFill.
This function should be applied to any QVImage<uChar> image to be used as a buffer image for function family FloodFill. Initializes dimensions for that buffer image, appropriated for that algorithm.
src | source image to apply later flood fill function. | |
buffer | buffer image to initialize for further operations. |
Definition at line 697 of file qvipp.cpp.
References CannyGetSize(), IMAGE_ROISIZE, and IPP_DEBUG.
void qvipp::FloodFillRange | ( | QVImage< uChar > & | img, | |
QVImage< uChar > & | buffer, | |||
uInt | seedX, | |||
uInt | seedY, | |||
uChar | newVal, | |||
uChar | minDelta, | |||
uChar | maxDelta | |||
) |
Performs flood filling of pixels with values in the specified range in the connected area on an image.
This function performs flood filling of the group of connected pixels in the seed pixel neighborhoods whose pixel values satisfies the following condition:
where is the pixel value of the seed point. Values of these pixel is set to the newVal value.
The function requires a temporary buffer whose size should be computed with the function ippiFloodFillGetSize beforehand.
img | image to flood fill. | |
buffer | temporary buffer image previously initialized with FloodFillGetSize. | |
seedX | column coordinate for the seed. | |
seedY | row coordinate for the seed. | |
newVal | Value to fill with for one-channel data. | |
minDelta | Minimum difference between neighbor pixels for one-channel data. | |
maxDelta | Maximum difference between neighbor pixels for one-channel data. |
QMap< sInt, int > qvipp::HistogramRange | ( | const QVImage< uChar, 1 > & | src, | |
QList< uChar > | values = QList< uChar >() | |||
) |
Calculates frequency histogram for a given set of values, for a QVImage.
This function computes the intensity histogram of an image in the ranges specified by the QList 'values'. Default value for this QList is empty list, indicating the set of integer which cover the group of valid values for uChar type (from 0 to 255).
Return value is a QMap variable, that maps pixel values, with their frequency of depicting in the image.
src | source image to obtain histogram values. | |
values | list of QVImage data type values, to obtain frequency in histogram. |
Definition at line 667 of file qvipp.cpp.
References QVImage< Type, Planes >::getStep(), IMAGE_ROISIZE, IPP_DEBUG, and PDATA_READ.
Referenced by qvdta::CountingSort().
void qvipp::Inpaint | ( | const QVImage< uChar, 3 > & | src, | |
const QVImage< uChar > & | mask, | |||
const QVImage< sFloat > & | distances, | |||
QVImage< uChar, 3 > & | dest, | |||
int | radius = 4 , |
|||
IppiInpaintFlag | flag = IPP_INPAINT_TELEA | |||
) |
Overload for function Inpaint, for different channel number images.
Definition at line 649 of file qvipp.cpp.
References QVGenericImage::getAnchor(), QVImage< Type, Planes >::getReadData(), QVGenericImage::getROI(), QVImage< Type, Planes >::getStep(), IMAGE_ROISIZE, Inpaint(), IPP_DEBUG, PDATA_READ, PDATA_WRITE, and QVGenericImage::setROI().
void qvipp::Inpaint | ( | const QVImage< uChar > & | src, | |
const QVImage< uChar > & | mask, | |||
const QVImage< sFloat > & | distances, | |||
QVImage< uChar > & | dest, | |||
int | radius = 4 , |
|||
IppiInpaintFlag | flag = IPP_INPAINT_TELEA | |||
) |
Restores unknown image pixels.
This function reconstructs damaged part of the image, or removes a selected object. The image part to restore is defined by the mask image. Different distant transforms can be used, but the Fast Marching Method (implemented by FastMarching function) provides the best results. The order of pixel restoration is defined by the distance through the initialization the inpainting structure pState by the function ippiInpaintInitAlloc. Pixels are restored in according to the growing of their distance value. When a pixel is inpainted, it is treated as the known one. Two algorithms of direct inpainting are supported
A code example to show the use of this function is below:
[...] QVImage<uChar,3> image; // image to inpaint QVImage<uChar> mask; // mask, indicating unknown pixels for image (0 known, >0 unknown) [...] QVImage<uChar> buffer; // temporary buffer for FastMarching function QVImage<sFloat> distances(image.getCols(), image.getRows()); // image to hold distances to zero pixels QVImage<uChar,3> inpaint(image.getCols(),image.getRows()); // inpainted image from original qvipp::FastMarchingGetBufferSize(mask, buffer); // initiating buffer image for FastMarching function qvipp::FastMarching(mask, distances, radius, buffer); // calculating distances to zero pixels for image qvipp::Inpaint(image, mask, distances, inpaint, radius); // inpainting [...]
src | source image to restore. | |
mask | mask image. Values different from zero indicate unknown pixels. | |
distances | image to hold distances to closest zero pixel. Must have been pre-calculated. | |
dest | destination image to hold restored image. | |
radius | Radius of the neighborhood of the marked area, used for inpainting. | |
flag | indicates the algorithm for direct inpainting:
|
Definition at line 631 of file qvipp.cpp.
References QVGenericImage::getAnchor(), QVImage< Type, Planes >::getReadData(), QVGenericImage::getROI(), QVImage< Type, Planes >::getStep(), IMAGE_ROISIZE, IPP_DEBUG, PDATA_READ, PDATA_WRITE, and QVGenericImage::setROI().
Referenced by Inpaint().
Shifts bits in pixel values to the left.
src | source image to perform left shift on. | |
dest | destination image to hold result of left shift. | |
constant | value to perform left shift with. |
void qvipp::Max | ( | const QVImage< sShort, 3 > & | src, | |
sShort & | r, | |||
sShort & | g, | |||
sShort & | b | |||
) |
Computes the maximum of image pixel values, by separate planes.
void qvipp::Max | ( | const QVImage< uChar, 3 > & | src, | |
uChar & | r, | |||
uChar & | g, | |||
uChar & | b | |||
) |
Computes the maximum of image pixel values, by separate planes.
src | source image to compute pixel maximum. | |
red | return value containing the maximum of the values of the pixels of the image for the first channel. | |
green | return value containing the maximum of the values of the pixels of the image for the second channel. | |
blue | return value containing the maximum of the values of the pixels of the image for the third channel. |
void qvipp::Max | ( | const QVImage< sFloat > & | src, | |
sFloat & | value | |||
) |
void qvipp::Max | ( | const QVImage< sShort > & | src, | |
sShort & | value | |||
) |
void qvipp::Max | ( | const QVImage< uChar > & | src, | |
uChar & | value | |||
) |
Computes the maximum of image pixel values.
src | source image to compute pixel maximum. | |
value | return value containing the maximum of the values of the pixels of the image. |
void qvipp::Mean | ( | const QVImage< sShort, 3 > & | src, | |
sDouble & | r, | |||
sDouble & | g, | |||
sDouble & | b | |||
) |
Computes the mean of image pixel values, by separate planes.
void qvipp::Mean | ( | const QVImage< uChar, 3 > & | src, | |
sDouble & | r, | |||
sDouble & | g, | |||
sDouble & | b | |||
) |
Computes the mean of image pixel values, by separate planes.
src | source image to compute pixel mean. | |
red | return value containing the mean of the values of the pixels of the image for the first channel. | |
green | return value containing the mean of the values of the pixels of the image for the second channel. | |
blue | return value containing the mean of the values of the pixels of the image for the third channel. |
void qvipp::Mean | ( | const QVImage< sShort > & | src, | |
sDouble & | value | |||
) |
void qvipp::Mean | ( | const QVImage< uChar > & | src, | |
sDouble & | value | |||
) |
Computes the mean of image pixel values.
src | source image to compute pixel mean. | |
value | return value containing the mean of the values of the pixels of the image. |
void qvipp::Min | ( | const QVImage< sShort, 3 > & | src, | |
sShort & | r, | |||
sShort & | g, | |||
sShort & | b | |||
) |
Computes the minimum of image pixel values, by separate planes.
void qvipp::Min | ( | const QVImage< uChar, 3 > & | src, | |
uChar & | r, | |||
uChar & | g, | |||
uChar & | b | |||
) |
Computes the minimum of image pixel values, by separate planes.
src | source image to compute pixel minimum. | |
red | return value containing the minimum of the values of the pixels of the image for the first channel. | |
green | return value containing the minimum of the values of the pixels of the image for the second channel. | |
blue | return value containing the minimum of the values of the pixels of the image for the third channel. |
void qvipp::Min | ( | const QVImage< sFloat > & | src, | |
sFloat & | value | |||
) |
void qvipp::Min | ( | const QVImage< sShort > & | src, | |
sShort & | value | |||
) |
void qvipp::Min | ( | const QVImage< uChar > & | src, | |
uChar & | value | |||
) |
Computes the minimum of image pixel values.
src | source image to compute pixel minimum. | |
value | return value containing the minimum of the values of the pixels of the image. |
void qvipp::MinEigenVal | ( | const QVImage< uChar > & | src, | |
QVImage< sFloat > & | dest, | |||
QVImage< uChar > & | buffer, | |||
uInt | apertureSize = 3 , |
|||
uInt | avgWindow = 5 , |
|||
IppiKernelType | kernel = ippKernelSobel | |||
) |
Calculates the minimal eigen value of image blocks for corner detection.
This function takes a block around the pixel and computes the first derivatives Dx and Dy.
This operation is performed for every pixel of the image using either Sobel or Scharr kernel in accordance with the kernType parameter.
The size of the Sobel kernel may be specified the parameter apertureSize. If this parameter is set to 3 - the function used 3x3 kernel, if it set to 5 - the function uses 5x5 kernel.
Only 3x3 size is available for the Scharr kernel, therefore the parameter apertureSize must be set to 3 if the Scharr kernel is used.
src | source image. | |
dest | destination image to hold the minimal eigen values. | |
buffer | image to hold temporary data during function operations. | |
apertureSize | Size (in pixels) of the derivative operator used by the function, possible values are 3 or 5. | |
avgWindow | Size of the blurring window in pixels, possible values are 3 (3x3 mask size) or 5 (5x5 mask size). | |
kernel | Specifies the type of kernel used to compute derivatives, possible values are:
|
Definition at line 599 of file qvipp.cpp.
References QVGenericImage::getAnchor(), QVGenericImage::getROI(), QVImage< Type, Planes >::getStep(), QVImage< Type, Planes >::getWriteData(), IMAGE_ROISIZE, IPP_DEBUG, PDATA_READ, PDATA_WRITE, and QVGenericImage::setROI().
Referenced by qvdta::HarrisCornerResponseImage(), and MinEigenValGetBufferSize().
void qvipp::MinEigenValGetBufferSize | ( | const QVGenericImage & | src, | |
QVImage< uChar > & | buffer, | |||
uInt | apertureSize = 5 , |
|||
uInt | avgWindow = 5 | |||
) |
Allocates size in a buffer image for temporary data for function MinEigenValGet.
This function should be applied to any QVImage<uChar> image to be used as a buffer image for function MinEigenVal. Initializes dimensions for that buffer image, appropriated for that algorithm.
src | source image to apply later MinEigenVal function. | |
buffer | buffer image to initialize for further operations. | |
apertureSize | Size (in pixels) of the derivative operator used by the function, possible values are 3 or 5. | |
avgWindow | Size of the blurring window in pixels, possible values are 3 or 5. |
Definition at line 557 of file qvipp.cpp.
References IMAGE_ROISIZE, IPP_DEBUG, and MinEigenVal().
Referenced by qvdta::HarrisCornerResponseImage().
void qvipp::Mul | ( | const QVImage< sFloat, 3 > & | src1, | |
const QVImage< sFloat, 3 > & | src2, | |||
QVImage< sFloat, 3 > & | dest | |||
) |
Multiplies pixel values of two images.
void qvipp::Mul | ( | const QVImage< sFloat > & | src1, | |
const QVImage< sFloat > & | src2, | |||
QVImage< sFloat > & | dest | |||
) |
Multiplies pixel values of two images.
void qvipp::Mul | ( | const QVImage< sShort, 3 > & | src1, | |
const QVImage< sShort, 3 > & | src2, | |||
QVImage< sShort, 3 > & | dest, | |||
int | scale = 1 | |||
) |
Multiplies pixel values of two images.
void qvipp::Mul | ( | const QVImage< sShort > & | src1, | |
const QVImage< sShort > & | src2, | |||
QVImage< sShort > & | dest, | |||
int | scale = 1 | |||
) |
Multiplies pixel values of two images.
void qvipp::Mul | ( | const QVImage< uChar, 3 > & | src1, | |
const QVImage< uChar, 3 > & | src2, | |||
QVImage< uChar, 3 > & | dest, | |||
int | scale = 1 | |||
) |
Multiplies pixel values of two images.
void qvipp::Mul | ( | const QVImage< uChar > & | src1, | |
const QVImage< uChar > & | src2, | |||
QVImage< uChar > & | dest, | |||
int | scale = 1 | |||
) |
Multiplies pixel values of two images.
This function multiplies corresponding pixel values of two source image buffers and places the results in a destination buffer. Saturation and scaling is used for integer data (uChar, sShort, etc...).
Scaling is done by multiplying the output pixel values by 2-scale before the function returns. This helps retain either the output data range or its precision. Usually the scaling with a positive factor is performed by the shift operation. Then, the result is rounded off to the nearest integer number.
src1 | source image to use pixels as first operands in multiplication. | |
src2 | source image to use pixels as second operands in multiplication. | |
dest | destination image to hold result pixels of multiplication. | |
scale | value to perform scaling of resulting pixel values, for integer bit depth. |
Referenced by qvdta::SobelCornerResponseImage().
Multiplies pixel values of an image by a constant.
void qvipp::MulC | ( | const QVImage< sShort > & | src, | |
QVImage< sShort > & | dest, | |||
sShort | constant, | |||
int | scale = 1 | |||
) |
Multiplies pixel values of an image by a constant.
void qvipp::MulC | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uChar | constant, | |||
int | scale = 1 | |||
) |
Multiplies pixel values of an image by a constant.
This function multiplies pixel values of an image by a constant value. Saturation and scaling is used for integer data (uChar, sShort, etc...).
Scaling is done by multiplying the output pixel values by 2-scale before the function returns. This helps retain either the output data range or its precision. Usually the scaling with a positive factor is performed by the shift operation. Then, the result is rounded off to the nearest integer number.
src | source image to use pixels as first operands in multiplication. | |
dest | destination image to hold result pixels of multiplication. | |
constant | value to use as second operand in multiplication. | |
scale | value to perform scaling of resulting pixel values, for integer bit depth. |
void qvipp::MulScale | ( | const QVImage< uChar, 3 > & | src1, | |
const QVImage< uChar, 3 > & | src2, | |||
QVImage< uChar, 3 > & | dest | |||
) |
Multiplies pixel values of two images and scales the products.
void qvipp::MulScale | ( | const QVImage< uChar > & | src1, | |
const QVImage< uChar > & | src2, | |||
QVImage< uChar > & | dest | |||
) |
Multiplies pixel values of two images and scales the products.
This function multiplies corresponding pixel values of two input buffers and scales the products using the following formula:
dest(i,j) = src1(i,j) * src2(i,j) / max_val
where max_val is the maximum value of the pixel data range.
src1 | source image to use pixels as first operands in multiplication. | |
src2 | source image to use pixels as second operands in multiplication. | |
dest | destination image to hold result pixels of multiplication. |
Performs a bit-wise NOT operation on each pixel of an image.
Performs a bit-wise NOT operation on each pixel of an image.
src | source image to perform bit-wise NOT operation on. | |
dest | destination image to hold result of bit-wise operation. |
Performs a bit-wise inclusive OR operation between each pixel of an image and a constant.
src | source image to perform bit-wise inclusive OR operation on. | |
dest | destination image to hold result of bit-wise operation. | |
constant | value to perform bit-wise operation with. |
void qvipp::Resize | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
int | interpolation = IPPI_INTER_LINEAR | |||
) |
Changes an image size.
This function copies the content of the ROI in the source image, to the ROI of the destination image, adjusting it's original size to make it fit in the destination size It has the effect of resizing the original image, to fit the destination image, if both ROI's hold the whole of their respective images.
src | source image to re-size ROI. | |
dest | destination image to hold the re-sized ROI. | |
interpolation | interpolation type. Selects the algorithm for interpolate pixel values. Possible values for this parameter are:
|
Converts an RGB image to gray-scale using fixed transform coefficients.
Converts an RGB image to gray-scale using fixed transform coefficients.
Converts an RGB image to gray-scale using fixed transform coefficients.
This function converts an RGB image to gray scale (see Figure 6-18) using the following basic equation to compute luma from nonlinear gamma-corrected red, green, and blue values:
Y = 0.299 * R + 0.587 * G + 0.114 * B
Note that the transform coefficients conform to the standard for the NTSC red, green, and blue CRT phosphors.
src | RGB image to convert to gray scale. | |
dest | resulting gray-scale image. |
Shifts bits in pixel values to the right.
src | source image to perform right shift on. | |
dest | destination image to hold result of right shift. | |
constant | value to perform right shift with. |
void qvipp::Set | ( | QVImage< sFloat, 3 > & | img, | |
sFloat | red, | |||
sFloat | green, | |||
sFloat | blue | |||
) |
Sets pixels of a 3-channel image ROI to a value respective constant value, one for each channel.
void qvipp::Set | ( | QVImage< sShort, 3 > & | img, | |
sShort | red, | |||
sShort | green, | |||
sShort | blue | |||
) |
Sets pixels of a 3-channel image ROI to a value respective constant value, one for each channel.
void qvipp::Set | ( | QVImage< uChar, 3 > & | img, | |
uChar | red, | |||
uChar | green, | |||
uChar | blue | |||
) |
Sets pixels of a 3-channel image ROI to a value respective constant value, one for each channel.
This function sets pixels in the destination 3-channel image ROI img to a constant value. Each channel can be set to a different constant value, with a different parameter value.
img | destination image to set. | |
red | value to set pixels in first channel of image ROI. | |
green | value to set pixels in second channel of image ROI. | |
blue | value to set pixels in third channel of image ROI. |
void qvipp::Set | ( | QVImage< sFloat > & | img, | |
sFloat | constant | |||
) |
void qvipp::Set | ( | QVImage< sShort > & | img, | |
sShort | constant | |||
) |
void qvipp::Set | ( | QVImage< uChar > & | img, | |
uChar | constant | |||
) |
Sets pixels of an image ROI to a value.
This function sets pixels in the destination image ROI img to a constant value.
img | destination image to set. | |
constant | value to set pixels in image ROI. |
Referenced by qvdta::FilterLocalMax(), and qvdta::getBorderContoursThreshold().
void qvipp::Sub | ( | const QVImage< sFloat, 3 > & | src1, | |
const QVImage< sFloat, 3 > & | src2, | |||
QVImage< sFloat, 3 > & | dest | |||
) |
Subtracts pixel values of two images.
void qvipp::Sub | ( | const QVImage< sFloat > & | src1, | |
const QVImage< sFloat > & | src2, | |||
QVImage< sFloat > & | dest | |||
) |
Subtracts pixel values of two images.
void qvipp::Sub | ( | const QVImage< sShort, 3 > & | src1, | |
const QVImage< sShort, 3 > & | src2, | |||
QVImage< sShort, 3 > & | dest, | |||
int | scale = 1 | |||
) |
Subtracts pixel values of two images.
void qvipp::Sub | ( | const QVImage< sShort > & | src1, | |
const QVImage< sShort > & | src2, | |||
QVImage< sShort > & | dest, | |||
int | scale = 1 | |||
) |
Subtracts pixel values of two images.
void qvipp::Sub | ( | const QVImage< uChar, 3 > & | src1, | |
const QVImage< uChar, 3 > & | src2, | |||
QVImage< uChar, 3 > & | dest, | |||
int | scale = 1 | |||
) |
Subtracts pixel values of two images.
void qvipp::Sub | ( | const QVImage< uChar > & | src1, | |
const QVImage< uChar > & | src2, | |||
QVImage< uChar > & | dest, | |||
int | scale = 1 | |||
) |
Subtracts pixel values of two images.
This function substracts corresponding pixel values of two source image buffers and places the results in a destination buffer. Saturation and scaling is used for integer data (uChar, sShort, etc...).
Scaling is done by multiplying the output pixel values by 2-scale before the function returns. This helps retain either the output data range or its precision. Usually the scaling with a positive factor is performed by the shift operation. Then, the result is rounded off to the nearest integer number.
src1 | source image to use pixels as first operands in subtraction. | |
src2 | source image to use pixels as second operands in subtraction. | |
dest | destination image to hold result pixels of subtraction. | |
scale | value to perform scaling of resulting pixel values, for integer bit depth. |
Referenced by qvdta::SobelCornerResponseImage().
Subtracts a constant from pixel values of an image.
void qvipp::SubC | ( | const QVImage< sShort > & | src, | |
QVImage< sShort > & | dest, | |||
sShort | constant, | |||
int | scale = 1 | |||
) |
Subtracts a constant from pixel values of an image.
void qvipp::SubC | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uChar | constant, | |||
int | scale = 1 | |||
) |
Subtracts a constant from pixel values of an image.
This function changes image intensity by subtracting the constant value from pixel values of an image buffer. Saturation and scaling is used for integer data (uChar, sShort, etc...).
Scaling is done by multiplying the output pixel values by 2-scale before the function returns. This helps retain either the output data range or its precision. Usually the scaling with a positive factor is performed by the shift operation. Then, the result is rounded off to the nearest integer number.
src | source image to use pixels as first operands in subtraction. | |
dest | destination image to hold result pixels of subtraction. | |
constant | value to use as second operand in subtraction. | |
scale | value to perform scaling of resulting pixel values, for integer bit depth. |
void qvipp::Sum | ( | const QVImage< sShort, 3 > & | src, | |
sDouble & | r, | |||
sDouble & | g, | |||
sDouble & | b | |||
) |
Computes the sum of image pixel values, by separate planes.
void qvipp::Sum | ( | const QVImage< uChar, 3 > & | src, | |
sDouble & | r, | |||
sDouble & | g, | |||
sDouble & | b | |||
) |
Computes the sum of image pixel values, by separate planes.
src | source image to compute pixel sum. | |
red | return value containing the sum of the values of the pixels of the image for the first channel. | |
green | return value containing the sum of the values of the pixels of the image for the second channel. | |
blue | return value containing the sum of the values of the pixels of the image for the third channel. |
void qvipp::Sum | ( | const QVImage< sShort > & | src, | |
sDouble & | value | |||
) |
void qvipp::Sum | ( | const QVImage< uChar > & | src, | |
sDouble & | value | |||
) |
Computes the sum of image pixel values.
src | source image to compute pixel sum. | |
value | return value containing the sum of the values of the pixels of the image. |
void qvipp::Threshold | ( | const QVImage< sFloat > & | src, | |
QVImage< sFloat > & | dest, | |||
sFloat | constant, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Performs thresholding of pixel values in an image buffer.
void qvipp::Threshold | ( | const QVImage< sShort > & | src, | |
QVImage< sShort > & | dest, | |||
sShort | constant, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Performs thresholding of pixel values in an image buffer.
void qvipp::Threshold | ( | const QVImage< uChar > & | src, | |
QVImage< uChar > & | dest, | |||
uChar | constant, | |||
IppCmpOp | ippCmpOp = ippCmpEq | |||
) |
Performs thresholding of pixel values in an image buffer.
This function thresholds pixels in the source image src using the specified level threshold. Pixel values in the source image are compared to the threshold value using the ippCmpOp comparison operation.
If the result of the compare is true, the corresponding output pixel is set to the threshold value. Otherwise, it is set to the source pixel value.
src | image to threshold. | |
dest | image to store thresholded image. | |
constant | value to compare each pixel value. | |
ippCmpOp | Compare operation to be used for thresholding the pixel values. Must be one of these enumerated values:
|
Performs a bit-wise exclusive OR operation between each pixel of an image and a constant.
src | source image to perform bit-wise exclusive OR operation on. | |
dest | destination image to hold result of bit-wise operation. | |
constant | value to perform bit-wise operation with. |