Esempio n. 1
0
        /// <summary>
        /// ThreadStart delegate
        /// </summary>
        public void Execute()
        {
            // perform region growing using the available data
            ThreadRegionGrowingState state = (ThreadRegionGrowingState)_data;

            DetectRegions(state);
            state.active = false;
            _callback(_data);
        }
Esempio n. 2
0
 /// <summary>
 /// detect regions within the given image
 /// </summary>
 /// <param name="state">region growing state</param>
 private static void DetectRegions(
     ThreadRegionGrowingState state)
 {
     state.regions = DetectRegions(state.bmp, state.image_width, state.image_height,
                                   state.min_region_volume_percent,
                                   state.min_aspect_ratio, state.max_aspect_ratio,
                                   state.vertex_inflation,
                                   state.vertex_angular_offset,
                                   state.segmentation_threshold,
                                   state.segmented, state.corner_features,
                                   state.downsampling_factor,
                                   state.border_percent,
                                   state.bmp_mono,
                                   state.rectangle_classification,
                                   state.square_classification);
 }
Esempio n. 3
0
 /// <summary>
 /// detect regions within the given image
 /// </summary>
 /// <param name="state">region growing state</param>
 private static void DetectRegions(
     ThreadRegionGrowingState state)
 {
     state.regions = DetectRegions(state.bmp, state.image_width, state.image_height,
                          state.min_region_volume_percent,
                          state.min_aspect_ratio, state.max_aspect_ratio,
                          state.vertex_inflation,
                          state.vertex_angular_offset,
                          state.segmentation_threshold,
                          state.segmented, state.corner_features,
                          state.downsampling_factor,
                          state.border_percent,
                          state.bmp_mono,
                          state.rectangle_classification,
                          state.square_classification);
 }