-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/BIOP/ijp-imagetoatlas
- Loading branch information
Showing
6 changed files
with
91 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<html> | ||
<body style='font-family:sans-serif; font-size:12px; color:#333333;'> | ||
<p style='margin-top:0;'>If you use ABBA for your research, a preprint will soon become available...</p> | ||
<p>Don't forget to cite these resources if you use them: atlas dataset, DeepSlice, QuPath.<p/> | ||
<p style='margin-top:0;'>If you use ABBA for your research, please cite this preprint:</p> | ||
<p><a href="https://doi.org/10.1101/2024.09.06.611625">https://doi.org/10.1101/2024.09.06.611625</a></p> | ||
<p>Also, don't forget to cite the other resources you may be using: atlas dataset, DeepSlice, QuPath.<p/> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/main/java/ch/epfl/biop/atlas/aligner/command/SetSlicesDeselectedCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package ch.epfl.biop.atlas.aligner.command; | ||
|
||
import ch.epfl.biop.atlas.aligner.MultiSlicePositioner; | ||
import ch.epfl.biop.sourceandconverter.exporter.IntRangeParser; | ||
import org.scijava.command.Command; | ||
import org.scijava.plugin.Parameter; | ||
import org.scijava.plugin.Plugin; | ||
|
||
import java.util.List; | ||
|
||
@SuppressWarnings("CanBeFinal") | ||
@Plugin(type = Command.class, | ||
menuPath = "Plugins>BIOP>Atlas>Multi Image To Atlas>Edit>ABBA - Deselect Slices", | ||
description = "Set the slices to deselect.") | ||
public class SetSlicesDeselectedCommand implements Command { | ||
|
||
@Parameter | ||
MultiSlicePositioner mp; | ||
|
||
@Parameter(label = "Slices to deselect, '*' for all slices, comma separated, 0-based") | ||
String slices_csv = "*"; | ||
|
||
@Override | ||
public void run() { | ||
if (slices_csv.trim().equals("*")) { | ||
slices_csv ="0:-1"; | ||
} | ||
try { | ||
List<Integer> indices = new IntRangeParser(slices_csv).get(mp.getSlices().size()); | ||
for (int index: indices) { | ||
mp.getSlices().get(index).deSelect(); | ||
} | ||
} catch (Exception e) { | ||
mp.errorMessageForUser.accept("Error during parsing of slice indices", e.getMessage()); | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
|
||
} |
42 changes: 42 additions & 0 deletions
42
src/main/java/ch/epfl/biop/atlas/aligner/command/SetSlicesSelectedCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package ch.epfl.biop.atlas.aligner.command; | ||
|
||
import ch.epfl.biop.atlas.aligner.MultiSlicePositioner; | ||
import ch.epfl.biop.atlas.aligner.SliceSources; | ||
import ch.epfl.biop.sourceandconverter.exporter.IntRangeParser; | ||
import org.scijava.command.Command; | ||
import org.scijava.plugin.Parameter; | ||
import org.scijava.plugin.Plugin; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
@SuppressWarnings("CanBeFinal") | ||
@Plugin(type = Command.class, | ||
menuPath = "Plugins>BIOP>Atlas>Multi Image To Atlas>Edit>ABBA - Select Slices", | ||
description = "Set the slices to select.") | ||
public class SetSlicesSelectedCommand implements Command { | ||
|
||
@Parameter | ||
MultiSlicePositioner mp; | ||
|
||
@Parameter(label = "Slices to select, '*' for all slices, comma separated, 0-based") | ||
String slices_csv = "*"; | ||
|
||
@Override | ||
public void run() { | ||
if (slices_csv.trim().equals("*")) { | ||
slices_csv ="0:-1"; | ||
} | ||
try { | ||
List<Integer> indices = new IntRangeParser(slices_csv).get(mp.getSlices().size()); | ||
for (int index: indices) { | ||
mp.getSlices().get(index).select(); | ||
} | ||
} catch (Exception e) { | ||
mp.errorMessageForUser.accept("Error during parsing of slice indices", e.getMessage()); | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters