I HAVE CONVERTED AN IMAGE FROM RGB TO LAB AND SELECTED B COMPONENT TO APPLY FAN BEAM TRANSFORM...BUT I AM GETTING 361*360 WHICH CAN NOT BE DIVIDED INTO SQUARE MATRIX

1 回表示 (過去 30 日間)
C = imread('lena.png');
lab = rgb2lab(C);
L=lab(:,:,3);
imshow(L);
output_size = max(size(L));
D = 315.25;
dsensor3 = 0.1985;
[F3, sensor_pos3, fan_rot_angles3] = fanbeam(L,D,...
'FanSensorSpacing',dsensor3);
imshow(F3);
Ifan3 = ifanbeam(F3,D,'FanSensorSpacing',dsensor3,'OutputSize',output_size);
figure, imshow(Ifan3)
I want to divite the F3 into 4*4 block...but the size of F3 i am getting is 361*360....now what can i do?

採用された回答

Image Analyst
Image Analyst 2022 年 8 月 3 日
Either crop it, enlarge it, or resize it.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by