Info

此问题已关闭。 请重新打开它进行编辑或回答。

How do I extract and not just detect exactly one feature from a whole image?

1 次查看(过去 30 天)
Hi!Part of my project requires capturing a 2D real time image and extracting a car alone from it without any of the background details. I read up on CBIR and found a lot about image detection. I tried using SURF implementation also. I was getting the interested points, but retrieving the image back seems to be a challenge.The input image for our project will be dynamic and will keep changing every time so I am not able to fix a contour line even if I try to calculate the interested points based on that. I have attached the output i get from kmeans clustering based on colour. The only short coming is that this works only when there's a clear distinguishing color combination . car6 is the actual image and car6sample1 is the output. that is how i want the output to be even when there is no distinct color difference.Could you help me out with this?
  2 个评论
John BG
John BG 2016-4-30
why don't you try to extract the contours, then overlap the red you already got, and choose the contour that touches the red?
Do you already have the Image Processing Toolbox? In R2016 it is included the the basic pack.
There is this forum expert Image Analyst who may want to show you how to do it all
Meera Girijan
Meera Girijan 2016-4-30
I'm using R2013. From which image should I extract the contours? Is it the original? I've got this red alone because I used a kmeans clustering method. If I have similar colors in the background or for that sake different colors within the car structure I might not get such a clean image. in that case what do I do?

回答(1 个)

Walter Roberson
Walter Roberson 2016-4-30
编辑:Walter Roberson 2016-4-30
Well, if you are going to insist on clustering on color, then add a picture of a yellow banana and a red plantain to your image before clustering, so that you can be sure that you have contrasting colors so the algorithm will be sure of finding something. The result will be about as useless as clustering by color, but will have the assurance that at least two clusters exist in the image, which you otherwise could not be certain of.
  2 个评论
Image Analyst
Image Analyst 2016-4-30
Meera, Walter is right about kmeans being not a good method for finding cars, and also about being forced to find the number of clusters that you specify regardless of how many distinct clusters there actually are in the image.
A car is not one feature like you asserted - it's a whole bunch of features. Soon Walter will report his post showing all kinds of things that could be considered cars but are barely recognizable as such. You need to do further study on CBIR and image understanding. Sorry, this is not my main field of research.

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by