Scale

Scale buffer data

Supported Technologies

MT

Synopsis

FwStatus   fwiScale_8u16u_C1R ( const Fw8u * pSrc, int srcStep, Fw16u * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u16u_C3R ( const Fw8u * pSrc, int srcStep, Fw16u * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u16u_C4R ( const Fw8u * pSrc, int srcStep, Fw16u * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u16u_AC4R ( const Fw8u * pSrc, int srcStep, Fw16u * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u16s_C1R ( const Fw8u * pSrc, int srcStep, Fw16s * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u16s_C3R ( const Fw8u * pSrc, int srcStep, Fw16s * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u16s_C4R ( const Fw8u * pSrc, int srcStep, Fw16s * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u16s_AC4R ( const Fw8u * pSrc, int srcStep, Fw16s * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u32s_C1R ( const Fw8u * pSrc, int srcStep, Fw32s * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u32s_C3R ( const Fw8u * pSrc, int srcStep, Fw32s * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u32s_C4R ( const Fw8u * pSrc, int srcStep, Fw32s * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_8u32s_AC4R ( const Fw8u * pSrc, int srcStep, Fw32s * pDst, int dstStep, FwiSize roiSize );
FwStatus   fwiScale_16u8u_C1R ( const Fw16u * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_16u8u_C3R ( const Fw16u * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_16u8u_C4R ( const Fw16u * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_16u8u_AC4R ( const Fw16u * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_16s8u_C1R ( const Fw16s * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_16s8u_C3R ( const Fw16s * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_16s8u_C4R ( const Fw16s * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_16s8u_AC4R ( const Fw16s * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_32s8u_C1R ( const Fw32s * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_32s8u_C3R ( const Fw32s * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_32s8u_C4R ( const Fw32s * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_32s8u_AC4R ( const Fw32s * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, FwHintAlgorithm hint );
FwStatus   fwiScale_8u32f_C1R ( const Fw8u * pSrc, int srcStep, Fw32f * pDst, int dstStep, FwiSize roiSize, Fw32f vMin, Fw32f vMax );
FwStatus   fwiScale_8u32f_C3R ( const Fw8u * pSrc, int srcStep, Fw32f * pDst, int dstStep, FwiSize roiSize, Fw32f vMin, Fw32f vMax );
FwStatus   fwiScale_8u32f_C4R ( const Fw8u * pSrc, int srcStep, Fw32f * pDst, int dstStep, FwiSize roiSize, Fw32f vMin, Fw32f vMax );
FwStatus   fwiScale_8u32f_AC4R ( const Fw8u * pSrc, int srcStep, Fw32f * pDst, int dstStep, FwiSize roiSize, Fw32f vMin, Fw32f vMax );
FwStatus   fwiScale_32f8u_C1R ( const Fw32f * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, Fw32f vMin, Fw32f vMax );
FwStatus   fwiScale_32f8u_C3R ( const Fw32f * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, Fw32f vMin, Fw32f vMax );
FwStatus   fwiScale_32f8u_C4R ( const Fw32f * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, Fw32f vMin, Fw32f vMax );
FwStatus   fwiScale_32f8u_AC4R ( const Fw32f * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize roiSize, Fw32f vMin, Fw32f vMax );

Parameters

dstStep   Destination buffer step size (width of the buffer in bytes).
hint   Suggests a level of precision using one of the following values (fwAlgHintNone, fwAlgHintFast, fwAlgHintAccurate).
pDst   Pointer to a location in a destination buffer.
pSrc   Pointer to a location in a source buffer.
roiSize   Specifies the height and width of an ROI.
srcStep   Source buffer step size (width of the buffer in bytes).
vMax   Maximum value.
vMin   Minimum value.

Description

These functions step through an ROI in a source buffer, scale the source data, and write the scaled data to a destination buffer.

The output is scaled so that the median value in the source range is the median value in the destination range.