我想将每个彩色的图像中的物体数计算在内。
例:我想把黄米或绿色大米列入图像。
请让我在一定程度上这样做?
我想将每个彩色的图像中的物体数计算在内。
例:我想把黄米或绿色大米列入图像。
请让我在一定程度上这样做?
http://www.mathwork.com/products/image/demos.html?file=/products/demos/shipping/images/ipexrice.html 图像处理工具箱。 如果你读到“ de”,你已经制定了一些法典,将分别孤立每个大米谷物,从而塑造形象。
关于计算具有黄色或绿色等特殊颜色的谷物的数量,再次通过 de读:大米的谷物与黄色或绿(或 o或ink)等小块不同颜色不相色。 相反,大米谷物的颜色是专门制造的,因此,它们在整个彩色地图上平分。
So to proceed with your task you re going to have to provide some definition of yellow or green , perhaps in terms of being within a particular range of RGB values.
Having done this, you can then use the variable labeled
(that is constructed for you in the demo) together with the regionprops
command, to give you a list of the pixels that are within each rice grain boundary. Simply compare those pixels to your definitions of yellow or green, and you re there.
假设您在矩阵表a
上有一个形象(大小m*n*3
),你想找到有色标的物体序号<>[r,g,b]。
first, select only pixels with the correct color:
bb = (a(:,:,1) == r & a(:,:,2) == g &a(:,:,3) == b);
Than:
[~,num] = bwlabel(bb,8)
<代码>num为物体数目。
This is best done by working in a different colorspace than the RGB one (think HSV, Lab*, ..).
Steve Eddins 刊登了一系列文章,说明如何从图像中分离某些颜色的物体(绿色涂料;Ms in his case):
I am looking for a recommendation for an introduction to image processing algorithms (face and shape recognition, etc.) and wondered if anyone had an good recommendations, either for books, ...
I m looking for the fastest and more efficient method of detecting an object in a moving video. Things to note about this video: It is very grainy and low resolution, also both the background and ...
I am learning digital image processing on my own and would like recomendations on good reference books. If you know of books to definately stay away from that would be useful as well. Thanks
I have this image: I want to read it to a string using python, which I didn t think would be that hard. I came upon tesseract, and then a wrapper for python scripts using tesseract. So I started ...
I m building a site for a client that needs to support image uploads (an artist) through the admin interface. Since most of the images are pretty high-res, I wanted to create thumb copies of the image ...
I have an image processing routine that I believe could be made very parallel very quickly. Each pixel needs to have roughly 2k operations done on it in a way that doesn t depend on the operations ...
I m currently working on writing a version of the MATLAB RegionProps function for GNU Octave. I have most of it implemented, but I m still struggling with the implementation of a few parts. I had ...
I ve been implementing an adaptation of Viola-Jones face detection algorithm. The technique relies upon placing a subframe of 24x24 pixels within an image, and subsequently placing rectangular ...