I would like to erode a mask in 3D asymmetrically. I mean that I would like to erode it more from top to bottom that from bottom to top.
Up to now I have been using the following:
run("CLIJ Macro Extensions", "cl_device="); input = getTitle(); Ext.CLIJ_push(input); Ext.CLIJ_minimum3DBox(input,"Eroded",19,19,33); Ext.CLIJ_pull("Eroded"); Ext.CLIJ_clear();
I don’t know if there is a way of doing directly the asymmetric erosion I want but the only way I could think of doing it would be of eroding it twice, and then combining the bottom half of one erosion and the top half of the other. The problem is that I would first need to compute the centre of the object in order to know where to combine it. Also, the results after combining the two halves makes a sort of “step” in the horizontal plane.
Would you have any suggestions on how it is best to do it ?
Thank you very much