Image analysis and feature extraction

조회 수: 6 (최근 30일)
hanem ellethy
hanem ellethy 2016년 4월 24일
댓글: Image Analyst 2016년 4월 24일
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
Image Analyst 2016년 4월 24일
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
hanem ellethy 2016년 4월 24일
okay, please advice how can I extract features for the previous image related to the two points in the image?
when I tried segmentation and regionprops I got two blobs and (2x1)structure array
when i tried to use something like this
regions = detectMSERFeatures(I);
I got a message means that it can't be done for unit 8 image
L7=imread('fig7.jpg');
L7=rgb2gray(L7);
LL7=imcomplement(L7);
figure(1);imshow(L7);title('original image');
h = imrect(gca, [169 5 989 788]);
maskImage = h.createMask();
% Mask the image with the rect.
LL7(~maskImage) = 0;
figure(2),imshow(LL7);title('ROI after applying mask');
binaryImage7 = LL7 > 100;
binaryImage7 = bwareaopen(binaryImage7,30);% Get rid of small specks of noise
binaryImage7 = imfill(binaryImage7, 'holes');
tt7 = regionprops(binaryImage7, 'all');
please help may be I can not explain good
Image Analyst
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by