PerkLab / SlicerSandbox

Collection of utilities that are not polished implementations but can be useful to users
BSD 2-Clause "Simplified" License
69 stars 24 forks source link

LineProfile : express distance from start of line in percentage. #7

Closed chir-set closed 4 years ago

chir-set commented 4 years ago

Show percent distance along line from start.

This may decrease measurement steps to calculate the importance of an arterial stenosis.

(Though not all types of stenosis are concerned here, namely, concentric stenosis.)

chir-set commented 4 years ago

So, logic.updateOutputTable would compute all the columns

This part is done.

move the checkbox near the plotting or make it clear in the name or tooltip

I'm afraid I don't fully understand what you mean here, as well as the motivation.

lassoan commented 4 years ago

move the checkbox near the plotting or make it clear in the name or tooltip

I'm afraid I don't fully understand what you mean here, as well as the motivation.

The checkbox may still be useful for choosing which column to use as X axis in the plot (absolute or relative). It is easy to change the x axis in Plots module, too, so it is also OK to remove the checkbox and always use absolute distance as X axis in plots.

chir-set commented 4 years ago

It is easy to change the x axis in Plots module, too,

You mean, interactively in the Plot widget ? Can't figure out how. I saw there can be multiple 'Plot data series' that are checkable.

Ideally, there could be a second X-axis, one scaled on the absolute distance and the second one on the relative distance. Don't know if it's possible.

lassoan commented 4 years ago

I've made a few small adjustments and merged. Thanks a lot for your contribution!