MultiCrops在同一图像中 [英] MultiCrops in same image

查看:94
本文介绍了MultiCrops在同一图像中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张图像里面有6张图片..我的任务是从这张图片中裁剪掉6张图片..

I ve an image which has 6 images within it..I ve the task of cropping the 6 images out of this image..

目前我按照这个程序..

1.保存原始图像的副本

2.使用任何工具(Picasa)裁剪图像以获取第一张图像

3.保存裁剪图像为图像1

4.打开原稿以裁剪图像2

5.重复此次6次

Currently I follow this procedure..
1. Save copy of original image
2. Crop the image to get first image using any tool(Picasa)
3. Save the cropped image as image 1
4. Open the original to crop for image 2
5. Repeat this 6 times

是有一种方法可以一次性提取所有6张图像吗?多重裁剪?

Is there a way in which I can extract out all the 6 images in one go? Multi-cropping?

推荐答案

是的,这是可能的。您需要熟悉投资回报率(感兴趣的区域)概念。

Yes, it's possible. You need to get familiarized with the ROI (Region of Interest) concept.

C 示例显示了如何在图像中设置ROI。基本上,它在相机的帧中设置ROI,从中创建新图像,在图像中进行一些处理(反转颜色),然后将图像复制回原始帧以供显示。

This C example shows how to set a ROI in an image. Basically it sets a ROI in a frame from the camera, creates a new image from it, does some processing (invert colors) in the image and then copies the image back to the original frame for display.

Python 示例还说明了如何使用投资回报率。

This Python example also shows how to work with ROIs.

这篇关于MultiCrops在同一图像中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆