SIRF-Exercises icon indicating copy to clipboard operation
SIRF-Exercises copied to clipboard

BrainWeb-single_slice_motion Displayed images are cropped before cropping

Open DANAJK opened this issue 5 years ago • 4 comments

Displayed images look the same after cropping - in fact the images before cropping are cropped for presentation! - bit confusing.

DANAJK avatar Jun 07 '20 21:06 DANAJK

@DANAJK is this still relevant? Maybe you could attempt a fix, if it is

KrisThielemans avatar Apr 28 '22 10:04 KrisThielemans

It looks like it is still there. When this line is called subplot_([2,3,1],FDG_arr [100:-100, 100:-100],'FDG' ,cmap="hot") FDG_arr will be (1,344,344) (I don't know how the above subplot copes without a squeeze of the first dimension). Then the array is cropped to (1,150,150) in the code, and this is similar to taking indices 100 to 344-100 in the original FDG_arr so the figures will look similar before and after cropping.

Probably the easiest thing to do is remove the [100: -100, 100:-100] in the first subplot call.

DANAJK avatar Apr 28 '22 10:04 DANAJK

Is this resolved? If not, does it need to be before the school?

KrisThielemans avatar May 27 '22 05:05 KrisThielemans

Resolving lead to the expand_dims fix for a new bug. Original aim of removing the [100:-100 … code was not implemented. Not essential, just for clarity.

DANAJK avatar May 28 '22 06:05 DANAJK