<div dir="ltr"><br><br>On Tue, Jun 18, 2019 at 3:31 PM Jamille Haarloo <<a href="mailto:j.r.haarloo@gmail.com">j.r.haarloo@gmail.com</a>> wrote:<br>><br>> Dear Grass members,<br>><br>> I have been testing i.segment and i.segment.hierarchical on a small region with Sentinel bands. However, the results consistently include segments of just one pixel even-though minimal segment sizes of 10 and 20 were indicated. The final run with minsize 20 created 8247 segments.<br><div>> There were no errors nor warnings, and I couldn't find the i.segment script to review it.</div><div><br></div><div>It is here:</div><div><a href="https://github.com/OSGeo/grass/tree/releasebranch_7_6/imagery/i.segment">https://github.com/OSGeo/grass/tree/releasebranch_7_6/imagery/i.segment</a></div><div><br></div>> I also tried with a minsize of one (1). The result looks similar with even less segments created - a total of  8160. <br>> I tried with Grass Gis 7.6.0 and 7.6.1(download of yesterday).<br><div><br></div><div>I tested in the North Carolina sample dataset with</div><div>g.region -p rast=lsat7_2002_10</div><div><br></div><div>using default minsize 1<br></div><div>i.segment group=lsat7_2002_10,lsat7_2002_20,lsat7_2002_30,lsat7_2002_40 thresh=0.05 out=lsat7_2002_min1</div><div>--> i.segment complete. Number of segments created: 29399</div><div><br></div><div><a href="http://r.info">r.info</a> -r lsat7_2002_min1</div><div></div><div>min=1<br>max=29399    <-- as expected<br></div><div><br></div><div>using minsize=20</div><div>i.segment group=lsat7_2002_10,lsat7_2002_20,lsat7_2002_30,lsat7_2002_40 thresh=0.05 out=lsat7_2002_min20 minsize=20</div><div>--> i.segment complete. Number of segments created: 2114</div><div><br></div><div><a href="http://r.info">r.info</a> -r lsat7_2002_min20<br>min=1<br>max=2114    <-- as expected</div><div><br></div><div>r.stats -c lsat7_2002_min20 | sort -k 2n | head<br>1025 20<br>1081 20<br>109 20<br>1117 20<br>1220 20<br>1305 20</div><div><br></div><div>The given minimum segment size is in this test respected.<br></div><div><br></div><div>Can you provide test data, region settings and parameters for i.segment to reproduce?</div><div><br></div><div>Markus M<br></div><br></div>