السلام عليكم ورحمة الله وبركاته
احتاج مساعده بخصوص تقسيم الصوره الى 16 * 16 overlaooing block
ومن ثم عمل مقارنه
اعلم طريقة تقسيم الصوره الى بلوكات16 * 16 ولكن بلوكات عاديه وليست متداخله
الخطوات المطلوبه هي التالي :
1- Convert a color image into RGB components.
2- Divide the image into overlapping blocks.
3- Calculate relation between the blocks using color distribution
الخطوه الاولى كتبت الكود الخاص بها وهو كالتالي
close all;
clear all;
clc
% Clear the command window.
myimage=imread('image.jpg');
% Reading the input image 'forgery image
figure(1)
imshow(myimage)
title('forgery image')
% convert the color image in to different components
% Red component
R = myimage(:,:,1);
image(R), colormap([[0:1/255:1]', zeros(256,1), zeros(256,1)]), colorbar;
% Green Component
G = myimage(:,:,2);
figure;
image(G), colormap([zeros(256,1),[0:1/255:1]', zeros(256,1)]), colorbar;
% Blue component
B = myimage(:,:,3);
figure;
image(B), colormap([zeros(256,1), zeros(256,1), [0:1/255:1]']), colorbar;
blockSizeR = 16;
% Rows in block.
blockSizeC = 16;
% Columns in block.
% Divide the image into overlapping blocks
الخطوه الثانيه والثالثه المفترض تطبيقها على كل لون الاحمر والازرق والاخضر
فهل استخدم الفنكشن التاليه
blkproc()
ام انها تستخدم فقط مع non-overlapping
وكيف استخدمها ان كانت صحيحه
و الخطوه الثالثه حاولت كثيرا ولم اخرج بنتيجه
ارجو مساعدتي