필터 지우기
필터 지우기

How can I split the image into blocks and then extract the features from each block?

조회 수: 2 (최근 30일)
Hello
I extracts image features (invariant moment) using this code
[filename, pathname] = uigetfile({'*.*';'*.bmp';'*.jpg';'*.gif'}, 'Pick a Degraded Fingerprint Image File');
im = imread([pathname,filename]);
figure, imshow(im);title('Fingerprint Image');
n1=invmoments(im);
How can I split the image into blocks(every block like 32x32) and then extract the features from each block?

채택된 답변

Image Analyst
Image Analyst 2018년 8월 14일

추가 답변 (1개)

Yuvaraj Venkataswamy
Yuvaraj Venkataswamy 2018년 8월 14일
if true
mat2cell(I,size(I,1)/32*ones(32,1), size(I,2)/32*ones(32,1), 3)
end
This will split an image into 32 x 32 blocks. Then you can extract image features from each blocks using for loop.
  댓글 수: 6

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

Community Treasure Hunt

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

Start Hunting!

Translated by