Hi,
I have some question regarding ImageJ2 and imglib2 scripting with python (in Fiji).
First, is there a simple way to deal with out of bound error in this case:
from net.imglib2.algorithm.region.hypersphere import HyperSphere
ops.stats().max(HyperSphere(img,point,radius))
If i understand it well HyperSphere allow me access img data with a new cursor which follow a sphere shape, and cursor and randomAccess doesn’t have out of bound check.
Second ops.math().add() and subtract() doesn’t work for me with to subtract or add a value froom an image. It work fine when i do it on 2 images. Is it normal or i’m doing it wrong?
Then what is the way to go to deal with ROI in ImageJ2 scripting? I suppose it’s to create new RandomAccessibleInterval() and/or IterableInterval() over existing image (like HyperSphere) but i have no idea how to do it.
Thanks,
Rémy