Home ->
User's Manual
->
Technology Diagram ->
Macro Language ->
Recording macro
|
How to record Pac-n-Zoom® Macro
- Launch Pac-n-Zoom
- From Pac-n-Zoom GUI menu choose
(Macro -> Record Macro)
- Enter a macro name and description (No spaces or punctuation
allowed on the macro name). In the example given below, the
macro name is "MACRO1"
|
The PnZ macro screenshot:
|
- Click the ok button, and the recording session will begin.
- Then open the file, for this case we are using
( DH_1.bmp)
- Set the threshold level manually(deselect Autoset):
On Pac-n-Zoom menu click Noise -> Set Threshold Segmentation
- Run threshold segmentation: to do this, from the Pac-n-Zoom
menu bar, click on
Noise -> Run Threshold Segmentation
or press on "ctrl + T" on the keyboard.
- Save the file in the current working directory (CWD) as
("DH_1_Seg.bmp)
- Click the Stop Recording button on the GUI menu:
Macro->Stop Recording, or click on Stop Recording button on the
Pac-n-Zoom tool bar. This will generate a macro that looks like
the macro given below:
%Description="PnZ Macro recorded on 17/12/09"
|
|
Open("C:\Program Files\Colorcom\Pac-n-Zoom\DH_1.bmp")
|
|
%AutoThresholdLevel=FALSE
|
|
%ThresholdLevel=13158600
|
|
ThresholdSeg()
|
|
SaveAs("C:\Program Files\Colorcom\Pac-n-Zoom\DH_1_seg.bmp")
|
|
Stop() |
- Run the macro by choosing macro->Run macro from the
Pac-n-Zoom GUI menu
or click on the Run button on the Pac-n-Zoom tool bar
- A list of macro in the CWD will appear, select on the
recorded macro and click ok.
The file (DH_1.bmp) will be written and displayed on the screen.
|
|
©
2004 - 2011 Accelerated I/O, Inc, All rights reserved.
|
|