Skip to content

Commit

Permalink
Don't setFeaturesDirty if featureStackArray is null
Browse files Browse the repository at this point in the history
while loading a classifier

This fixes fiji#74
  • Loading branch information
mlt committed Feb 16, 2024
1 parent 8dbf82e commit 2756889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/trainableSegmentation/WekaSegmentation.java
Original file line number Diff line number Diff line change
Expand Up @@ -7460,7 +7460,7 @@ public void setUpdateFeatures(boolean updateFeatures)
public void setFeaturesDirty()
{
updateFeatures = true;
if( isProcessing3D )
if( isProcessing3D || null == this.featureStackArray)
return;
// Set feature stacks belonging to slices with traces
// to be updated during training and not test
Expand Down

0 comments on commit 2756889

Please sign in to comment.