
Image process
文章平均质量分 57
there2belief
这个作者很懒,什么都没留下…
展开
-
开运算、闭运算及其所用
1.开运算 开运算 = 先腐蚀运算,再膨胀运算(看上去把细微连在一起的两块目标分开了) 开运算的效果图如下图所示: 开运算总结: (1)开运算能够除去孤立的小点,毛刺和小桥,而总的位置和形状不便。 (2)开运算是一个基于几何运算的滤波器。 (3)结构元素大小的不同将导致滤波效果的不同。 (4)不同的结构元素的选择导致了不同的分割,即提取出不同的特征。2.闭运算 闭运算 = 先膨胀运算,再腐蚀运算(看上去将两个细微连接的图块封闭在一起) 闭运算的效果图如下图所示:- ...转载 2021-03-04 09:13:04 · 14936 阅读 · 1 评论 -
OpenCV错误(-215:Assertion failed) npoints > 0 in function
在使用OpenCV绘图函数时容易遇到(-215:Assertion failed) npoints > 0 错误。代码如下:import numpyimport cv2mask = numpy.zeros([4000, 4000, 3])cnt=[[ 1626. 360.] [ 1776. 3108.] [ 126. 3048.] [ 330. 486.]]cv2.drawContours(mask, [cnt], 0, (0, 255, 0), -1)出错.原创 2021-02-02 17:44:55 · 3246 阅读 · 2 评论 -
OpenCV minAreaRect
OpenCV Minimum Area RectangleIn theprevious blog, we discussed image moments and how different contour features such as area, centroid, etc. can be extracted from them. In this blog, we will learn how to draw a minimum area rectangle around the region o.转载 2021-02-02 15:40:18 · 627 阅读 · 0 评论 -
DATA FUSION CONTEST 2019 and 1st Solution
比赛信息:链接The Contest: Goals and OrganisationThe 2019 Data Fusion Contest, organized by the Image Analysis and Data Fusion Technical Committee (IADF TC) of the IEEE Geoscience and Remote Sensing Society (GRSS), the Johns Hopkins University (JHU), and the.原创 2020-11-13 11:54:15 · 403 阅读 · 0 评论 -
绘制 polygons and polylines(shapefile读写):pyshp (shapefile)版本
注意:安装命令:pip install pyshp,使用:import shapefileBefore doing anything you must import the library.>>> import shapefileThe examples below will use a shapefile created from the U.S. Census Bureau Blockgroups data set near San Francisco, CA and转载 2020-06-21 18:59:43 · 2551 阅读 · 0 评论 -
绘制 polygons and polylines:OpenCV版本
OpenCV documentation index - OpenCV 文档索引https://www.docs.opencv.org/master (4.x)https://www.docs.opencv.org/master/3.4 (3.4.x)https://www.docs.opencv.org/3.4/2.4 (2.4.x)https://www.docs.opencv.org/2.4/1. 3.4 (3.4.x) -> Modules -> Image Proces转载 2020-06-21 18:54:25 · 2089 阅读 · 0 评论 -
emgu.cv的图像金字塔操作
emgu.cv里有三个常用的影像金字塔(重采样,每一级倍数2)函数:1) BuildPyramid(int maxLevel) 建立多级影像金字塔C#例子:Int maxLevel;ImageGray,byte> [] imgs = img.BuildPyramid(maxLevel);2) PyrDown() 向下(粗)重采样C#例子:ImageGray,byte原创 2017-06-19 00:08:19 · 1572 阅读 · 0 评论 -
ENVI栅格裸数据生成shp和kml矢量文件
ENVI栅格裸数据生成shp和kml矢量文件。生成kml文件需要用到ArcMap,但是ArcMap不能直接加载ENVI裸数据,需要在ENVI里将栅格数据转为shp或另存为ArcViewRaster。前者生成kml文件的流程如下:1) ENVI打开栅格裸数据;2) 选择Vector -> Raster to Vector,获得evf格式的矢量数据;3)原创 2017-06-19 20:32:36 · 23911 阅读 · 7 评论 -
遥感影像降位16位到8位
From: https://blog.youkuaiyun.com/shenshanxiaozhu/article/details/53224554 常用卫星影像基本上都是16位影像,在某些应用场景下需要将16位影像降到8位影像,这样不仅减小了数据量,也便于后期处理。常用的降位方法先通过直方图进行百分比截断,然后进行拉伸包括,最简单的线性拉伸,分段拉伸以及对数变换和指数变换等。这里结合常用影像的特点...转载 2019-01-19 21:42:03 · 8787 阅读 · 3 评论