You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.3 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
* Copyright (c) 2015,中国航天电子技术研究院 无人机系统工程研究所
* All rights reserved.
*
* 文件名称histProject.h
* 摘 要:直方图投影接口函数
*
* 当前版本1.0
* 作 者:王家星
* 完成日期2015年08月27日
*/
#pragma once
// OpenCV
#include <opencv2\opencv.hpp>
using namespace cv;
// 功能:直方图投影,提高图像对比度
// 输入:
// src 输入图像
// 输出:
// dst: 输出图像
// 返回值运算成功返回true否则返回false
bool HP(cv::Mat& dst, const cv::Mat &src);
// 功能:自适应阈值直方图投影,提高图像对比度
// 输入:
// src 输入图像
// 输出:
// dst: 输出图像
// 返回值运算成功返回true否则返回false
bool SAHP(cv::Mat &dst, const cv::Mat& src);
// 功能:高斯无约束增强图像细节
// 输入:
// 1.src 输入图像
// 2.bDeNoise: 是否进行图像去噪
// 输出:
// dst: 输出图像
// 返回值运算成功返回true否则返回false
// 高斯无约束直方图投影算法: 质量一般、速度快
bool GNRHP(cv::Mat& dst, const cv::Mat &src, bool bDeNoise = true);
// 功能:高斯约束增强图像细节
// 输入:
// 1.src 输入图像
// 2.bDeNoise: 是否进行图像去噪
// 输出:
// dst: 输出图像
// 返回值运算成功返回true否则返回false
// 高斯约束直方图投影算法: 质量好、速度慢
bool GRHP(cv::Mat& dst, const cv::Mat &src, bool bDeNoise = true);