- 博客(3)
- 资源 (4)
- 收藏
- 关注
原创 扫描法取单轮廓坐标
clc;clear;edgeIm = imread('0241.bmp');%figure, imshow(edgeIm);%edgeIm中非零元素的坐标,即轮廓坐标[i, j] = find(edgeIm);%i为对应的行,j为对应的列,要与坐标x,y 区别开来。一般x对应列j。y对应i行。%轮廓点数numPoints = size(i, 1);%当然size(j,1)。相同curNum = 0...
2018-06-03 17:29:40
1475
1
转载 matlab 提取一个图形对象的最小外接矩形 并计算出面积
function [rectx,recty,area,perimeter] = minboundrect(x,y,metric)% minboundrect: Compute the minimal bounding rectangle of points in the plane% usage: [rectx,recty,area,perimeter] = minboundrect(x,
2017-12-25 22:33:26
9267
2
原创 matlab 提取目标 并进项任意轮廓最小外接矩形代码及其实现
matlab 任意轮廓外接矩形代码及其实现;clc;clear;close all;I=imread('00121.bmp');I=rgb2gray(I);subplot(3,3,1);imshow(I);% M=im2double(I);%将unit8转成double型subplot(3,3,2),imhist(I);M1=im2bw(I,25/255);%二值图
2017-12-25 22:30:06
8890
3
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人