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 CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by