Problem in image classification
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,Im new to the area of image processing. I want to classify an image into different categories(into different classes).How it should be done ?
댓글 수: 0
답변 (1개)
Walter Roberson
2011년 4월 11일
That topic has kept entire teams of PhD's busy for decades and is likely to take more decades yet.
If you are willing to restrict the varieties of images and what you want to classify them as, then people might be able to offer some more-specific suggestions.
댓글 수: 6
Walter Roberson
2011년 4월 22일
You just need to find the _number_ of components? Or you need to identify which components are present, and the selection of components for any one image will be used to decide which class it falls in to? Or do you need to find the boundaries within each image of components with known properties? Or do you need the program to automatically figure out the "best" number of components _and_ the location of those components??
If you knew the number of components ahead of time, N, then
[X,map] = rgb2ind( repmat(rgb2gray(IMAGE),[1,1,3]), N );
This would quantize the intensities of the pixels to the "best" (least squared error) N intensities. The result would, however, have no pretense of having the N different values connected together, but perhaps it is enough to give you a good start. For example, you could bw1 = bwlabel(X==1); rp1 = regionprops(bw1); and then go through and remove "small" regions from consideration -- though imerode() might be better for that particular purpose.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!