Skip to content

Commit

Permalink
Fix filter 'Arrays & Tiles / Extract Objects'.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed Aug 3, 2023
1 parent fe471fd commit d4f9f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gmic_stdlib.gmic
Original file line number Diff line number Diff line change
Expand Up @@ -40130,14 +40130,14 @@ fx_extract_objects :
+replace_color $3,0,$color,0,0,0,0 autocrop_components. $4%,$min_area,$6,2
repeat w {
+z[0] {1,i($>,0)},{1,i($>,1)},{1,i($>,3)},{1,i($>,4)}
=> pos({1,i($>,0)},{1,i($>,1)}),name($nm" "[$>])
=> pos({1,i($>,0)}\,{1,i($>,1)})\,name($nm" "[$>])
}
rm[0,1]
elif $7==1 # Output: Segmentation.
replace_color $3,0,$color,0,0,0,0
+autocrop_components[0] $4%,$min_area,$6,2
autocrop_components[0] $4%,$min_area,$6,1
repeat w { =>[$>] pos({i($>,0)},{i($>,1)}),name($nm" "[$>]) } rm.
repeat w { =>[$>] pos({i($>,0)}\,{i($>,1)})\,name($nm" "[$>]) } rm.
fi
$w,$h,1,4 fc. $color => name($nm" [background]")
}
Expand Down

0 comments on commit d4f9f25

Please sign in to comment.