如何获得图像的面积和均衡所有的图像 [英] How to get the area of the image and equalize all the images

查看:149
本文介绍了如何获得图像的面积和均衡所有的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想得到的图像区域,如果图像是 150 * 30像素,比它返回/通知我这个值 150 * 30 ,如果我有多个图像,我想要所有的大小相等,像所有的大小 150 * 30像素比我应该做什么,因为我想这样做为火车我的数据使用 SVM

I want to get the area of the image like if the image is 150*30 pixels , than it return/inform me this value150*30 , and if i have multiple images and i want all of them to be of equal size like all of them to be the size of 150*30 pixels than what should i do as i want to do this for train my data using SVM

推荐答案

您应该使用resize函数,例如

You should use the resize function, like this for example

resize(input,output,Size(150,30));

这篇关于如何获得图像的面积和均衡所有的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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