[GRASS-dev] i.segment: invalid region id 0

Nikos Alexandris nik at nikosalexandris.net
Tue Jul 16 04:18:33 PDT 2013


[previous discussion(s) erased]

A series of tests completed successfully for thresholds 0.1, 0.3, 0.5, 0.7, 
0.9, no matter if memory= 300 or 30000.  For the extreme case threshold=0.99, 
the process failed for both memory= 300 or 30000 settings.

Note, all tests reported below were performed in a data base stored in an 
external USB 3.0 HDD.

# grass version
g.version -g

version=7.0.svn
date=2013
revision=57074
build_date=2013-06-12


First the two failure cases:

# threshold 0.99, memory=300 (default setting)
time i.segment group=pan out=pan_segmented_threshold_0.99_memory_300 
threshold=0.99

Loading input band...
Pass 1:
Pass 2:
Pass 3:
Pass 4:
Pass 5:
Pass 6:
Pass 7:
Pass 8:
Pass 9:
Pass 10:
Pass 11:
Pass 12:
Pass 13:
ERROR: Invalid region id 0

and

# threshold 0.99, memory=30000  ---  This is what I have previously reported
time i.segment group=pan out=pan_segmented_threshold_0.99_memory_30000
threshold=0.99 memory=30000
Loading input band...
Pass 1:
Pass 2:
Pass 3:
Pass 4:
Pass 5:
Pass 6:
Pass 7:
Pass 8:
Pass 9:
Pass 10:
Pass 11:
Pass 12:
Pass 13:
ERROR: Invalid region id 0

real    37m24.352s
user    37m14.000s
sys     0m0.784s


# ###################################
# A series of tests using default RAM

# threshold 0.1
time i.segment group=pan out=pan_segmented_threshold_0.1_memory_300 
threshold=0.1

Loading input band...
Pass 1:
Pass 2:
Pass 3:
Pass 4:
Pass 5:
Pass 6:
Pass 7:
Pass 8:
Pass 9:
Pass 10:
Pass 11:
Segmentation converged after 11 iterations.
Writing out segment IDs
i.segment complete. Number of segments created: 25407

real    8m9.122s
user    8m5.582s
sys     0m0.296s

# threshold 0.3
time i.segment group=pan out=pan_segmented_threshold_0.3_memory_300 
threshold=0.3

Loading input band...
Pass 1:
Pass 2:
Pass 3:
Pass 4:
Pass 5:
Pass 6:
Pass 7:
Pass 8:
Pass 9:
Pass 10:
Pass 11:
Segmentation converged after 11 iterations.
Writing out segment IDs
i.segment complete. Number of segments created: 11684

real    12m20.273s
user    12m19.466s
sys     0m0.256s

# threshold 0.5
time i.segment group=pan out=pan_segmented_threshold_0.5_memory_300 
threshold=0.5

Loading input band...
Pass 1:
Pass 2:
Pass 3:
Pass 4:
Pass 5:
Pass 6:
Pass 7:
Pass 8:
Pass 9:
Pass 10:
Pass 11:
Pass 12:
Segmentation converged after 12 iterations.
Writing out segment IDs
i.segment complete. Number of segments created: 5495

real    17m35.330s
user    17m34.302s
sys     0m0.264s

# threshold 0.7
time i.segment group=pan out=pan_segmented_threshold_0.7_memory_300 
threshold=0.7

Loading input band...
Pass 1:
Pass 2:
Pass 3:
Pass 4:
Pass 5:
Pass 6:
Pass 7:
Pass 8:
Pass 9:
Pass 10:
Pass 11:
Pass 12:
Segmentation converged after 12 iterations.
Writing out segment IDs
i.segment complete. Number of segments created: 4911

real    18m15.143s
user    18m11.188s
sys     0m0.300s

# threshold 0.9
time i.segment group=pan out=pan_segmented_threshold_0.9_memory_300 
threshold=0.9

Loading input band...
Pass 1:
Pass 2:
Pass 3:
Pass 4:
Pass 5:
Pass 6:
Pass 7:
Pass 8:
Pass 9:
Pass 10:
Pass 11:
Pass 12:
Pass 13:
Segmentation converged after 13 iterations.
Writing out segment IDs
i.segment complete. Number of segments created: 1276

real    30m30.619s
user    30m29.010s
sys     0m0.272s


# ####################
# Tests using max. RAM

# threshold 0.1
time i.segment group=pan out=pan_segmented_threshold_01 threshold=0.1 
memory=30000

Loading input band...                                                                                                                                                                                                               
Pass 1:                                                                                                                                                                                                                             
Pass 2:                                                                                                                                                                                                                             
Pass 3:                                                                                                                                                                                                                             
Pass 4:                                                                                                                                                                                                                             
Pass 5:                                                                                                                                                                                                                             
Pass 6:                                                                                                                                                                                                                             
Pass 7:                                                                                                                                                                                                                             
Pass 8:                                                                                                                                                                                                                             
Pass 9:                                                                                                                                                                                                                             
Pass 10:                                                                                                                                                                                                                            
Pass 11:                                                                                                                                                                                                                            
Segmentation converged after 11 iterations.                                                                                                                                                                                         
Writing out segment IDs                                                                                                                                                                                                             
i.segment complete. Number of segments created: 25407

real    8m5.619s                                                                                                                                                                                                                    
user    8m2.218s                                                                                                                                                                                                                    
sys     0m0.252s

# threshold 0.9
time i.segment group=pan out=pan_segmented_threshold_0.9_memory_30000 
threshold=0.9 memory=30000

Loading input band...
Pass 1:
Pass 2:
Pass 3:
Pass 4:
Pass 5:
Pass 6:
Pass 7:
Pass 8:
Pass 9:
Pass 10:
Pass 11:
Pass 12:
Pass 13:
Segmentation converged after 13 iterations.
Writing out segment IDs
i.segment complete. Number of segments created: 1276

Nikos


More information about the grass-dev mailing list