You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tl:dr: morphological operation with inconsistent name or algorithm, and we try to rename them to make more sense and scalable
We have a bit of inconsistancy around morphology operation, between grayscale and binary, and how to use them.
From the prototype (same for sphere pattern):
dilate_box, erode_box -> binary operation each with their kernel, no radius parameter
minimum_box, maximum_box -> grayscale operation (equivalent to dilate and erode but grayscale), with radius parameter
opening_box, closing_box -> grayscale operation relying on the tier1 kernel minimum_box and maximum_box, , with radius parameter
In CLIc, same as the prototype with the following renaming:
dilate_box and erode_box -> dilate and erode
minimum_box, maximum_box -> minimum_filter and maximum_filter
opening_box, closing_box -> opening and closing
This leads now to 2 morphological processing pipeline available:
grayscale with minimum and maximum filter reused in opening and closing, box shaped only, with radius parameter
binary with erode and dilate but nearly not reused in other filters, and no radius parameter
To this we have to add user request for custom structuring element operations which should run on grayscale and binary. I belive it would be nice to be able to specify any structuring element.
Here is the proposed reorganisation of name with legacy for the prototype
I will try to aim for the following structure:
binary filter with pre-encoded structuring element :
in general, having a footprint parameter is a good idea and I agree, we should make names more consistent. Just a remark regarding the footprints: I experimented with this during clij1 times and concluded that a second image parameter (footprint) slows down the operations substantially. That's why current implemenations use for loops with math inside instead of footprints. Hence, keeping versions of the functions without footprint might be good for performance.
We have a bit of inconsistancy around morphology operation, between grayscale and binary, and how to use them.
From the prototype (same for sphere pattern):
In CLIc, same as the prototype with the following renaming:
This leads now to 2 morphological processing pipeline available:
To this we have to add user request for custom structuring element operations which should run on grayscale and binary. I belive it would be nice to be able to specify any structuring element.
Here is the proposed reorganisation of name with legacy for the prototype
I will try to aim for the following structure:
binary filter with pre-encoded structuring element :
grayscale filter with pre-encoded structuring element :
custom structuring element grayscale (also work on binary):
strel
parameter)strel
parameter)Side question:
strel
element behing renamefootprint
?👋 @haesleinhuepf a quick opinion on this? deprecation of some filters can be done later.
The text was updated successfully, but these errors were encountered: