资源简介
opencv-contrib 编译过程中缺失的vgg_generated_120.i等文件,复制在/home/****/opencv-3.4.2/modules/xfeatures2d/src目录下。
代码片段和文件信息
//============================================================================
// Name : OpenEXRimages_HDR_Retina_toneMapping.cpp
// Author : Alexandre Benoit (benoit.alexandre.vision@gmail.com)
// Version : 0.1
// Copyright : Alexandre Benoit LISTIC Lab july 2011
// Description : HighDynamicRange retina tone mapping with the help of the Gipsa/Listic‘s retina in C++ Ansi-style
//============================================================================
#include
#include
#include “opencv2/bioinspired.hpp“ // retina based algorithms
#include “opencv2/imgproc.hpp“ // cvCvtcolor function
#include “opencv2/imgcodecs.hpp“ // imread
#include “opencv2/highgui.hpp“ // display
static void help(std::string errorMessage)
{
std::cout<<“Program init error : “< std::cout<<“\nProgram call procedure : ./OpenEXRimages_HDR_Retina_toneMapping [OpenEXR image to process]“< std::cout<<“\t[OpenEXR image to process] : the input HDR image to process must be an OpenEXR format see http://www.openexr.com/ to get some samples or create your own using camera bracketing and Photoshop or equivalent software for OpenEXR image synthesis“< std::cout<<“\nExamples:“< std::cout<<“\t-Image processing : ./OpenEXRimages_HDR_Retina_toneMapping memorial.exr“< }
// simple procedure for 1D curve tracing
static void drawPlot(const cv::Mat curve const std::string figuretitle const int lowerLimit const int upperLimit)
{
//std::cout<<“curve size(hw) = “< cv::Mat displayedCurveImage = cv::Mat::ones(200 curve.size().height CV_8U);
cv::Mat windowNormalizedCurve;
normalize(curve windowNormalizedCurve 0 200 cv::NORM_MINMAX CV_32F);
displayedCurveImage = cv::Scalar::all(255); // set a white background
int binW = cvRound((double)displayedCurveImage.cols/curve.size().height);
for( int i = 0; i < curve.size().height; i++ )
rectangle( displayedCurveImage cv::Point(i*binW displayedCurveImage.rows)
cv::Point((i+1)*binW displayedCurveImage.rows - cvRound(windowNormalizedCurve.at(i)))
cv::Scalar::all(0) -1 8 0 );
rectangle( displayedCurveImage cv::Point(0 0)
cv::Point((lowerLimit)*binW 200)
cv::Scalar::all(128) -1 8 0 );
rectangle( displayedCurveImage cv::Point(displayedCurveImage.cols 0)
cv::Point((upperLimit)*binW 200)
cv::Scalar::all(128) -1 8 0 );
cv::imshow(figuretitle displayedCurveImage);
}
/*
* objective : get the gray level map of the input image and rescale it to the range [0-255]
*/
static void rescaleGrayLevelMat(const cv::Mat &inputMat cv::Mat &outputMat const float histogramClippingLimit)
{
// adjust output matrix wrt the input size but single channel
std::cout<<“Input image rescaling with histogram edges cutting (in order to eliminate bad pixels created during the HDR image creation) :“< //std::cout<<“=> image size (h
相关资源
- pip-10.0.1.tar.gz
- Data Science from Scratch 2nd Edition
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- opencv_contrib-3.4.0.zip
- opencv2.4.9源码分析——SIFT
- shape_predictor_68_face_landmarks.dat.bz2 68个标
- 用两个摄像头实现,双目标定,双目
- 爬取豆瓣电影TOP250程序,包含非常详
- opencv_traincascade训练分类器,手势识别
- opencv3.0交叉编译用parallel.cpp
- 基于opencv的图像识别识别图像中的色
- 中文维基百科语料库百度网盘网址.
- 基于openCV的识别特定颜色区域
- 基于OpenCV的分水岭算法实现
- MSCNN_dehaze.rar
- 爬取豆瓣排行榜电影数据(含GUI界面
- QT+opencv+OCR 身份证号码,银行卡号识别
- opencv视频特定颜色区域识别
- 把RGB转换为HSV和HSI然后根据黄色和蓝
- opencv视觉测距
- 基于Qt和opencv的身份证号码识别系统
- 字典文本资源
- opencv_ffmpeg249.dll
- SfM稀疏三维点云重建--完整工程文件
- Brainfuck / OoK 解码脚本
- 基于opencv的数人头程序源代码
- 案例实战信用卡欺诈检测数据集
- 利用OpenCV中的Stitcher类实现全景图像拼
- opencv实现的sift算法源码,包含了图像
- openCV 上的小波变换
评论
共有 条评论