Skip to content
Snippets Groups Projects
Commit cd3c4e03 authored by Valentin Debarnot's avatar Valentin Debarnot
Browse files

update psf size when switching fron 3d to 2d

parent f60450a6
No related branches found
No related tags found
No related merge requests found
...@@ -248,6 +248,10 @@ public class SettingsDialog extends JDialog implements ActionListener, KeyListen ...@@ -248,6 +248,10 @@ public class SettingsDialog extends JDialog implements ActionListener, KeyListen
Params.thresholdDetection = spnThreshold.get(); Params.thresholdDetection = spnThreshold.get();
Params.NeigenElements = spnNbEigen.get(); Params.NeigenElements = spnNbEigen.get();
Params.dim = bn2D.isSelected() ? 2 : 3; Params.dim = bn2D.isSelected() ? 2 : 3;
if (Params.dim == 2){
Params.psf_visible_width[2]=1;
spnPSFZ.set(Params.psf_visible_width[2]);
}
} catch (Exception ex) { } catch (Exception ex) {
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment