Image analysis and feature extraction
이전 댓글 표시
Dear all I am working on a project dealing with images. I want to extract the features of each image then combine all features into one table( database).
Note: I did one project before but each image has some tissues (blobs) so I dealt with tissues as a record not the image. But in this case I need to deal with the image as a record.
Thank you
답변 (1개)
Image Analyst
2016년 4월 24일
0 개 추천
I don't understand what you mean when you're talking about doing image analysis as an image versus a record. This makes absolutely no sense to me: "I dealt with tissues as a record not the image. But in this case I need to deal with the image as a record." You want "as a record" in both cases but what's the difference between "tissues" in the first case and "image" in the second case?
If you want to know how to measure some things in an image, see my image segmentation tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
댓글 수: 7
hanem ellethy
2016년 4월 24일
Image Analyst
2016년 4월 24일
To do that, just have one gigantic blob that is basically the whole image. Then anything you measure from separate blobs before will now be measured as if the image were one giant rectangular blob.
% Make mask the entire image.
binaryImage = true(size(grayImage));
% Now make measurements
measurements = regionprops(binaryImage, 'All');
hanem ellethy
2016년 4월 24일
hanem ellethy
2016년 4월 24일
편집: hanem ellethy
2016년 4월 24일
Image Analyst
2016년 4월 24일
Well you said "I don't want to segment the image, I need to extract features without segmentation" so if you don't segment it - meaning you don't break it up into separate regions - then all you have is one giant rectangular region that is the whole image.
The only feature a single pixel would have is its gray level. What other features do you think a single point (single pixel) should have?
hanem ellethy
2016년 4월 24일
Image Analyst
2016년 4월 24일
Sorry, I don't know what to tell you. You're now segmenting the image. I thought you did not want to do that. So you can either segment and measure the image, like you're doing here. Or you can not segment the image and just measure the whole image as one giant rectangular blob. Or you can look at just two points like you mentioned before and the only thing you can get from that is the gray levels or colors at those locations and the distance between the two points.
Regarding your error message, you can't convert to gray scale with rgb2gray if your image is already gray scale. So check and only call it if it's gray scale
if ndims(L7) == 3
L7=rgb2gray(L7);
end
카테고리
도움말 센터 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
