필터 지우기
필터 지우기

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 (최근 30일)
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");

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by