clEsperanto / pyclesperanto_prototype

GPU-accelerated bio-image analysis focusing on 3D+t microscopy image data
http://clesperanto.net
BSD 3-Clause "New" or "Revised" License
208 stars 44 forks source link

x,y,z ?mix? in 3D Image Segmentation demo #266

Closed ClementCaporal closed 1 year ago

ClementCaporal commented 1 year ago

Hello, thank you for your work.

In case it is useful to report this, I cannot reproduce https://github.com/clEsperanto/pyclesperanto_prototype/blob/master/demo/segmentation/Segmentation_3D.ipynb under "Intensity and background correction" without the x,y slice being cropped.

image

Solved by a_slice = cle.create([resampled.shape[1], resampled.shape[0]]) -> a_slice = cle.create([resampled.shape[1], resampled.shape[2]])

haesleinhuepf commented 1 year ago

Hi @ClementCaporal ,

thanks for the report! I think you are right, I have the suspion that the code should be indeed cle.create([resampled.shape[1], resampled.shape[2]]). But I'm not sure why my result looks different than yours. I just ran the notebook (with the code as it was) and my result looks like this:

image

Why do your input images have a different size?

Thanks!

Best, Robert

haesleinhuepf commented 1 year ago

Ok, I'm guessing you applied it to the original dataset.

I just updated the notebook. If you find another issue of that kind, please let me know!

Thanks for your feedback! :-)