/dports/graphics/mahotas/mahotas-1.4.11/mahotas/tests/ |
H A D | test_labeled.py | 12 b12 = mahotas.labeled.border(labeled, 1, 2) 15 b13 = mahotas.labeled.border(labeled, 1, 3) 36 borders = mahotas.labeled.borders(labeled) 75 fast = mahotas.labeled.labeled_sum(f, labeled) 82 labeled, n = mh.labeled.label(f) 83 sizes = mh.labeled.labeled_sum(f, labeled) 153 labeled, n = mahotas.labeled.label(f) 154 labeled *= ( (labeled % 7) != 4) 171 labeled, n = mahotas.labeled.label(f) 208 labeled, n = mh.labeled.label(f) [all …]
|
H A D | test_gvoronoi.py | 4 def scipy_gvoronoi(labeled): argument 6 L1,L2 = ndimage.distance_transform_edt(labeled== 0, return_distances=False, return_indices=True) 7 return labeled[L1,L2] 13 labeled = np.zeros((128,128)) 17 labeled[y,x] = p+1 18 sp = scipy_gvoronoi(labeled) 19 mh = gvoronoi(labeled) 23 labeled = np.zeros((128,128)) 24 labeled[0,0] = 1 25 labeled[-1,-1] = 2 [all …]
|
/dports/graphics/mahotas/mahotas-1.4.11/mahotas/ |
H A D | labeled.py | 100 labeled = _as_labeled(labeled, labeled, 'relabel', inplace=inplace) 178 labeled = _as_labeled(labeled, labeled, 'remove_regions', inplace=inplace) 375 labeled = np.array(labeled, dtype=np.intc) 407 labeled = _as_labeled(array, labeled, 'labeled_sum') 433 labeled = _as_labeled(array, labeled, 'labeled_max') 457 labeled = _as_labeled(array, labeled, 'labeled_min') 602 labeled = _as_labeled(labeled, labeled, 'filter_labeled') 604 labeled = mh.labeled.remove_bordering(labeled) 605 labeled,nr = mh.labeled.relabel(labeled) 619 labeled = remove_regions(labeled, to_remove) [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.CodeDom/tests/CodeStatements/ |
H A D | CodeLabeledStatementTests.cs | 15 var labeled = new CodeLabeledStatement(); in Ctor_Default() 16 Assert.Empty(labeled.Label); in Ctor_Default() 17 Assert.Null(labeled.Statement); in Ctor_Default() 24 var labeled = new CodeLabeledStatement(label); in Ctor_String() 26 Assert.Null(labeled.Statement); in Ctor_String() 42 Assert.Equal(statement, labeled.Statement); in Ctor_String_CodeStatement() 49 var labeled = new CodeLabeledStatement(); in Label_Set_Get_ReturnsExpected() 50 labeled.Label = value; in Label_Set_Get_ReturnsExpected() 58 var labeled = new CodeLabeledStatement(); in Statement_Set_Get_ReturnsExpected() 59 labeled.Statement = value; in Statement_Set_Get_ReturnsExpected() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Linq.Parallel/tests/QueryOperators/ |
H A D | GetEnumeratorTests.cs | 19 IEnumerator<int> enumerator = labeled.Item.GetEnumerator(); in GetEnumerator_Unordered() 28 …if (labeled.ToString().StartsWith("Enumerable.Range") || labeled.ToString().StartsWith("Partitione… in GetEnumerator_Unordered() 49 GetEnumerator_Unordered(labeled, count); in GetEnumerator_Unordered_Longrunning() 57 IEnumerator<int> enumerator = labeled.Item.GetEnumerator(); in GetEnumerator() 66 …if (labeled.ToString().StartsWith("Enumerable.Range") || labeled.ToString().StartsWith("Partitione… in GetEnumerator() 87 GetEnumerator(labeled, count); in GetEnumerator_Longrunning() 131 IEnumerator<int> enumerator = labeled.Item.GetEnumerator(); in GetEnumerator_CurrentBeforeMoveNext() 132 if (labeled.ToString().StartsWith("Partitioner") in GetEnumerator_CurrentBeforeMoveNext() 133 || labeled.ToString().StartsWith("Array")) in GetEnumerator_CurrentBeforeMoveNext() 148 IEnumerator<int> enumerator = labeled.Item.GetEnumerator(); in GetEnumerator_MoveNextAfterEnd() [all …]
|
H A D | OfTypeTests.cs | 37 ParallelQuery<int> query = labeled.Item; in OfType_AllValid() 51 OfType_AllValid(labeled, count); in OfType_AllValid_Longrunning() 77 ParallelQuery<int> query = labeled.Item; in OfType_AllValid_NotPipelined() 96 ParallelQuery<int> query = labeled.Item; in OfType_NoneValid() 106 OfType_NoneValid(labeled, count); in OfType_NoneValid_Longrunning() 114 ParallelQuery<int> query = labeled.Item; in OfType_NoneValid_NotPipelined() 153 ParallelQuery<int> query = labeled.Item; in OfType_SomeValid() 167 OfType_SomeValid(labeled, count); in OfType_SomeValid_Longrunning() 222 OfType_SomeInvalidNull(labeled, count); in OfType_SomeInvalidNull_Longrunning() 247 OfType_SomeValidNull(labeled, count); in OfType_SomeValidNull_Longrunning() [all …]
|
H A D | OrderByThenByTests.cs | 89 OrderBy(labeled, count); in OrderBy_Longrunning() 116 OrderBy_Reversed(labeled, count); in OrderBy_Reversed_Longrunning() 143 OrderByDescending(labeled, count); in OrderByDescending_Longrunning() 192 OrderBy_NotPipelined(labeled, count); in OrderBy_NotPipelined_Longrunning() 285 OrderBy_CustomComparer(labeled, count); in OrderBy_CustomComparator_Longrunning() 566 ThenBy(labeled, count); in ThenBy_Longrunning() 600 ThenBy_Reversed(labeled, count); in ThenBy_Reversed_Longrunning() 634 ThenByDescending(labeled, count); in ThenByDescending_Longrunning() 703 ThenBy_NotPipelined(labeled, count); in ThenBy_NotPipelined_Longrunning() 1030 ThenBy_ThenBy(labeled, count); in ThenBy_ThenBy_Longrunning() [all …]
|
H A D | SkipSkipWhileTests.cs | 59 ParallelQuery<int> query = labeled.Item; in Skip() 73 Skip(labeled, count, skip); in Skip_Longrunning() 99 ParallelQuery<int> query = labeled.Item; in Skip_NotPipelined() 110 Skip_NotPipelined(labeled, count, skip); in Skip_NotPipelined_Longrunning() 158 ParallelQuery<int> query = labeled.Item; in SkipWhile() 172 SkipWhile(labeled, count, skip); in SkipWhile_Longrunning() 198 ParallelQuery<int> query = labeled.Item; in SkipWhile_NotPipelined() 238 ParallelQuery<int> query = labeled.Item; in SkipWhile_Indexed() 252 SkipWhile_Indexed(labeled, count, skip); in SkipWhile_Indexed_Longrunning() 278 ParallelQuery<int> query = labeled.Item; in SkipWhile_Indexed_NotPipelined() [all …]
|
H A D | TakeTakeWhileTests.cs | 60 ParallelQuery<int> query = labeled.Item; in Take() 74 Take(labeled, count, take); in Take_Longrunning() 100 ParallelQuery<int> query = labeled.Item; in Take_NotPipelined() 111 Take_NotPipelined(labeled, count, take); in Take_NotPipelined_Longrunning() 159 ParallelQuery<int> query = labeled.Item; in TakeWhile() 173 TakeWhile(labeled, count, take); in TakeWhile_Longrunning() 199 ParallelQuery<int> query = labeled.Item; in TakeWhile_NotPipelined() 239 ParallelQuery<int> query = labeled.Item; in TakeWhile_Indexed() 253 TakeWhile_Indexed(labeled, count, take); in TakeWhile_Indexed_Longrunning() 279 ParallelQuery<int> query = labeled.Item; in TakeWhile_Indexed_NotPipelined() [all …]
|
H A D | ElementAtElementAtOrDefaultTests.cs | 38 public static void ElementAt(Labeled<ParallelQuery<int>> labeled, int count, int position) in ElementAt() argument 42 ParallelQuery<int> query = labeled.Item; in ElementAt() 52 ElementAt(labeled, count, position); in ElementAt_Longrunning() 57 …public static void ElementAt_OutOfRange(Labeled<ParallelQuery<int>> labeled, int count, int positi… in ElementAt_OutOfRange() argument 59 ParallelQuery<int> query = labeled.Item; in ElementAt_OutOfRange() 68 ElementAt_OutOfRange(labeled, count, position); in ElementAt_OutOfRange_Longrunning() 74 …public static void ElementAtOrDefault(Labeled<ParallelQuery<int>> labeled, int count, int position) in ElementAtOrDefault() argument 78 ParallelQuery<int> query = labeled.Item; in ElementAtOrDefault() 88 ElementAtOrDefault(labeled, count, position); in ElementAtOrDefault_Longrunning() 95 ParallelQuery<int> query = labeled.Item; in ElementAtOrDefault_OutOfRange() [all …]
|
H A D | LastLastOrDefaultTests.cs | 36 public static void Last(Labeled<ParallelQuery<int>> labeled, int count, int position) in Last() argument 40 ParallelQuery<int> query = labeled.Item; in Last() 51 Last(labeled, count, position); in Last_Longrunning() 61 ParallelQuery<int> query = labeled.Item; in LastOrDefault() 72 LastOrDefault(labeled, count, position); in LastOrDefault_Longrunning() 80 ParallelQuery<int> query = labeled.Item; in Last_Empty() 89 ParallelQuery<int> query = labeled.Item; in LastOrDefault_Empty() 98 ParallelQuery<int> query = labeled.Item; in Last_NoMatch() 110 Last_NoMatch(labeled, count, position); in Last_NoMatch_Longrunning() 118 ParallelQuery<int> query = labeled.Item; in LastOrDefault_NoMatch() [all …]
|
H A D | FirstFirstOrDefaultTests.cs | 36 public static void First(Labeled<ParallelQuery<int>> labeled, int count, int position) in First() argument 40 ParallelQuery<int> query = labeled.Item; in First() 51 First(labeled, count, position); in First_Longrunning() 61 ParallelQuery<int> query = labeled.Item; in FirstOrDefault() 72 FirstOrDefault(labeled, count, position); in FirstOrDefault_Longrunning() 80 ParallelQuery<int> query = labeled.Item; in First_Empty() 89 ParallelQuery<int> query = labeled.Item; in FirstOrDefault_Empty() 98 ParallelQuery<int> query = labeled.Item; in First_NoMatch() 110 First_NoMatch(labeled, count, position); in First_NoMatch_Longrunning() 118 ParallelQuery<int> query = labeled.Item; in FirstOrDefault_NoMatch() [all …]
|
H A D | DistinctTests.cs | 66 public static void Distinct(Labeled<ParallelQuery<int>> labeled, int count) in Distinct() argument 68 ParallelQuery<int> query = labeled.Item; in Distinct() 80 public static void Distinct_Longrunning(Labeled<ParallelQuery<int>> labeled, int count) in Distinct_Longrunning() argument 82 Distinct(labeled, count); in Distinct_Longrunning() 103 public static void Distinct_NotPipelined(Labeled<ParallelQuery<int>> labeled, int count) in Distinct_NotPipelined() argument 105 ParallelQuery<int> query = labeled.Item; in Distinct_NotPipelined() 116 Distinct_NotPipelined(labeled, count); in Distinct_NotPiplined_Longrunning() 128 Assert.All(labeled.Item.AsUnordered().Distinct(), x => seen.Add(x)); in Distinct_Unordered_SourceMultiple() 137 Distinct_Unordered_SourceMultiple(labeled, count); in Distinct_Unordered_SourceMultiple_Longrunning() 145 Assert.All(labeled.Item.Distinct(), x => Assert.Equal(seen++, x)); in Distinct_SourceMultiple() [all …]
|
H A D | MinTests.cs | 44 ParallelQuery<int> query = labeled.Item; in Min_Int() 56 Min_Int(labeled, count, min); in Min_Int_Longrunning() 63 ParallelQuery<int> query = labeled.Item; in Min_Int_SomeNull() 72 ParallelQuery<int> query = labeled.Item; in Min_Int_AllNull() 81 ParallelQuery<int> query = labeled.Item; in Min_Long() 93 Min_Long(labeled, count, min); in Min_Long_Longrunning() 100 ParallelQuery<int> query = labeled.Item; in Min_Long_SomeNull() 134 Min_Float(labeled, count, min); in Min_Float_Longrunning() 190 Min_Double(labeled, count, min); in Min_Double_Longrunning() 242 Min_Decimal(labeled, count, min); in Min_Decimal_Longrunning() [all …]
|
H A D | MaxTests.cs | 45 ParallelQuery<int> query = labeled.Item; in Max_Int() 57 Max_Int(labeled, count, max); in Max_Int_Longrunning() 64 ParallelQuery<int> query = labeled.Item; in Max_Int_SomeNull() 73 ParallelQuery<int> query = labeled.Item; in Max_Int_AllNull() 82 ParallelQuery<int> query = labeled.Item; in Max_Long() 94 Max_Long(labeled, count, max); in Max_Long_Longrunning() 101 ParallelQuery<int> query = labeled.Item; in Max_Long_SomeNull() 133 Max_Float(labeled, count, max); in Max_Float_Longrunning() 172 Max_Double(labeled, count, max); in Max_Double_Longrunning() 209 Max_Decimal(labeled, count, max); in Max_Decimal_Longrunning() [all …]
|
H A D | DefaultIfEmptyTests.cs | 53 public static void DefaultIfEmpty_NotEmpty(Labeled<ParallelQuery<int>> labeled, int count) in DefaultIfEmpty_NotEmpty() argument 55 ParallelQuery<int> query = labeled.Item; in DefaultIfEmpty_NotEmpty() 69 DefaultIfEmpty_NotEmpty(labeled, count); in DefaultIfEmpty_NotEmpty_Longrunning() 94 ParallelQuery<int> query = labeled.Item; in DefaultIfEmpty_NotEmpty_NotPipelined() 108 DefaultIfEmpty_NotEmpty_NotPipelined(labeled, count); in DefaultIfEmpty_NotEmpty_NotPipelined_Longrunning() 113 public static void DefaultIfEmpty_Empty<T>(Labeled<ParallelQuery<T>> labeled, T def) in DefaultIfEmpty_Empty() argument 115 ParallelQuery<T> notEmpty = labeled.Item.DefaultIfEmpty(); in DefaultIfEmpty_Empty() 120 ParallelQuery<T> specified = labeled.Item.DefaultIfEmpty(def); in DefaultIfEmpty_Empty() 128 … public static void DefaultIfEmpty_Empty_NotPipelined<T>(Labeled<ParallelQuery<T>> labeled, T def) in DefaultIfEmpty_Empty_NotPipelined() argument 130 IList<T> notEmpty = labeled.Item.DefaultIfEmpty().ToList(); in DefaultIfEmpty_Empty_NotPipelined() [all …]
|
H A D | CastTests.cs | 34 public static void Cast_Valid(Labeled<ParallelQuery<int>> labeled, int count) in Cast_Valid() argument 36 ParallelQuery<int> query = labeled.Item; in Cast_Valid() 48 public static void Cast_Valid_Longrunning(Labeled<ParallelQuery<int>> labeled, int count) in Cast_Valid_Longrunning() argument 50 Cast_Valid(labeled, count); in Cast_Valid_Longrunning() 73 public static void Cast_Valid_NotPipelined(Labeled<ParallelQuery<int>> labeled, int count) in Cast_Valid_NotPipelined() argument 75 ParallelQuery<int> query = labeled.Item; in Cast_Valid_NotPipelined() 86 Cast_Valid(labeled, count); in Cast_Valid_NotPipelined_Longrunning() 101 public static void Cast_Empty(Labeled<ParallelQuery<int>> labeled, int count) in Cast_Empty() argument 103 ParallelQuery<int> empty = labeled.Item; in Cast_Empty() 122 public static void Cast_InvalidCastException(Labeled<ParallelQuery<int>> labeled, int count) in Cast_InvalidCastException() argument [all …]
|
/dports/graphics/mahotas/mahotas-1.4.11/mahotas/demos/ |
H A D | nuclear.py | 21 labeled, n_nucleus = mahotas.label(f) variable 23 plt.imshow(labeled) 27 sizes = mahotas.labeled.labeled_size(labeled) 29 labeled = mahotas.labeled.remove_regions(labeled, too_big) variable 31 plt.imshow(labeled) 35 labeled = mahotas.labeled.remove_bordering(labeled) variable 37 plt.imshow(labeled) 41 relabeled, n_left = mahotas.labeled.relabel(labeled)
|
/dports/graphics/mahotas/mahotas-1.4.11/docs/source/ |
H A D | labeled.rst | 50 sizes = mh.labeled.labeled_size(labeled) 116 imshow(labeled) 125 sizes = mh.labeled.labeled_size(labeled) 127 labeled = mh.labeled.remove_regions(labeled, too_big) 132 sizes = mh.labeled.labeled_size(labeled) 134 labeled = mh.labeled.remove_regions(labeled, too_big) 135 imshow(labeled) 140 labeled = mh.labeled.remove_bordering(labeled) 145 labeled = mh.labeled.remove_bordering(labeled) 154 relabeled, n_left = mh.labeled.relabel(labeled) [all …]
|
/dports/www/firefox/firefox-99.0/third_party/rust/glean-core/tests/ |
H A D | labeled.rs | 18 let labeled = LabeledMetric::new( in can_create_labeled_counter_metric() localVariable 30 let metric = labeled.get("label1"); in can_create_labeled_counter_metric() 50 let labeled = LabeledMetric::new( in can_create_labeled_string_metric() localVariable 62 let metric = labeled.get("label1"); in can_create_labeled_string_metric() 82 let labeled = LabeledMetric::new( in can_create_labeled_bool_metric() localVariable 114 let labeled = LabeledMetric::new( in can_use_multiple_labels() localVariable 152 let labeled = LabeledMetric::new( in can_record_error_for_submetric() localVariable 177 let labeled = LabeledMetric::new( in labels_are_checked_against_static_list() localVariable 222 let labeled = LabeledMetric::new( in dynamic_labels_too_long() localVariable 442 labeled.get(&label) in caching_metrics_with_dynamic_labels() [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/rust/glean-core/tests/ |
H A D | labeled.rs | 18 let labeled = LabeledMetric::new( in can_create_labeled_counter_metric() localVariable 30 let metric = labeled.get("label1"); in can_create_labeled_counter_metric() 50 let labeled = LabeledMetric::new( in can_create_labeled_string_metric() localVariable 62 let metric = labeled.get("label1"); in can_create_labeled_string_metric() 82 let labeled = LabeledMetric::new( in can_create_labeled_bool_metric() localVariable 114 let labeled = LabeledMetric::new( in can_use_multiple_labels() localVariable 152 let labeled = LabeledMetric::new( in can_record_error_for_submetric() localVariable 177 let labeled = LabeledMetric::new( in labels_are_checked_against_static_list() localVariable 222 let labeled = LabeledMetric::new( in dynamic_labels_too_long() localVariable 442 labeled.get(&label) in caching_metrics_with_dynamic_labels() [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/third_party/rust/glean-core/tests/ |
H A D | labeled.rs | 18 let labeled = LabeledMetric::new( in can_create_labeled_counter_metric() localVariable 30 let metric = labeled.get("label1"); in can_create_labeled_counter_metric() 50 let labeled = LabeledMetric::new( in can_create_labeled_string_metric() localVariable 62 let metric = labeled.get("label1"); in can_create_labeled_string_metric() 82 let labeled = LabeledMetric::new( in can_create_labeled_bool_metric() localVariable 114 let labeled = LabeledMetric::new( in can_use_multiple_labels() localVariable 152 let labeled = LabeledMetric::new( in can_record_error_for_submetric() localVariable 177 let labeled = LabeledMetric::new( in labels_are_checked_against_static_list() localVariable 222 let labeled = LabeledMetric::new( in dynamic_labels_too_long() localVariable 442 labeled.get(&label) in caching_metrics_with_dynamic_labels() [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/glean-core/tests/ |
H A D | labeled.rs | 17 let mut labeled = LabeledMetric::new( in can_create_labeled_counter_metric() localVariable 29 let metric = labeled.get("label1"); in can_create_labeled_counter_metric() 49 let mut labeled = LabeledMetric::new( in can_create_labeled_string_metric() localVariable 61 let metric = labeled.get("label1"); in can_create_labeled_string_metric() 93 let metric = labeled.get("label1"); in can_create_labeled_bool_metric() 125 let metric = labeled.get("label1"); in can_use_multiple_labels() 128 let metric = labeled.get("label2"); in can_use_multiple_labels() 163 let metric = labeled.get("label1"); in labels_are_checked_against_static_list() 166 let metric = labeled.get("label2"); in labels_are_checked_against_static_list() 170 let metric = labeled.get("label3"); in labels_are_checked_against_static_list() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Linq.Parallel/tests/ |
H A D | ExchangeTests.cs | 66 yield return new object[] { labeled, count, option }; in ThrowOnCount_AllMergeOptions_MemberData() 93 …public static void Partitioning_Default(Labeled<ParallelQuery<int>> labeled, int count, int partit… in Partitioning_Default() argument 96 foreach (int i in labeled.Item.WithDegreeOfParallelism(partitions).Select(i => i)) in Partitioning_Default() 107 Partitioning_Default(labeled, count, partitions); in Partitioning_Default_Longrunning() 112 …public static void Partitioning_Striped(Labeled<ParallelQuery<int>> labeled, int count, int partit… in Partitioning_Striped() argument 115 … foreach (int i in labeled.Item.WithDegreeOfParallelism(partitions).Take(count).Select(i => i)) in Partitioning_Striped() 126 Partitioning_Striped(labeled, count, partitions); in Partitioning_Striped_Longrunning() 134 foreach (int i in labeled.Item.WithMergeOptions(options).Select(i => i)) in Merge_Ordered() 145 Merge_Ordered(labeled, count, options); in Merge_Ordered_Longrunning() 173 public static void Merge_ArgumentException(Labeled<ParallelQuery<int>> labeled, int count) in Merge_ArgumentException() argument [all …]
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/bwm/algo/ |
H A D | bwm_lidar_algo.cxx | 35 if ( (labeled.ni() != first_ret.ni()) || (labeled.nj() != first_ret.nj()) ) { in label_lidar() 39 if (labeled.nplanes() != 3) { in label_lidar() 81 labeled(i,j,BLD_PLANE) = 0; in label_lidar() 82 labeled(i,j,VEG_PLANE) = 0; in label_lidar() 84 labeled(i,j,GND_PLANE) = 255; in label_lidar() 86 labeled(i,j,GND_PLANE) = 0; in label_lidar() 88 labeled(i,j,VEG_PLANE) = 255; in label_lidar() 91 labeled(i,j,BLD_PLANE) = 255; in label_lidar() 104 labeled = bwlabel(bld0); in label_lidar() 105 props = regionprops(labeled,'area'); in label_lidar() [all …]
|