Skip to content

Commit 203c434

Browse files
committed
Ignores 0 in custom atlas - fixes an issue with QuPath (and that can make sense)
1 parent 8ae5cee commit 203c434

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/ch/epfl/biop/atlas/custom/AtlasFromSourcesHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ public String getName() {
189189
@Override
190190
public void initialize() throws Exception {
191191
HashSet<Integer> values = getUniquePixelValues(labelImage);
192+
values.remove(0); // Causes issues otherwise
192193
int rootIdTest = 1024;
193194
while (values.contains(rootIdTest)) {
194195
rootIdTest*=2;

0 commit comments

Comments
 (0)