Dear Dr. Wagner,
I wonder is it possible to add an option on the GUI to remove smoothing process, just like the option 'Do not apply denoise'. It will be super helpful, since in some case the smoothing process significantly shortens the length of objects. I tried to make changes to the code in two ways, not sure which one is better or easier or correct? May I have some feedback? Thank you so much!
I tried it on the source code of 1.0.9-SNAP
//Try change default smoothing to 0 @line464. Not sure whether this 0 value works
spinnerSmoothingFactorModel.setMinimum(0.0);
or
//try to add option to remove smoothing @line 152
private static final String PREF_NOSMOOTH = "ndef.nosmoothing";
//Try add option @line 458
checkboxNosmoothing = new JCheckBox("");
checkboxNosmoothing.setSelected(false);
//Not sure about this No smoothing option setting @line 1114
JLabel labelnosmoothing= new JLabel("Do not apply smoothing");
c = new GridBagConstraints();
c.weightx = 0.5;
c.fill = GridBagConstraints.HORIZONTAL;
c.gridx = 0;
c.gridy = gridy;
c.insets = new Insets(0, 5, 0, 5);
pane.add(labelNosmoothing, c);
c = new GridBagConstraints();
c.weightx = 0.5;
c.fill = GridBagConstraints.HORIZONTAL;
c.gridx = 1;
c.gridy = gridy;
c.insets = new Insets(0, 5, 0, 5);
pane.add(checkboxNosmoothing, c);
gridy++;
// Add no smooth option @line 1214
ij.Prefs.set(PREF_NOSMOOTH, checkboxNosmoothing.isSelected());
//Not sure about this setting@line143
/*
* No smooth checkbox
*/
checkboxNosmoothing.setSelected(Boolean.parseBoolean(ij.Prefs.get(PREF_NOSMOOTH, "false")));