Skip to content

Commit

Permalink
Fix Dimension Problems
Browse files Browse the repository at this point in the history
Have the swap of time and Z be fixed, and channel range selected no longer be limited.
  • Loading branch information
AvocadoMoon committed Sep 24, 2024
1 parent d787dd8 commit 568ff6f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ public class ImageIntoMemory extends EventListenerList implements ActionListener

private static final Logger logger = N5ImageHandler.getLogger(ImageIntoMemory.class);

public ImageIntoMemory(double cDim, double tDim, double zDim, SimResultsLoader simResultsLoader){
public ImageIntoMemory(double cDim, double zDim, double tDim, SimResultsLoader simResultsLoader){
this.simResultsLoader = simResultsLoader;
channelStartTextField = new HintTextField("1");
channelEndTextField = new HintTextField("" + (int) cDim);

timeStartTextField = new HintTextField("1");
timeEndTextField = new HintTextField("" + (int) tDim);

zStartTextField = new HintTextField("1");
zEndTextField = new HintTextField("" + (int) zDim);

timeStartTextField = new HintTextField("1");
timeEndTextField = new HintTextField("" + (int) tDim);

// Create the frame
frame = new JFrame("Select " + simResultsLoader.userSetFileName + " Dimensions");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Expand Down Expand Up @@ -113,8 +113,8 @@ public void actionPerformed(ActionEvent e) {
if (e.getSource().equals(okayButton)){
frame.dispose();

startC = Integer.parseInt(channelStartTextField.getText()) - 1;
endC = Integer.parseInt(channelEndTextField.getText()) - 1;
startC = Integer.parseInt(channelStartTextField.getText());
endC = Integer.parseInt(channelEndTextField.getText());
startT = Integer.parseInt(timeStartTextField.getText()) - 1;
endT = Integer.parseInt(timeEndTextField.getText()) - 1;
startZ = Integer.parseInt(zStartTextField.getText()) - 1;
Expand Down

0 comments on commit 568ff6f

Please sign in to comment.