matlab 画实心矩形,用matlab画最小外接矩形

该博客介绍了如何在MATLAB中绘制实心矩形以及如何找到图像中二值区域的最小外接矩形。通过使用'regionprops'函数结合'BoundingBox'选项,可以从二值图像中获取最小外接矩形的坐标。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在此之前先介绍一个画矩形的函数:

rectangle('Position',[0.59,0.35,3.75,1.37],'Curvature',[0,0],'LineWidth',2,'LineStyle','--')

rectangle('Position',[x坐标,y坐标,宽,高],'Curvature',[曲率纵向,曲率横向],'LineWidth',线宽,'LineStyle','线形')

用matlab画最小外接矩形

例子:主要关注函数regionprops

======================================

function location=liences_plate_location(image_originate)

%Author: Zeng Feng

%Date: 11.24.2005

%In: image_originate -- the original image containing the

% information about the location of veichile

% lience plate

%Out: location -- containing the up-left corner location

% information and the rectangle width and

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值