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!
