在matlab中编写一个代码实现这个功能:在图像中用矩形框框选中多个显著性目标,然后将矩形框都成比例放大
时间: 2023-04-03 22:05:00 浏览: 152
您好,以下是我的回答:
可以使用MATLAB中的imrect函数来实现在图像中用矩形框框选中多个显著性目标的功能。具体步骤如下:
1. 读取图像并显示
2. 使用imrect函数创建矩形框并选中目标
3. 使用getPosition函数获取矩形框的位置信息
4. 使用imresize函数将矩形框成比例放大
5. 将放大后的矩形框绘制在图像上
6. 保存处理后的图像
希望对您有所帮助。
阅读全文
相关推荐
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![](https://img-home.csdnimg.cn/images/20250102104920.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)