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 view (last 30 days)
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?

Accepted Answer

Image Analyst
Image Analyst on 3 Aug 2022
Either crop it, enlarge it, or resize it.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!