Skip Navigation Links | |
Exit Print View | |
man pages section 3: Multimedia Library Functions Oracle Solaris 11.1 Information Library |
Multimedia Library Functions - Part 1
Multimedia Library Functions - Part 2
Multimedia Library Functions - Part 3
mlib_ImageDivShift2_Inp(3MLIB)
mlib_ImageExtremaLocations(3MLIB)
mlib_ImageExtremaLocations_Fp(3MLIB)
mlib_ImageFilteredSubsample(3MLIB)
mlib_ImageFilteredSubsample_Fp(3MLIB)
mlib_ImageFlipAntiDiag_Fp(3MLIB)
mlib_ImageFlipMainDiag_Fp(3MLIB)
mlib_ImageFourierTransform(3MLIB)
mlib_ImageGradient3x3_Fp(3MLIB)
mlib_ImageGradientMxN_Fp(3MLIB)
mlib_ImageGridWarpTable(3MLIB)
mlib_ImageGridWarpTable_Fp(3MLIB)
mlib_ImageInterpTableCreate(3MLIB)
mlib_ImageInterpTableDelete(3MLIB)
mlib_ImageInvert_Fp_Inp(3MLIB)
mlib_ImageIsNotAligned2(3MLIB)
mlib_ImageIsNotAligned4(3MLIB)
mlib_ImageIsNotAligned64(3MLIB)
mlib_ImageIsNotAligned8(3MLIB)
mlib_ImageIsNotHeight2X(3MLIB)
mlib_ImageIsNotHeight4X(3MLIB)
mlib_ImageIsNotHeight8X(3MLIB)
mlib_ImageIsNotOneDvector(3MLIB)
mlib_ImageIsNotStride8X(3MLIB)
mlib_ImageIsUserAllocated(3MLIB)
mlib_ImageMaxFilter3x3_Fp(3MLIB)
mlib_ImageMaxFilter5x5_Fp(3MLIB)
mlib_ImageMaxFilter7x7_Fp(3MLIB)
mlib_ImageMedianFilter3x3(3MLIB)
mlib_ImageMedianFilter3x3_Fp(3MLIB)
mlib_ImageMedianFilter3x3_US(3MLIB)
mlib_ImageMedianFilter5x5(3MLIB)
mlib_ImageMedianFilter5x5_Fp(3MLIB)
mlib_ImageMedianFilter5x5_US(3MLIB)
mlib_ImageMedianFilter7x7(3MLIB)
mlib_ImageMedianFilter7x7_Fp(3MLIB)
mlib_ImageMedianFilter7x7_US(3MLIB)
mlib_ImageMedianFilterMxN(3MLIB)
mlib_ImageMedianFilterMxN_Fp(3MLIB)
mlib_ImageMedianFilterMxN_US(3MLIB)
mlib_ImageMinFilter3x3_Fp(3MLIB)
mlib_ImageMinFilter5x5_Fp(3MLIB)
mlib_ImageMinFilter7x7_Fp(3MLIB)
mlib_ImageMulAlpha_Fp_Inp(3MLIB)
mlib_ImageNormCrossCorrel(3MLIB)
mlib_ImageNormCrossCorrel_Fp(3MLIB)
mlib_ImagePolynomialWarp(3MLIB)
mlib_ImagePolynomialWarpTable(3MLIB)
mlib_ImagePolynomialWarpTable_Fp(3MLIB)
mlib_ImageRankFilter3x3(3MLIB)
mlib_ImageRankFilter3x3_Fp(3MLIB)
mlib_ImageRankFilter3x3_US(3MLIB)
mlib_ImageRankFilter5x5(3MLIB)
mlib_ImageRankFilter5x5_Fp(3MLIB)
mlib_ImageRankFilter5x5_US(3MLIB)
mlib_ImageRankFilter7x7(3MLIB)
mlib_ImageRankFilter7x7_Fp(3MLIB)
mlib_ImageRankFilter7x7_US(3MLIB)
mlib_ImageRankFilterMxN(3MLIB)
mlib_ImageRankFilterMxN_Fp(3MLIB)
mlib_ImageRankFilterMxN_US(3MLIB)
mlib_ImageReplaceColor_Fp(3MLIB)
mlib_ImageReplaceColor_Fp_Inp(3MLIB)
mlib_ImageReplaceColor_Inp(3MLIB)
mlib_ImageResetSubimageStruct(3MLIB)
mlib_ImageScalarBlend_Fp(3MLIB)
mlib_ImageScalarBlend_Fp_Inp(3MLIB)
mlib_ImageScalarBlend_Inp(3MLIB)
mlib_ImageSConvKernelConvert(3MLIB)
mlib_ImageSetSubimageStruct(3MLIB)
mlib_ImageSubsampleAverage(3MLIB)
mlib_ImageSubsampleAverage_Fp(3MLIB)
mlib_ImageSubsampleBinaryToGray(3MLIB)
mlib_ImageThresh1_Fp_Inp(3MLIB)
mlib_ImageThresh2_Fp_Inp(3MLIB)
mlib_ImageThresh3_Fp_Inp(3MLIB)
mlib_ImageThresh4_Fp_Inp(3MLIB)
mlib_ImageThresh5_Fp_Inp(3MLIB)
mlib_ImageZoomIn2XIndex(3MLIB)
mlib_ImageZoomOut2XIndex(3MLIB)
mlib_ImageZoomTranslate(3MLIB)
mlib_ImageZoomTranslateBlend(3MLIB)
mlib_ImageZoomTranslate_Fp(3MLIB)
mlib_ImageZoomTranslateTable(3MLIB)
mlib_ImageZoomTranslateTableBlend(3MLIB)
mlib_ImageZoomTranslateTable_Fp(3MLIB)
mlib_ImageZoomTranslateToGray(3MLIB)
mlib_MatrixAdd_S16C_Mod(3MLIB)
mlib_MatrixAdd_S16C_S16C_Mod(3MLIB)
mlib_MatrixAdd_S16C_S16C_Sat(3MLIB)
mlib_MatrixAdd_S16C_S8C_Mod(3MLIB)
mlib_MatrixAdd_S16C_S8C_Sat(3MLIB)
mlib_MatrixAdd_S16C_Sat(3MLIB)
mlib_MatrixAdd_S16C_U8C_Mod(3MLIB)
mlib_MatrixAdd_S16C_U8C_Sat(3MLIB)
mlib_MatrixAdd_S16_S16_Mod(3MLIB)
mlib_MatrixAdd_S16_S16_Sat(3MLIB)
mlib_MatrixAdd_S16_S8_Mod(3MLIB)
mlib_MatrixAdd_S16_S8_Sat(3MLIB)
mlib_MatrixAdd_S16_U8_Mod(3MLIB)
mlib_MatrixAdd_S16_U8_Sat(3MLIB)
mlib_MatrixAdd_S32C_Mod(3MLIB)
mlib_MatrixAdd_S32C_S16C_Mod(3MLIB)
mlib_MatrixAdd_S32C_S16C_Sat(3MLIB)
mlib_MatrixAdd_S32C_S32C_Mod(3MLIB)
mlib_MatrixAdd_S32C_S32C_Sat(3MLIB)
mlib_MatrixAdd_S32C_Sat(3MLIB)
mlib_MatrixAdd_S32_S16_Mod(3MLIB)
mlib_MatrixAdd_S32_S16_Sat(3MLIB)
mlib_MatrixAdd_S32_S32_Mod(3MLIB)
mlib_MatrixAdd_S32_S32_Sat(3MLIB)
mlib_MatrixAdd_S8C_S8C_Mod(3MLIB)
mlib_MatrixAdd_S8C_S8C_Sat(3MLIB)
mlib_MatrixAdd_S8_S8_Mod(3MLIB)
mlib_MatrixAdd_S8_S8_Sat(3MLIB)
mlib_MatrixAddS_S16C_Mod(3MLIB)
mlib_MatrixAddS_S16C_S16C_Mod(3MLIB)
mlib_MatrixAddS_S16C_S16C_Sat(3MLIB)
mlib_MatrixAddS_S16C_S8C_Mod(3MLIB)
mlib_MatrixAddS_S16C_S8C_Sat(3MLIB)
mlib_MatrixAddS_S16C_Sat(3MLIB)
mlib_MatrixAddS_S16C_U8C_Mod(3MLIB)
mlib_MatrixAddS_S16C_U8C_Sat(3MLIB)
mlib_MatrixAddS_S16_Mod(3MLIB)
mlib_MatrixAddS_S16_S16_Mod(3MLIB)
mlib_MatrixAddS_S16_S16_Sat(3MLIB)
mlib_MatrixAddS_S16_S8_Mod(3MLIB)
mlib_MatrixAddS_S16_S8_Sat(3MLIB)
mlib_MatrixAddS_S16_Sat(3MLIB)
mlib_MatrixAddS_S16_U8_Mod(3MLIB)
mlib_MatrixAddS_S16_U8_Sat(3MLIB)
mlib_MatrixAddS_S32C_Mod(3MLIB)
mlib_MatrixAddS_S32C_S16C_Mod(3MLIB)
mlib_MatrixAddS_S32C_S16C_Sat(3MLIB)
mlib_MatrixAddS_S32C_S32C_Mod(3MLIB)
mlib_MatrixAddS_S32C_S32C_Sat(3MLIB)
mlib_MatrixAddS_S32C_Sat(3MLIB)
mlib_MatrixAddS_S32_Mod(3MLIB)
mlib_MatrixAddS_S32_S16_Mod(3MLIB)
mlib_MatrixAddS_S32_S16_Sat(3MLIB)
mlib_MatrixAddS_S32_S32_Mod(3MLIB)
mlib_MatrixAddS_S32_S32_Sat(3MLIB)
mlib_MatrixAddS_S32_Sat(3MLIB)
mlib_MatrixAddS_S8C_Mod(3MLIB)
mlib_MatrixAddS_S8C_S8C_Mod(3MLIB)
mlib_MatrixAddS_S8C_S8C_Sat(3MLIB)
mlib_MatrixAddS_S8C_Sat(3MLIB)
mlib_MatrixAddS_S8_S8_Mod(3MLIB)
mlib_MatrixAddS_S8_S8_Sat(3MLIB)
mlib_MatrixAddS_U8C_Mod(3MLIB)
mlib_MatrixAddS_U8C_Sat(3MLIB)
mlib_MatrixAddS_U8C_U8C_Mod(3MLIB)
mlib_MatrixAddS_U8C_U8C_Sat(3MLIB)
mlib_MatrixAddS_U8_U8_Mod(3MLIB)
mlib_MatrixAddS_U8_U8_Sat(3MLIB)
mlib_MatrixAdd_U8C_U8C_Mod(3MLIB)
mlib_MatrixAdd_U8C_U8C_Sat(3MLIB)
mlib_MatrixAdd_U8_U8_Mod(3MLIB)
mlib_MatrixAdd_U8_U8_Sat(3MLIB)
mlib_MatrixAve_S16C_S16C(3MLIB)
mlib_MatrixAve_S16C_S8C(3MLIB)
mlib_MatrixAve_S16C_U8C(3MLIB)
mlib_MatrixAve_S32C_S16C(3MLIB)
mlib_MatrixAve_S32C_S32C(3MLIB)
mlib_MatrixMaximumMag_D64C(3MLIB)
mlib_MatrixMaximumMag_F32C(3MLIB)
mlib_MatrixMaximumMag_S16C(3MLIB)
mlib_MatrixMaximumMag_S32C(3MLIB)
mlib_MatrixMaximumMag_S8C(3MLIB)
mlib_MatrixMaximumMag_U8C(3MLIB)
mlib_MatrixMinimumMag_D64C(3MLIB)
mlib_MatrixMinimumMag_F32C(3MLIB)
mlib_MatrixMinimumMag_S16C(3MLIB)
mlib_MatrixMinimumMag_S32C(3MLIB)
mlib_MatrixMinimumMag_S8C(3MLIB)
mlib_MatrixMinimumMag_U8C(3MLIB)
mlib_MatrixMul_S16C_S16C_Mod(3MLIB)
mlib_MatrixMul_S16C_S16C_Sat(3MLIB)
mlib_MatrixMul_S16C_S8C_Mod(3MLIB)
mlib_MatrixMul_S16C_S8C_Sat(3MLIB)
mlib_MatrixMul_S16C_U8C_Mod(3MLIB)
mlib_MatrixMul_S16C_U8C_Sat(3MLIB)
mlib_MatrixMul_S16_S16_Mod(3MLIB)
mlib_MatrixMul_S16_S16_Sat(3MLIB)
mlib_MatrixMul_S16_S8_Mod(3MLIB)
mlib_MatrixMul_S16_S8_Sat(3MLIB)
mlib_MatrixMul_S16_U8_Mod(3MLIB)
mlib_MatrixMul_S16_U8_Sat(3MLIB)
mlib_MatrixMul_S32C_S16C_Mod(3MLIB)
mlib_MatrixMul_S32C_S16C_Sat(3MLIB)
mlib_MatrixMul_S32C_S32C_Mod(3MLIB)
mlib_MatrixMul_S32C_S32C_Sat(3MLIB)
mlib_MatrixMul_S32_S16_Mod(3MLIB)
mlib_MatrixMul_S32_S16_Sat(3MLIB)
mlib_MatrixMul_S32_S32_Mod(3MLIB)
mlib_MatrixMul_S32_S32_Sat(3MLIB)
mlib_MatrixMul_S8C_S8C_Mod(3MLIB)
mlib_MatrixMul_S8C_S8C_Sat(3MLIB)
mlib_MatrixMul_S8_S8_Mod(3MLIB)
mlib_MatrixMul_S8_S8_Sat(3MLIB)
mlib_MatrixMulShift_S16C_S16C_Mod(3MLIB)
mlib_MatrixMulShift_S16C_S16C_Sat(3MLIB)
mlib_MatrixMulShift_S16_S16_Mod(3MLIB)
mlib_MatrixMulShift_S16_S16_Sat(3MLIB)
mlib_MatrixMulS_S16C_Mod(3MLIB)
mlib_MatrixMulS_S16C_S16C_Mod(3MLIB)
mlib_MatrixMulS_S16C_S16C_Sat(3MLIB)
mlib_MatrixMulS_S16C_S8C_Mod(3MLIB)
mlib_MatrixMulS_S16C_S8C_Sat(3MLIB)
mlib_MatrixMulS_S16C_Sat(3MLIB)
mlib_MatrixMulS_S16C_U8C_Mod(3MLIB)
mlib_MatrixMulS_S16C_U8C_Sat(3MLIB)
mlib_MatrixMulS_S16_Mod(3MLIB)
mlib_MatrixMulS_S16_S16_Mod(3MLIB)
mlib_MatrixMulS_S16_S16_Sat(3MLIB)
mlib_MatrixMulS_S16_S8_Mod(3MLIB)
mlib_MatrixMulS_S16_S8_Sat(3MLIB)
mlib_MatrixMulS_S16_Sat(3MLIB)
mlib_MatrixMulS_S16_U8_Mod(3MLIB)
mlib_MatrixMulS_S16_U8_Sat(3MLIB)
mlib_MatrixMulS_S32C_Mod(3MLIB)
mlib_MatrixMulS_S32C_S16C_Mod(3MLIB)
mlib_MatrixMulS_S32C_S16C_Sat(3MLIB)
mlib_MatrixMulS_S32C_S32C_Mod(3MLIB)
mlib_MatrixMulS_S32C_S32C_Sat(3MLIB)
mlib_MatrixMulS_S32C_Sat(3MLIB)
mlib_MatrixMulS_S32_Mod(3MLIB)
mlib_MatrixMulS_S32_S16_Mod(3MLIB)
mlib_MatrixMulS_S32_S16_Sat(3MLIB)
mlib_MatrixMulS_S32_S32_Mod(3MLIB)
mlib_MatrixMulS_S32_S32_Sat(3MLIB)
mlib_MatrixMulS_S32_Sat(3MLIB)
mlib_MatrixMulS_S8C_Mod(3MLIB)
mlib_MatrixMulS_S8C_S8C_Mod(3MLIB)
mlib_MatrixMulS_S8C_S8C_Sat(3MLIB)
mlib_MatrixMulS_S8C_Sat(3MLIB)
mlib_MatrixMulS_S8_S8_Mod(3MLIB)
mlib_MatrixMulS_S8_S8_Sat(3MLIB)
mlib_MatrixMulSShift_S16C_Mod(3MLIB)
mlib_MatrixMulSShift_S16C_S16C_Mod(3MLIB)
mlib_MatrixMulSShift_S16C_S16C_Sat(3MLIB)
mlib_MatrixMulSShift_S16C_Sat(3MLIB)
mlib_MatrixMulSShift_S16_Mod(3MLIB)
mlib_MatrixMulSShift_S16_S16_Mod(3MLIB)
mlib_MatrixMulSShift_S16_S16_Sat(3MLIB)
mlib_MatrixMulSShift_S16_Sat(3MLIB)
mlib_MatrixMulSShift_S32C_Mod(3MLIB)
mlib_MatrixMulSShift_S32C_S32C_Mod(3MLIB)
mlib_MatrixMulSShift_S32C_S32C_Sat(3MLIB)
mlib_MatrixMulSShift_S32C_Sat(3MLIB)
mlib_MatrixMulSShift_S32_Mod(3MLIB)
mlib_MatrixMulSShift_S32_S32_Mod(3MLIB)
mlib_MatrixMulSShift_S32_S32_Sat(3MLIB)
mlib_MatrixMulSShift_S32_Sat(3MLIB)
mlib_MatrixMulSShift_S8C_Mod(3MLIB)
mlib_MatrixMulSShift_S8C_S8C_Mod(3MLIB)
mlib_MatrixMulSShift_S8C_S8C_Sat(3MLIB)
mlib_MatrixMulSShift_S8C_Sat(3MLIB)
mlib_MatrixMulSShift_S8_Mod(3MLIB)
mlib_MatrixMulSShift_S8_S8_Mod(3MLIB)
mlib_MatrixMulSShift_S8_S8_Sat(3MLIB)
mlib_MatrixMulSShift_S8_Sat(3MLIB)
Multimedia Library Functions - Part 4
Multimedia Library Functions - Part 5
- polynomial-based image warp
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_ImagePolynomialWarp_Fp(mlib_image *dst, const mlib_image *src, const mlib_d64 *xCoeffs, const mlib_d64 *yCoeffs, mlib_s32 n, mlib_d64 preShiftX, mlib_d64 preShiftY, mlib_d64 postShiftX, mlib_d64 postShiftY, mlib_d64 preScaleX, mlib_d64 preScaleY, mlib_d64 postScaleX, mlib_d64 postScaleY, mlib_filter filter, mlib_edge edge);
The mlib_ImagePolynomialWarp_Fp() function performs a polynomial-based image warp on a floating-point image.
The images must have the same type, and the same number of channels. The images can have 1, 2, 3, or 4 channels. The data type of the images can be MLIB_FLOAT or MLIB_DOUBLE. The source and destination images may have different sizes.
The xCoeffs and yCoeffs parameters must contain the same number of coefficients of the form (n + 1)(n + 2)/2 for some n, where n is the degree power of the polynomial. The coefficients, in order, are associated with the terms:
1, x, y, x**2, x*y, y**2, ..., x**n, x**(n-1)*y, ..., x*y**(n-1), y**n
and coefficients of value 0 cannot be omitted.
The image pixels are assumed to be centered at .5 coordinate points. In other words, the upper-left corner pixel of an image is located at (0.5, 0.5).
For each pixel in the destination image, its center point D is backward mapped to a point S in the source image. Then the source pixels with their centers surrounding point S are selected to do one of the interpolations specified by the filter parameter to generate the pixel value for point D.
The mapping is defined by the two bivariate polynomial functions X(x, y) and Y(x, y) that map destination (x, y) coordinates to source X and Y positions respectively.
The functions X(x, y) and Y(x, y) are:
preX = (x + preShiftX)*preScaleX preY = (y + preShiftY)*preScaleY n i warpedX = SUM {SUM {xCoeffs_ij * preX**(i-j) * preY**j}} i=0 j=0 n i warpedY = SUM {SUM {yCoeffs_ij * preX**(i-j) * preY**j}} i=0 j=0 X(x, y) = warpedX*postScaleX - postShiftX Y(x, y) = warpedY*postScaleY - postShiftY
The destination (x, y) coordinates are pre-shifted by (preShiftX, preShiftY) and pre-scaled by the factors preScaleX and preScaleY prior to the evaluation of the polynomial. The results of the polynomial evaluations are scaled by postScaleX and postScaleY, and then shifted by (-postShiftX, -postShiftY) to produce the source pixel coordinates. This process allows for better precision of the results and supports tiled images.
The function takes the following arguments:
Pointer to destination image.
Pointer to source image.
Destination to source transform coefficients for the X coordinate.
Destination to source transform coefficients for the Y coordinate.
Degree power of the polynomial.
Displacement to apply to destination X positions.
Displacement to apply to destination Y positions.
Displacement to apply to source X positions.
Displacement to apply to source Y positions.
Scale factor to apply to destination X positions.
Scale factor to apply to destination Y positions.
Scale factor to apply to source X positions.
Scale factor to apply to source Y positions.
Type of resampling filter. It can be one of the following:
MLIB_NEAREST MLIB_BILINEAR MLIB_BICUBIC MLIB_BICUBIC2
Type of edge condition. It can be one of the following:
MLIB_EDGE_DST_NO_WRITE MLIB_EDGE_SRC_PADDED
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
See attributes(5) for descriptions of the following attributes:
|
mlib_ImagePolynomialWarp(3MLIB), mlib_ImagePolynomialWarpTable(3MLIB), mlib_ImagePolynomialWarpTable_Fp(3MLIB), attributes(5)