I like to make a tool to create isocontours in planar images, I need that for image processing. The way I want it to work is as follow:
- you select the tool
- having an image you select one pixel and with mouse down you adjust the isocontour level
- the tool shall look for the maximum value (MV) in the neighborhood of selected point, default level at start will be the minimum value between 50% MV and the ratio of current pixel value and MV, so current pixel is always included in the ROI.
- Moving up the mouse will increase isocontour level and moving down reduce that.
- When user agree just release mouse button and the new ROI shall be added to ROI manager.
The contour must be a unique poligon with no holes containing both the selected point and the MV point.
I wonder if there is some easy way to start with, then I will need some advices to develop the tool itself.