MIScnn icon indicating copy to clipboard operation
MIScnn copied to clipboard

img_shape not updateded in sample object

Open MLRadfys opened this issue 5 years ago • 2 comments
trafficstars

Hi Dominik,

I just noticed that the img_shape attribute is not updated in a sample object when for example using the resample subfunction. Is that on purposes in order to preserve information about the original dimension. Otherwise adding :

sample.shape = img_data.shape

to the preprocessing function should do the magic.

Cheers,

Michael

MLRadfys avatar Jun 15 '20 07:06 MLRadfys

Hello Michael,

you are right. Thanks for pointing this out.

It was originally intended but, as far as I can see right now, it can and should be modified accordingly when using the resize or resample subfunction.

I will dig into it and add the shape update to the two subfunctions.

Cheers, Dominik

muellerdo avatar Jun 15 '20 17:06 muellerdo

Hi Dominik,

thanks! It does not affect the functionality though. I just stumbled about it while debugging my code :-)

Cheers,

Michael

MLRadfys avatar Jun 15 '20 20:06 MLRadfys