Filter löschen
Filter löschen

Incorrect Dimension of matrix multiplication Where I= 178*284 T =8*8, how to make the I compatible to T, If multiplication is done element wise

1 Ansicht (letzte 30 Tage)
I = imread('Published\SAMPLE1.jfif');
figure();
imshow(I);
%display(I);
I = rgb2gray(I);
figure();
imshow(I);
I = im2double(I);
title("Vein Image");
n = input("enter the basis matrix dimension: ");
T= dctmtx(n);
disp(T);
dct1 = @(block_struct) T * block_struct.data * T';
B = blockproc(I,[n n],dct1);
I1 = imresize(I,0.90);
display(B);
figure();
imshow(B);
invdct = @(block_struct) T' * block_struct.data * T;
I2 = blockproc(B,[8 8],invdct);
figure();
imshow(I2);
title("Image");

Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by