muPP API 参考
目录
Adjust Brightness
Adjust brightness of an image.
Functions
Function muppiAdjustBrightness_32f_C1R
![][public]
MUppStatus muppiAdjustBrightness_32f_C1R(const MUpp32f *pSrc, int nSrcStep, MUpp32f *pDst, int nDstStep, MUppiSize oSizeROI, MUpp32f brightness_factor)
1 channel 32-bit float GRAY adjust.
Parameters:
- pSrc: source_image_pointer.
- nSrcStep: source_image_line_step.
- pDst: destination_image_pointer.
- nDstStep: destination_image_line_step.
- oSizeROI: roi_specification.
- brightness_factor: How much to adjust the brightness. Can be any non negative number. 0 gives a black image, 1 gives the original image while 2 increases the brightness by a factor of 2.
Returns:
MUppStatus image_data_error_codes, roi_error_codes
Parameters:
- const
MUpp32f* pSrc - int nSrcStep
- int nDstStep
Return type: MUppStatus
Function muppiAdjustBrightness_32f_C3R
![][public]
MUppStatus muppiAdjustBrightness_32f_C3R(const MUpp32f *pSrc, int nSrcStep, MUpp32f *pDst, int nDstStep, MUppiSize oSizeROI, MUpp32f brightness_factor)
3 channel 32-bit float RGB adjust.
Parameters:
- pSrc: source_image_pointer.
- nSrcStep: source_image_line_step.
- pDst: destination_image_pointer.
- nDstStep: destination_image_line_step.
- oSizeROI: roi_specification.
- brightness_factor: How much to adjust the brightness. Can be any non negative number. 0 gives a black image, 1 gives the original image while 2 increases the brightness by a factor of 2.
Returns:
MUppStatus image_data_error_codes, roi_error_codes
Parameters:
- const
MUpp32f* pSrc - int nSrcStep
- int nDstStep
Return type: MUppStatus
Adjust Hue
Adjust hue of an image. The image hue is adjusted by converting the image to HSV and cyclically shifting the intensities in the hue channel (H). The image is then converted back to original image mode. hue_factor is the amount of shift in H channel and must be in the interval [-0.5, 0.5].
Functions
Function muppiAdjustHue_32f_C1R
![][public]
MUppStatus muppiAdjustHue_32f_C1R(const MUpp32f *pSrc, int nSrcStep, MUpp32f *pDst, int nDstStep, MUppiSize oSizeROI, MUpp32f hue_factor)
1 channel 32-bit float GRAY adjust.
Parameters:
- pSrc: source_image_pointer.
- nSrcStep: source_image_line_step.
- pDst: destination_image_pointer.
- nDstStep: destination_image_line_step.
- oSizeROI: roi_specification.
- hue_factor: How much to shift the hue channel. Should be in [-0.5, 0.5]. 0.5 and -0.5 give complete reversal of hue channel in HSV space in positive and negative direction respectively. 0 means no shift. Therefore, both -0.5 and 0.5 will give an image with complementary colors while 0 gives the original image.
Returns:
MUppStatus image_data_error_codes, roi_error_codes
Parameters:
- const
MUpp32f* pSrc - int nSrcStep
- int nDstStep
Return type: MUppStatus
Function muppiAdjustHue_32f_C3R
![][public]
MUppStatus muppiAdjustHue_32f_C3R(const MUpp32f *pSrc, int nSrcStep, MUpp32f *pDst, int nDstStep, MUppiSize oSizeROI, MUpp32f hue_factor)
3 channel 32-bit float RGB adjust.
Parameters:
- pSrc: source_image_pointer.
- nSrcStep: source_image_line_step.
- pDst: destination_image_pointer.
- nDstStep: destination_image_line_step.
- oSizeROI: roi_specification.
- hue_factor: How much to shift the hue channel. Should be in [-0.5, 0.5]. 0.5 and -0.5 give complete reversal of hue channel in HSV space in positive and negative direction respectively. 0 means no shift. Therefore, both -0.5 and 0.5 will give an image with complementary colors while 0 gives the original image.
Returns:
MUppStatus image_data_error_codes, roi_error_codes
Parameters:
- const
MUpp32f* pSrc - int nSrcStep
- int nDstStep
Return type: MUppStatus
Adjust Saturation
Adjust color saturation of an image.
Functions
Function muppiAdjustSaturation_32f_C1R
![][public]
MUppStatus muppiAdjustSaturation_32f_C1R(const MUpp32f *pSrc, int nSrcStep, MUpp32f *pDst, int nDstStep, MUppiSize oSizeROI, MUpp32f saturation_factor)
1 channel 32-bit float GRAY adjust.
Parameters:
- pSrc: source_image_pointer.
- nSrcStep: source_image_line_step.
- pDst: destination_image_pointer.
- nDstStep: destination_image_line_step.
- oSizeROI: roi_specification.
- saturation_factor: How much to adjust the saturation. 0 will give a black and white image, 1 will give the original image while 2 will enhance the saturation by a factor of 2.
Returns:
MUppStatus image_data_error_codes, roi_error_codes
Parameters:
- const
MUpp32f* pSrc - int nSrcStep
- int nDstStep
Return type: MUppStatus
Function muppiAdjustSaturation_32f_C3R
![][public]
MUppStatus muppiAdjustSaturation_32f_C3R(const MUpp32f *pSrc, int nSrcStep, MUpp32f *pDst, int nDstStep, MUppiSize oSizeROI, MUpp32f saturation_factor)
3 channel 32-bit float RGB adjust.
Parameters:
- pSrc: source_image_pointer.
- nSrcStep: source_image_line_step.
- pDst: destination_image_pointer.
- nDstStep: destination_image_line_step.
- oSizeROI: roi_specification.
- saturation_factor:
Returns:
MUppStatus image_data_error_codes, roi_error_codes
Parameters:
- const
MUpp32f* pSrc - int nSrcStep
- int nDstStep
Return type: MUppStatus