Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

2009-4-27

Replace this box


with your logo

Replace this box


with your logo

HALCON

Replace this box


with your logo

HALCON

Blob

()

HALCON:

Replace this box


with your logo

HALCON:

Replace this box


with your logo

HALCON

SDK

HALCON:

Replace this box


with your logo

2009-4-27

HALCON:

Replace this box


with your logo

open_framegrabber, info_framegrabber

HALCON:

Replace this box


with your logo

'File'
open_framegrabber ('DahengCAM', , 1, 1, 0, 0, 0, 0, 'default, -1,
'gray', -1, 'false', 'default', 'default', -1, -1,
FGHandle)

grab_image, grab_image_async, grab_image_start

grab_image(_async)()
set / get_framegrabber_param

while (true)
grab_image (Image, FGHandle)
* Apply image processing
endwhile

close_framegrabber, close_all_framegrabbers

read_image


close_framegrabber(FGHandle)

HALCON:

Replace this box


with your logo

Replace this box


with your logo

HALCON:

Easy source
selection

n $(HALCONROOT)/images/board
n (File)

Automatic code
generation

n
n
n
n

Interactive parameter
settings

Connection
configuration

HALCON:

Replace this box


with your logo

HALCON:

Replace this box


with your logo

HALCON

2009-4-27

Replace this box


with your logo

HALCON:

HALCON:

Replace this box


with your logo

n
n

Replace this box


with your logo

(gray-value-based)

shape-based

(component-based)

Replace this box


with your logo

Level 4

conrelation-based

(descriptor-based)

(deformable)

(point-based)

Level 3

Level 2

Level 1

Replace this box


with your logo

Replace this box


with your logo

HALCON:

Level
4

2009-4-27

Replace this box


with your logo

HALCON:

Replace this box


with your logo

* Generate ROI
* read image from file or frame grabber
inspect_shape_model(Image,ModelImage,ModelRegion,1, Contrast
Contrast)

inspect_shape_model(Image,ModelImages,ModelRegions,5,40)
dev_display(Image)
dev_display(ModelRegions)

dev_display(Image)
dev_display(ModelRegion)

Contrast

Contrast

Contrast

Replace this box


with your logo

Replace this box


with your logo

HALCON:()

Replace this box


with your logo

HALCON:

Replace this box


with your logo

HALCON:


AngleStart
AngleExtent

rad()

180

120

90 180

90

x,
AngleStart = -x
AngleExtent = 2x

2009-4-27

Replace this box


with your logo

HALCON:

Replace this box


with your logo


ScaleMin = 0.3; ScaleMax = 2

n
n

Bright outside

Dark inside

Replace this box


with your logo

Polarity mode: use_polarity

Replace this box


with your logo

Polarity mode: ignore_global_polarity

Template

Accepted objects

Template

Accepted objects

Replace this box


with your logo

:ignore_local_polarity

Replace this box


with your logo

(bounding boxes)

2009-4-27

Replace this box


with your logo

(gray-value-based)

Replace this box


with your logo

Overlap

Replace this box


with your logo

shape-based

Replace this box


with your logo

conrelationbased

(componentbased)

Replace this box


with your logo

1.73G

640*482

(descriptorbased)

Replace this box


with your logo

2009-4-27

(deformable)

Replace this box


with your logo

(point-based)

Replace this box


with your logo

Replace this box


with your logo

HALCON:Blob

HALCON:Blob
Blob()

Replace this box


with your logo

Blob

Replace this box


with your logo

Replace this box


with your logo

HALCON:Blob

HALCON:
Blob
(
)

read_image (Image, particle)


threshold (Image, BrightPixels, 120, 255)
connection (BrightPixels, Particles)
area_center (Particles, Area, Row, Column)

threshold

thresholdHALCON

threshold

R = {( x, y) R | g min g ( x, y) g max }

2009-4-27

Replace this box


with your logo

Replace this box


with your logo

HALCON:Blob

HALCON:Blob

Gegl tetes Histogram m

Gegl tetes Histogram m

0.02

0.02

0.015

0.015

0.01

0.01

0.005

0.005

0
0

Histogramm

50

Histogramm

0.02

0.02

0.015

0.015

0.01

0.01

0.005

0.005

100

150

=4

200

250

50

100

150

=8

200

250

0
0

50

100

150

200

250

50

100

150

HALCON:Blob

200

250

Replace this box


with your logo

Replace this box


with your logo

HALCON:Blob
S
R = {( x, y ) R | g ( x, y) s ( x, y ) t}
bzw.
R = {( x, y) R | g ( x, y ) s ( x, y ) t }
170

Grauwertprofil
gray profil e
smoothed gray profile
Gegl tetes Grauwertprofil

160
150
140

130
120
110
100

90

m
e
a
n_
i
m
a
g
e

HALCON:Blob

80
70
0

Replace this box


with your logo

10

15

20

25

HALCON:Blob

30

35

40

Replace this box


with your logo


ma
sk


mean_image (Image, ImageMean, 21, 21)
dyn_threshold (Image, ImageMean,
Region, 15, 'dark')

connection, select_shape, opening_circle, closing_circle,


opening_rectangle1, closing_rectangle1, difference,
intersection, union1, shaps_trans, fill_up

boundary, skeleton

2009-4-27

Replace this box


with your logo

n
n
n Halcon8

Replace this box


with your logo

HALCON: Blob

8-Neighborhood

4-Neighborhood

Local threshold

Replace this box


with your logo

Global threshold

Replace this box


with your logo

n HALCON
n
n
n
n : 44
n

Input image

Segmentation

n Erosion, dilation, opening, closing

n
n top-hat, bottom-hat, hit-or-miss, boundary

n
n Fitting, pruning, thickening, thinning, skeleton

1. Closing with vertical rectangle

Replace this box


with your logo

Union

Operator

R S = {x | x R x S }

Usage

R S = {x | x R x S }

n intersection: Intersect each region of the first parameter with the union of
all regions of the second parameter

Usage
n Generate regions by combining primitive shape
n Use as a result those points where two methods return pixels

n Generate regions by combining primitive shapes


n Combine segmentation results

Replace this box


with your logo

Intersection

Definition
Operator

n union1: Union of all regions in one variable


n union2: Unify all regions in the second parameter with each region in the first
parameter

2. Closing with diagonal rectangle

RS

RS

2009-4-27

Replace this box


with your logo

Difference

Definition
Operator

R \ S = {x | x R x S }

n difference: Subtract from all regions of the first parameter the union of all
regions of the second parameter

Usage
n Generate regions by combining primitive shape
n Use as a result those points where one method but not the other one returns
pixels

Replace this box


with your logo

Translation

Definition
Operator

Rt = {x | x t R} = {y | y = x + t x R}

n move_region: translate a region with integer precision

Usage
n Adapt the position of a model region
n Extract one border side (with difference)

Note
n Results depends on the system flag 'clip_region'

R\S

Replace this box


with your logo

Transposition

R( 2,1)

Replace this box


with your logo

Dilation

(
R = { x | x R}
((
R=R
Reversible:
( (
RSRS
Increasing:
(
Entity-invariant:
Z (R) = Z (R)
Definition:

(0,0)

(0,0)

(
R

Example: Dilation / Intersection

Replace this box


with your logo

(
S

dilation(R,S)

Replace this box


with your logo

Erosion

(0,0)
Input image

Segmented region
(threshold)

Connected components
(undesirable decomposition)

R
Segmented region
after applying dilation
(circle, diameter 5)

Connected components
(correct decompositon)

erosion(R,S)

Intersection between
connected components
and segmented region

10

2009-4-27

Replace this box


with your logo

Example: Erosion / Dilation

Replace this box


with your logo

Closing

(0,0)

dilation(R,S)

closing(R,S)

Replace this box


with your logo

Example: Closing

Replace this box


with your logo

Opening

(0,0)

erosion(R,S)

opening(R,S)

Replace this box


with your logo

Example: Opening

Replace this box


with your logo

()

n
n , OCR
n
n

11

2009-4-27

Replace this box


with your logo

HALCON:Blob

Replace this box


with your logo

Region Feature: Moments

area_center, smallest_rectangle1, smallest_rectangle2,


compactness, eccentricity, elliptic_axis, area_center_gray,
intensity, min_max_gray

Input image

Replace this box


with your logo

Region Feature: Moments

Regions and ellipses with identical


moments

Replace this box


with your logo

smallest_circle:

r
(rm , cm )

Convexity():

Orientation of single characters

Contlength():

Compactness():

k=
Orientation of all regions, e.g., for rotation correction

rectangularity

Replace this box


with your logo

n
n roundness, circularity, compactness

l2
4a

Replace this box


with your logo

Feature Inspection

n HALCON

difference

12

2009-4-27

Replace this box


with your logo

Replace this box


with your logo

n
n
n

Replace this box


with your logo

Replace this box


with your logo

HALCON
Sobel, Roberts, Robinson, Frei
filters.
hysteresis thresholding nonmaximum suppression

(a) (b) .

()

Replace this box


with your logo

Replace this box


with your logo

n
n
n
Standard:
sobel_amp, sobel_dir, edges_image
Advanced:
derivate_gauss, edges_color

n
Standard:
threshold, skeleton, inspect_shape_model
Advanced:
hysteresis_threshold, nonmax_suppression_dir

n
a)

b) c)

Standard:
background_seg, close_edges, close_edges_length, opening_circle,
split_skeleton_lines, hough_lines_dir, hough_lines, gen_contours_skeleton_xld

13

2009-4-27

Replace this box


with your logo

n Sub-Pixel ?

Sub-Pixel

Sub-Pixel

Replace this box


with your logo

a)ROI

c)

b)

HALCON1/50

Replace this box


with your logo

a)x-ray

n
n ROI
n
edges_sub_pixedges_color_sub_pix
lines_gausslines_color
n
get_contour_attrib_xld
get_contour_global_attrib_xld
query_contour_attribs_xld
query_contour_global_attribs_xld
n XLD Contours
n

b)

Replace this box


with your logo

Replace this box


with your logo

Replace this box


with your logo

Halcon
XLD

a)

b)

c)

a)

b)

14

2009-4-27

Replace this box


with your logo

n XLD
edges_sub_pix, edges_color_sub_pixlines_gauss, lines_facet
XLD; sobel_ampedges_imagebandpass_image
RegionXLDgen_contour_polygon_xld
gen_contour_polygon_rounded_xld
n XLD
segment_contours_xld, split_contours_xld
select_shape_xld
union_collinear_contours_xldunion_straight_contours_xld
union2_closed_contours_xld
n
fit_line_contour_xld gen_contour_polygon_xld
fit_rectangle2_contour_xld gen_rectangle2_contour_xld
fit_circle_contour_xld gen_circle_contour_xld
fit_ellipse_contour_xld gen_ellipse_contour_xld

Replace this box


with your logo

Replace this box


with your logo

n
area_center_xld, compactness_xld, convexity_xld, eccentricity_xld, diameter_
xld, orientation_xld
n XLD
XLDXLD
get_contour_xld
gen_region_contour_xld
n

Replace this box


with your logo

gen_measure_rectangle2,
gen_measure_arc,
translate_measure

1.
measure_pos,
measure_pairs
2.
set_fuzzy_measure,
fuzzy_measure_pos,
fuzzy_measure_pairs,
fuzzy_measure_pairin
g

Replace this box


with your logo

Replace this box


with your logo

15

2009-4-27

Replace this box


with your logo

Replace this box


with your logo

PCB

/
OCV&OCR

2D/3D

Replace this box


with your logo

16

You might also like