我是靠谱客的博主 爱撒娇百合,最近开发中收集的这篇文章主要介绍QtMultiMedia 之 CameraImageProcessingQtMultiMedia 之 CameraImageProcessing,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

QtMultiMedia 之 CameraImageProcessing

翻译:qyvlik

5.5.1

用来调整与捕获照片相关的设置。

属性文档

  • colorFilter : enumeration

  • contrast : qreal

  • denoisingLevel : qreal

  • manualWhiteBalance : qreal

  • saturation : qreal

  • sharpeningLevel : qreal

  • whiteBalanceMode : enumeration

详细描述

CameraImageProcessing provides control over post-processing done by the camera middleware, including white balance adjustments, contrast, saturation, sharpening, and denoising

CameraImageProcessing提供了一些图像处理,包括白平衡,对比度,饱和度,锐化,降噪。

It should not be constructed separately, instead the imageProcessing property of a Camera should be used.

不可创建,只能通过 Camera::imageProcessing 访问。

Camera {
    id: camera

    imageProcessing {
        whiteBalanceMode: Camera.WhiteBalanceTungsten
        contrast: 0.66
        saturation: -0.5
    }
}

属性文档

colorFilter : enumeration

This property holds which color filter if any will be applied to image data captured by the camera.

颜色过滤。

ValueDescription
CameraImageProcessing.ColorFilterNoneNo filter is applied to images.
CameraImageProcessing.ColorFilterGrayscaleA grayscale filter.
CameraImageProcessing.ColorFilterNegativeA negative filter.
CameraImageProcessing.ColorFilterSolarizeA solarize filter.
CameraImageProcessing.ColorFilterSepiaA sepia filter.
CameraImageProcessing.ColorFilterPosterizeA posterize filter.
CameraImageProcessing.ColorFilterWhiteboardA whiteboard filter.
CameraImageProcessing.ColorFilterBlackboardA blackboard filter.
CameraImageProcessing.ColorFilterAquaAn aqua filter.
CameraImageProcessing.ColorFilterVendorThe base value for vendor defined filters.

contrast : qreal

Image contrast adjustment. Valid contrast adjustment values range between -1.0 and 1.0, with a default of 0.

图像对比度。有效值是 -1.01.0,默认值是 0

denoisingLevel : qreal

Adjustment of denoising applied to image.

Valid denoising level values range between -1.0 for for denoising disabled, 0 for default denoising level and 1.0 for maximum denoising applied.

设置降噪级数。

有效值从 -1.01.0,默认值为 01.0 为最大降噪级数。

manualWhiteBalance : qreal

The color temperature used when in manual white balance mode (WhiteBalanceManual). The units are Kelvin.

手动白平衡,在 whiteBalanceMode 设置为 WhiteBalanceManual 模式后才可设置。单位为 Kelvin

saturation : qreal

Image saturation adjustment. Valid saturation adjustment values range between -1.0 and 1.0, the default is 0.

图像保护度。 有效值为 -1.01.0,默认值为 0

sharpeningLevel : qreal

Adjustment of sharpening level applied to image.

Valid sharpening level values range between -1.0 for for sharpening disabled, 0 for default sharpening level and 1.0 for maximum sharpening applied.

图像锐化级数。

有效值为 -1.01.0,默认是为 0,锐化级数最大为 1.0

whiteBalanceMode : enumeration

ValueDescription
WhiteBalanceManualManual white balance. In this mode the manual white balance property value is used.
WhiteBalanceAutoAuto white balance mode.
WhiteBalanceSunlightSunlight white balance mode.
WhiteBalanceCloudyCloudy white balance mode.
WhiteBalanceShadeShade white balance mode.
WhiteBalanceTungstenTungsten white balance mode.
WhiteBalanceFluorescentFluorescent white balance mode.
WhiteBalanceFlashFlash white balance mode.
WhiteBalanceSunsetSunset white balance mode.
WhiteBalanceVendorVendor defined white balance mode.

最后

以上就是爱撒娇百合为你收集整理的QtMultiMedia 之 CameraImageProcessingQtMultiMedia 之 CameraImageProcessing的全部内容,希望文章能够帮你解决QtMultiMedia 之 CameraImageProcessingQtMultiMedia 之 CameraImageProcessing所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(43)

评论列表共有 0 条评论

立即
投稿
返回
顶部