![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
图像处理
文章平均质量分 83
斯大分
这个作者很懒,什么都没留下…
展开
-
seamCarving算法(c++版)
#include <cv.h>#include <highgui.h>#include <stdio.h>#include <stdlib.h>#include "cstringt.h"#include "io.h"#include <string>#include <vector>#i原创 2018-02-27 14:51:38 · 2315 阅读 · 0 评论 -
膨胀腐蚀
#include "opencv2/imgproc/imgproc.hpp"#include "opencv2/highgui/highgui.hpp"#include "highgui.h"#include <stdlib.h>#include <stdio.h>using namespace cv;/// 全局变量Mat src, erosion_ds...原创 2018-02-27 15:50:14 · 190 阅读 · 0 评论 -
线性滤波器对图像进行平滑处理
#include "opencv2/imgproc/imgproc.hpp"#include "opencv2/highgui/highgui.hpp"using namespace std;using namespace cv;/// 全局变量int DELAY_CAPTION = 1500;int DELAY_BLUR = 100;int MAX_KERNEL_LENGTH ...原创 2018-02-27 15:49:44 · 712 阅读 · 0 评论 -
形态学变换
#include "opencv2/imgproc/imgproc.hpp"#include "opencv2/highgui/highgui.hpp"#include <stdlib.h>#include <stdio.h>using namespace cv;/// 全局变量Mat src, dst;int morph_elem = 0;int m...原创 2018-02-27 15:49:11 · 352 阅读 · 0 评论 -
sobel导数边缘检测(一阶导数求边缘)
#include "opencv2/imgproc/imgproc.hpp"#include "opencv2/highgui/highgui.hpp"#include <stdlib.h>#include <stdio.h>using namespace cv;/** @function main */int main(){ Mat src, src...原创 2018-02-27 15:48:47 · 923 阅读 · 0 评论 -
Laplace算子边缘检测(二阶导数)
#include "opencv2/imgproc/imgproc.hpp"#include "opencv2/highgui/highgui.hpp"#include <stdlib.h>#include <stdio.h>using namespace cv;/** @函数 main */int main(){ Mat src, src_gray, ...原创 2018-02-27 15:48:18 · 825 阅读 · 0 评论 -
Canny边缘检测
#include "opencv2/imgproc/imgproc.hpp"#include "opencv2/highgui/highgui.hpp"#include <stdlib.h>#include <stdio.h>using namespace cv;/// 全局变量Mat src, src_gray;Mat dst, detected_ed...原创 2018-02-27 15:47:50 · 240 阅读 · 0 评论 -
霍夫变换检测直线
#include "opencv2/highgui/highgui.hpp"#include "opencv2/imgproc/imgproc.hpp"#include <iostream>using namespace cv;using namespace std;void help(){ cout << "\nThis program demonst...原创 2018-02-27 15:47:21 · 170 阅读 · 0 评论 -
霍夫变换检测圆
#include "opencv2/highgui/highgui.hpp"#include "opencv2/imgproc/imgproc.hpp"#include <iostream>#include <stdio.h>using namespace cv;/** @function main */int main(){ Mat src, src_...原创 2018-02-27 15:46:20 · 720 阅读 · 0 评论 -
数字图像处理(matlab)
图像反转:代码:I=imread('coins.png');R=255-I;subplot(1,2,1);imshow(I);title('原图');subplot(1,2,2);imshow(R);title('反转后'); 二值图像:代码:I=imread('coins.png')YZmax=max(max(I))YZmin=min(min(I))initialYZ=(YZmax+YZmin)...原创 2018-02-27 15:41:59 · 610 阅读 · 0 评论 -
灰度归一化算法比较(SQI,TT等)
gross.h#ifndef gross_h #define gross_h void GrossBrajovic(IplImage *src, std::string dstfilename);void Gross(IplImage *src, std::string filename);void fill0(double **u, int n);void interp(double...原创 2018-02-27 15:37:10 · 1227 阅读 · 0 评论 -
几种图像放缩的方法
#include <iostream>#include <opencv2/core/core.hpp>#include <opencv2/imgproc/imgproc.hpp>#include <opencv2/highgui/highgui.hpp>#include <opencv2/opencv.hpp>#include ...原创 2018-02-27 15:15:12 · 1152 阅读 · 0 评论 -
py-faster-rcnn 修改demo.py文件将所有目标框都显示在同一张图里
#!/usr/bin/env python# --------------------------------------------------------# Faster R-CNN# Copyright (c) 2015 Microsoft# Licensed under The MIT License [see LICENSE for details]# Written by ...原创 2018-02-27 15:13:23 · 1744 阅读 · 0 评论 -
caffe python接口可视化特征
#coding:utf-8import numpy as npimport matplotlib.pyplot as pltimport osimport caffeimport sysimport pickleimport cv2caffe_root = '../' deployPrototxt = '/home/hrw/caffe/extractFeature/dep...原创 2018-02-27 15:09:44 · 263 阅读 · 0 评论 -
caffe python接口训练VGG
# -*- coding: utf-8 -*-"""@author: root"""#matplotlib是python最著名的绘图库import matplotlib.pyplot as pltimport caffe#import cv2from numpy import *caffe.set_device(0)caffe.set_mode_gpu()solver =...原创 2018-02-27 15:08:02 · 409 阅读 · 0 评论 -
caffe获取python接口的mean.npy文件
#!/usr/bin/env pythonMEAN_BIN = 'imagenet_mean.binaryproto'MEAN_NPY = 'mean.npy'from caffe.proto import caffe_pb2from caffe.io import blobproto_to_arrayprint('generating mean file...')mean_b...原创 2018-02-27 14:55:35 · 892 阅读 · 0 评论 -
caffe各种计算相似度的函数以及分类测试
import numpy as npimport sysimport collectionsfrom caffe.proto import caffe_pb2from numpy import *import matplotlib.pyplot as pltimport osimport shutilfrom PIL import Imageimport matplotlib.p...原创 2018-02-27 14:54:18 · 663 阅读 · 0 评论 -
添加椒盐噪声
#include <iostream>#include <opencv2/core/core.hpp>#include <opencv2/highgui/highgui.hpp>#include <opencv2/imgproc/imgproc.hpp>void salt(cv::Mat image, int n){ int i, j;...原创 2018-02-27 15:50:41 · 1823 阅读 · 1 评论