Home
ActivDecision User`s Manual
Contents
1. ed Objects ROI 0 Number i Bad Objects ROI 0 Number Max Width 0 012 0 015 Number Inside Distance Center 0 000 1 243 Number None Width Default Default Default Default m Display Distance Center Default Default Default Default ces d Iv Fit Cell Size Subptitute Default Inm Max Range 10 Path JAVTMeasurel E AVTMeasurel Too ROI Objec 4 omo Vele Min Maxi Interpretation Operation Tool Features bjects Tool Number B Line 1 Good Object Number ROI Features Bad Objects Number A Good ROIs Number Object 0 i Pads 1 Bad ROls Number Good Object i Number Bad Objects ROI Number Object 0 Width Distance Center T Object 1 Width 0 675 0 012 0 015 Number 4 v Enable Update iV Fit Cell Size v Subbtitute Default Unit mm AVTDecisionViewDefaults Zn AVTDecisionResult Fa AVTDecisionViewResults Bb AVTDecisionStatusParameters Figure 1 2 ActivDecision together with suitable other tools in a measuring application ActivVisionTools 3 2 Your Fast Track to Solutions 6 About ActivDecision ActivDecision 2008 04 23 Chapter 2 Using ActivDecision This chapter will explain how to use ActivDecision to evaluate the results of other Activ Vision Tools In the corresponding Visual Basic project one for all sections the task is to inspect car fuses using ActivMeasure and ActivAlignment If you want to experiment with the example project in
2. Dim atROIResult 2 As AVTROIResult For i 0 To 2 Set atROIResult i atMeasureResult ROIResults i Next Now the evaluation of ActivAlignment is checked if the alignment fails an error message is displayed If Not atAlignmentResult Evaluation True Then first check whether this error is new If bIsNewCycle True Then bIsNewCycle False errorMsg Cycle amp iNumCycles amp Alignment failed Call DisplayMessage errorMsg Call SetAlarm Exit Sub Else Exit Sub End If End If One has to keep in mind that AVTDecision is executed not only when the next image is grabbed but also whenever you modify an ROI or a parameter To distinguish the two cases an event raised by AVIView at the start of each execution cycle can be used to set a variable called bIsNewCycle Private bIsNewCycle As Boolean Private Sub AVTView1_CycleStart bIsNewCycle True End Sub Before reacting on an evaluation in the event procedure this variable is checked and imme ActivDecision 2008 04 23 3 4 Accessing Evaluation Results Via the Programming Interface 37 diately reset You can test this behavior by modifying a parameter of AVTMeasure after the alignment has failed No new error message is displayed The error message also contains the number of the cycle in which the error occurred The corresponding counter is incremented in the handler for AVIView s event CycleStart which was introduced already in the previous section
3. and bad respectively The text in the box Error Caption appears in case of an error e g if you selected a feature that is not calculated in the current image The cause of such an error is shown in the dialog Result Selection beside the label Feature Data not shown in the figure The used colors for the bars can be configured via AVITViewProperties see User s Manual for ActivView section 2 3 on page 20 which can be opened by clicking on AVTView with the right mouse button and selecting Properties in the appearing con text menu In it select the properties for AVTDecisionResult In figure 2 6 we configured the left most instance of AVTDecisionResult to display the eval uation of the horizontal ROI over the fuse wire with modified evaluation texts Try to do this yourself and then step through the image sequence and observe the effect ActivDecision 2008 04 23 2 5 Displaying Selected Results 21 e S E 5 e E Z 5 lt x O open the dialogs via a right mouse click x 450 510 1 zr Result Display Parameter x gt General Style Plain zj i i id E Line 1 Result Type Evaluation amp Data E 2 H Line 2 Precision 2 Line 3 Current Selegf on Spe EE Objects ROI afne AVTMeasurel Settings for style Plain Good Objects ROI Alignment Center Y Bad Objects ROI e 4 Line 3 B Object 0 Object 0 Good Caption Fingers Okay Feature Name Distance P
4. 14 Using ActivDecision Visual Basic Example 2 4 Specifying Defaults Using PER In the previous section default conditions were formulated via a context dialog of AVT DecisionViewResults Alternatively you can use the support tool AVTDecisionView Defaults which presents all default conditions in a hierarchical structure similar to AVT DecisionViewResults Typically the context dialog is used while developing an applica tion i e while designing suitable conditions In contrast if you already know which default conditions you want to set AVTDecisionViewDefaults allows to specify them quickly all at once Preparation for the following example If you did not already open it in the previous example s please open the project using decision_using vbp and execute it Load the image sequence fuse fuse2 seq The following steps are visualized in figure 2 4 Open AVTDecisionViewDefaults by clicking on AVIDecision with the right mouse button and selecting Decision Defaults in the popup menu Like AVTDecisionViewResults AVIDecisionViewDefaults contains a navigation tree on the left side When you click on a label in the tree the right part of AVT DecisionViewDefaults displays the available default conditions The selected item is displayed in the top line In figure 2 4 AVTMeasure1 was selected thus the right side contains the tool wide default conditions for ROI and object fea
5. ActivDecision itself produces no own results the evaluations are attached to the result objects of the evaluated tools In Visual Basic NET the event handler has a different signature Private Sub AxAVTDecisioni Finish ByVal sender As System Object _ ByVal e As AxActivVTools __AVTDecision_FinishEvent Handles AxAVTDecisioni Finish A first difference is that tool names start the prefix Ax i e AVTDecision becomes AxAVT Decision The main difference however is that the tool results are not directly passed instead they are encapsulated in the parameter e From there they can be extracted with the following lines note the use of VBA Collection instead of Collection Dim atToolResults As VBA Collection atToolResults e atToolResults To use classes like ACTIVVTOOLSLib AVTToolResult without the namespace ACTIVVTOOL SLib as in the code above you must import this namespace by inserting the following line at ActivVisionTools 3 2 Your Fast Track to Solutions c 2 E o o e E lt x 32 Tips amp Tricks the very beginning of the code more information about importing namespaces can be found in the Advanced User s Guide for ActivVisionTools in section 1 2 4 5 on page 12 Imports ACTIVVTOOLSLib The following code fragment searches the collection for the results of AVTMeasure1 and stores them in the object variable atMeasureResult or exits if no results are found Dim atToolResult As AVTToolRe
6. FeatureEvaluation handleBadROIs bObjectsInROIIsOK atROIResult FeatureEvaluation handleObjectsInROI ActivVisionTools 3 2 Your Fast Track to Solutions 34 Tips amp Tricks im Accessing the Evaluation Results via the Programming Interface E m ni xj flight gt Dak v Edge Type Edge Pais v Edge Grouping ades z Edge Selection A 1 M EJ Edge Strength Af gt l n Noise Level 3s I nor wih Standard gt Accuracy Cycle 29 fuse has wrong distance 5 44959292168738 in Line 3 Cycle 30 fuse has wrong width 0 847128497540529 at position 0 of Line 1 Cycle 30 fuse has wrong width 0 86422829587907 at position 1 of Line 1 Cycle 30 fuse has wrong width 0 895324625834458 at position 0 of Line 2 C distance 5 49516796571357 in Line 3 m Execution Application v Mode Execute Slaves Error Messages Figure 3 5 Accessing and displaying the evaluation results 3 4 2 An Example Project The ActivVisionTools distribution includes the example Visual Basic project ac cess decision_access vbp which uses the methods described in the previous section to extend the application of chapter 2 on page 7 The example project has been configured in such a way that the alignment fails for one image of the image sequence fuse fuse2 seq corresponding conditions check that the feature Status of AVTAlignment1 is equal to Suc cess Furthe
7. Library Location C Program Files MVTeclActivVisionToolslbinlj586 nt4lActivVT Language Standard ActivDecision 2008 04 23 3 4 Accessing Evaluation Results Via the Programming Interface 31 3 4 1 Basic Principles The principal idea behind accessing the results of an ActivVisionTool is quite simple When a tool has finished its execution it raises an event called Finish sending its results as a parameter If you want to access the results all you have to do therefore is to create a corresponding event procedure which handles the event Within the Visual Basic environment you can create event procedures very easily as shown in figure 3 4 In the header of the form s code window there are two combo boxes Select the instance of AVTDecision by default called AVTDecision1 in the left combo box The right combo box then lists all events available for this object when you select Finish the event procedure is created automatically M Access decision access Code ioj x AvTDecision1 Finish Private Sub AVTDecisionl Finish atToolResults s Collection End Sub HA Figure 3 4 Creating a procedure to handle the event Finish Note that the event procedure returns the results of all those tools which are evaluated by Activ Decision in form of a Collection of ACTIVVTOOLSLib AVTToolResult These results con tain both the feature values and the corresponding evaluations In other words
8. Object 1 Width 5 507 Default Default Default Default m v Enable Upd te Iv Fit Cell Size Substitute Default Unit mm G3 the evaluation results show up in the D you can specify conditions for object color of the names ROI or tool features Figure 2 2 Formulating conditions for objects ROIs and tools Experiment with conditions and step through the image sequence to watch their effect The sequence contains images of good and bad fuses figure 2 2 shows suitable conditions ActivVisionTools 3 2 Your Fast Track to Solutions e S E 5 e E Z 5 x 12 Using ActivDecision Visual Basic Example 2 3 Specifying Defaults Using E In some applications many similar objects are extracted which all should meet the same condi tions To facilitate the formulation of conditions in such cases ActivDecision allows to specify default conditions on the level of tools and ROIs see section 1 1 on page 2 Preparation for the following example If you did not already open it in the previous example s please open the project using decision_using vbp and execute it Load the image sequence fuse fuse2 seq and open AVTDecisionViewResults via a right mouse button click on AVTDecision The following steps are visualized in figure 2 3 D If you click with the right mouse button on a field the context menu Display De faults allows to open a dialog to display and edit the corr
9. c 2 E o o e gt lt Private iNumCycles As Integer Private Sub AVTView1_CycleStart iNumCycles iNumCycles 1 End Sub If the alignment was successful the evaluation of ActivMeasure is checked If it is not okay the ROI evaluations are checked in their turn The following code analyzes the cause of error further and displays corresponding error messages If you let the application run continuously by clicking Run in AVTViewExecute it will stop at other images with inspection errors For i O To iNumROI 1 If atROIResult i Evaluation False Then If atROIResult i FeatureEvaluation handleObjectsInROI False Then errorMsg Cycle amp iNumCycles amp _ wrong number of objects in amp sROINames i Call DisplayMessage errorMsg End If If atROIResult i FeatureEvaluation handleBad bjectsInROI False Then For Each badObject In atROIResult i Bad bjectIndices If i lt 2 Then errorMsg Cycle amp iNumCycles amp _ fuse has wrong width amp _ atROIResult i ObjectValue handleWidth badObject _ Ga meat position amp badObject amp of amp _ sROINames i Call DisplayMessage errorMsg Else errorMsg Cycle amp iNumCycles amp _ fuse has wrong distance Ol Re atROIResult i ObjectValue handleWidth badObject _ amp in amp sROINames i Call DisplayMessage errorMsg End If Next End If End If Next When using the programming interface
10. 00 Default Inside IV Fit Cell Size Substitute Default Unit mm o select what is to be displayed to the right 9 specify tool wide or ROI wide defaults the selection is shown on top D replace Default by the actual value Figure 2 4 Specifying default conditions via AVTDecisionViewDefaults ActivVisionTools 3 2 Your Fast Track to Solutions 16 Using ActivDecision Visual Basic Example 2 5 Displaying Selected Results Using E and Ej Like ActivDataView AVTDecisionViewResults displays all results at once This is useful when setting up your machine vision application in its final state however the application should typically display only selected results For this ActivDecision provides the two sub tools AVTDecisionResult and AVTDecisionStatus AVTDecisionResult allows to select an arbitrary feature object ROI or tool and to display its value and or its evaluation in various forms AVTDecisionStatus on the other hand displays the number of good and bad objects of the overall application of a tool or of an ROIin form of bars thus allowing to check the status of an application at a quick glance In fact the two sub tools are master tools i e you can use them without placing AVTDecision on the form However without AVTDecision there are no evaluations therefore the tools are typically used together with AVTDecision In this section we describe but a few of the possible configura
11. 2 Configuring the Two Execution Modes Sa JMiscellamBaus oe 52419 6394 3 4 Accessing Evaluation Results Via the Programming Interface Contents Chapter 1 About ActivDecision This chapter will introduce you to the features and the basic concepts of the decision tool Activ Decision It gives an overview about ActivDecision s master tools and support tools which are described in more detail in chapter 2 on page 7 11 Introducing ActivDecision 1 2 TheSub Tools of ActivDecision c s o o o e E lt 2 About ActivDecision 1 1 Introducing ActivDecision In an ActivVisionTools application the vision tools e g ActivMeasure or ActivBarcode cal culate results also called features in form of numbers e g positions or distances or strings e g a decoded bar code Using ActivDecision you can evaluate these results by formulat ing conditions they have to meet in order to be okay These evaluations are then treated as additional results therefore you can output them together with the alphanumeric results using e g ActivFile ActivSerial or ActivDigitalIO Moreover depending on these evaluations you can decide what is to be written to a log file or sent via the serial interface The Hierarchy of Results Tool ROI and Object Features Let s have a closer look at the philosophy of ActivVisionTools regarding alphanumeric results Results stem from a two step procedure First so c
12. Example 3 1 Adapting the Display of Results Using a The previous chapter showed how the evaluation results are displayed in the sub tools of Activ Decision You can modify the colors marking good and bad items via properties Besides the display within ActivDecision evaluation results also show up in AVTView i e together with the image and the results of other tools You can adapt this display using AVT ViewDisplayModes which is a support tool of ActivView Preparation for the following example If you worked on the example in the previous chapter you may continue using this project Otherwise open the project tips decision_tips vbp execute it and load the image sequence fuse fuse2 seq Open AVTDecisionViewResults via a right mouse button click on AVTDecision The following steps are visualized in figure 3 1 Open AVTViewDisplayModes by clicking on AVTView with the right mouse button and selecting Display Modes in the popup menu Objects and ROIs evaluated as not okay can be marked in AVTView with a special color This color can be selected in the combo boxes Error ROI and Error of AVT ViewDisplayModes The color in the combo box Selected is used to highlight objects when you click on them in the tree The colors marking the evaluation of the overall application in AVTDecision and the good and bad features objects ROIs or tools in AVTDe
13. User s Manual ACTIECISION ecisions Microsoft Windows Windows NT Windows 2000 Windows XP Visual Basic Microsoft NET Visual C Visual C and ActiveX are either trademarks or registered trademarks of Microsoft Corporation All other nationally and internationally recognized trademarks and tradenames are hereby rec ognized T Copyright 2001 2008 by MVTec Software GmbH M nchen Germany mvrec sottware cott Edition 1 September 2001 ActivVisionTools 2 0 Edition 2 November 2002 ActivVisionTools 2 1 Edition 3 January 2005 ActivVisionTools 3 0 Edition 4 February 2006 ActivVisionTools 3 1 Edition 5 May 2008 ActivVisionTools 3 2 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means electronic mechanical photocopying recording or otherwise without prior written permission of the publisher More information about ActivVisionTools can be found at http www activ vision tools com How to Read This Manual This manual explains how to evaluate results of other ActivVisionTools using ActivDecision It describes the functionality of ActivDecision and its cooperation with other Activ VisionTools with Visual Basic examples Before reading this manual we recommend to read the manual Get ng Started with ActivVisionTools which introduces the basic concepts of ActivVisionTools and the User s Manual for ActivView to learn
14. air ion Wrong Dist itawa Bad Caption Tong Distance i Feature Data 4 93 Error Caption Error Evaluation Failed a select a result in the tree and choose its type GO for plain style select evaluation texts 4 modify colors in AVTViewProperties ColorBadT ext ColorE ror ColorGood ColorGoodT ext DataLevel ROI DataType Evaluation ForeColor Color indicating that feature evaluated as bad Figure 2 8 Configuring AVTDecisionResult at run time ActivVisionTools 3 2 Your Fast Track to Solutions 22 Using ActivDecision ActivDecision 2008 04 23 Chapter 3 Tips amp Tricks This chapter contains additional information that facilitates working with ActivDecision e g how to modify the graphical display of results and to customize the appearance of an Activ VisionTools application in the two execution modes Furthermore it shows how to access eval uation results directly via the programming interface of Activ VisionTools 3 1 Adapting the Display of Results in AVTView ellen 24 32 Configuring the Two Execution Modes leen 26 33 Miscellaneous 2 ste aa ee ee eee ee ee ee te hh m n n 28 3 4 Accessing Evaluation Results Via the Programming Interface 30 S41 Basie Prmeiples 2244s ee ae SE eee eR ee RUN 31 37 An Example Project 5 co 6 5 925493 Eee Se HEHE SSS 34 23 c 2 E o o e E lt 24 Tips amp Tricks Visual Basic
15. alled objects are extracted from the image in the case of ActivMeasure e g objects correspond to edges or edge pairs in the case of Activ BlobFinder to the blobs Then one or more features are calculated for each object You can e g calculate the position of each edge but also its amplitude or the distance between edges ActivFeatureCalc lets you calculate a large number of gray value and shape features for each blob extracted by ActivBlobFinder Features are calculated not only for objects but also for each ROI in form of the number of extracted objects and the number of objects which have been evaluated as okay so called good objects and not okay bad objects respectively Similarly for each tool the number of objects summed over all ROIs of the tool are calculated and the corresponding number of objects which have been evaluated as okay and not okay respectively Further features are the number of ROIs which have been evaluated as okay good ROIs and not okay bad ROIs respectively Besides the value of each feature its evaluation forms a separate result Furthermore the objects ROIs tools and the overall application are evaluated This hierarchy of results is depicted in figure 1 1 Evaluating by Formulating Conditions ActivDecision lets you compare the value of an individual feature with two boundary values a minimum and a maximum value Thus you may formulate conditions like fe
16. ature x must lie inside a and b i e a lt x lt b or feature x must be equal to a i e x a Of course you may choose not to evaluate a feature at all this is the default setting for all features A tool ROL or object is evaluated as okay if all of its features are evaluated as okay i e meet their corresponding conditions or do not have an attached condition Similarly the overall application is evaluated as okay if all tools are evaluated as okay ActivDecision 2008 04 23 1 1 Introducing ActivDecision 3 c Application okay O o eo e 2 e g ActivMeasure e g ActivBarcode D C N C N lt Tool 1 Tool 2 okay good ROIs okay good ROIs okay bad ROIs okay bad ROIs okay number objects okay number objects okay good objects okay good objects okay j kay j kay b bad E okay J C bad Ei okay J ROI 1 okay ROI 1 okay number objects okay number objects okay good objects okay good objects okay bad objects okay bad objects okay T Object 1 okay Object 1 okay Width i okay Code okay Distance Center okay Object 2 okay Width okay Distance Center okay Figure 1 1 The hierarchy of features and evaluations in an example ActivVisionTools application Specifying Defaults for the Evaluation Parameters In many applications many similar objects are extracted which all should meet the same co
17. ccessed by specifying the ID of the object and the feature of interest in a call to the method ObjectValue of ACTIVVTOOLSLib AVTROIResult The feature handles are available as methods of the corresponding tool e g AVTMeasure FeatureHandlePairWidth being the handle for the measured width c 2 E o o e gt lt You can query the overall evaluations at different levels tool ROI or object Dim bToolIsOK As Boolean bROIIsOK As Boolean bObjIsOK As Boolean bToolIsOK atMeasureResult Evaluation bROIISsOK atROIResult Evaluation b0bjIsOK atROIResult ObjEvaluation 0 Furthermore you can access the evaluation of individual features like the measured width of the object with the ID 0 but also of tool features e g the evaluation of the number of bad ROIs or of ROI features e g the evaluation of the number of objects via the corresponding feature handle In contrast to object features the handles for tool and ROI features are available as properties of ACTIVVTOOLSLib AVTToolResult Dim handleWidth As Integer handleBadROIs As Integer Dim handleObjectsInROI As Integer Dim bWidthIsOK As Boolean bBadROIsIsOK As Boolean Dim bObjectsInROIIsOK As Boolean handleWidth AVTMeasurei FeatureHandlePairWidth handleBadROIs atMeasureResult FeatureHandleBadROIs handleObjectsInROI atMeasureResult FeatureHandleObjectsROI bWidthIsOK atROIResult O0bjFeatureEvaluation handleWidth 0 bBadROIsIsOK atMeasureResult
18. cisionViewResults can be set in AVTViewProperties which can be opened by clicking on AVIView with the right mouse button and selecting Properties in the appearing context menu In it select the properties for AVTDecision Likewise the texts used in AVTDecision to indicate the overall evaluation are stored in the AVTDecision s properties TextGood and TextBad If you step through the image sequence you can watch the effect for those fuses that don t meet the conditions ActivDecision 2008 04 23 3 1 Adapting the Display of Results in AVTView 25 D open AVTViewDisplayModes by clicking on AVTView with the right mouse button iw Using ActivDecision in a Measuring Application ni xi F flight gt Dark T Edge Type Edge Pais gt Edge Grouping fallEdges v Edge Selection af gt s Edge Strength af gt 2 Noise Level 3 P 5 Rorwidh Standard b Accuracy Active ROI iol xi Error ROI ActivVisionT ool AVTDecisiont T e S E 5 e E Z 5 lt x Selected Tool Mill Blue Error BusyCursorMinRows 250 ColorBad Inactive Tools Yellow 7 p Selected tabadi E 5 i ColorGood y Special IB Magenta Display Mode Filled ColoioodTent Pick Point Bi Red 4 Line Width 3Pres gt poo m Text E Blue MS Sans Serif 12pt J Text Background J Contrasting Contours 4 Line Width 2 Pi
19. double page ActivVisionTools 3 2 Your Fast Track to Solutions 18 Using ActivDecision ia Displaying Selected Results 15 x flight gt Dark v Edge Type Edge Pars gt Edge Grouping falledges gt Edge Selection af gt EJ Edge Strength a E Noise Level sf FB Ro width Standard Accuracy Figure 2 6 Examples for AVTDecisionResult Displaying Selected Results continued Now we turn to AVTDecisionResult Figure 2 6 depicts three instances of this tool which are configured to display the evaluation of the horizontal ROI over the fuse wire the evaluation of the ROI over the fuse fingers and the value and evaluation of the distance between the fuse fingers eva Hase Preparation for the following example Example At design time add three instances of AVTDecisionResult to the form by double clicking the icon ES and adapt their size Execute the application and load the image sequence fuse fuse2 seq You configure AVTDecisionResult partly at design time and partly at run time At design time you configure the appearance e g whether the result is to be displayed in form of a bar or as plain text At run time you select the result and or evaluation that is to be displayed besides you can also configure parts of the appearance e g colors ActivDecision 2008 04 23 2 5 Displaying Selected Results 19 choose the general sty
20. ecision 2008 04 23 2 5 Displaying Selected Results 17 ia Displaying the Number of Good and Bad Objects ni xj flight gt Dak v Edge Type Edge Pais v Edge Grouping Al Edges v Edge Selection af gt EJ Edge Strength a gt EJ Noise Level 3 Rorwieth Standard Accuracy dz l s zigixi ActivVisionT ool JAVTDecisionStatust Absolute True AIROIs True False e S E 5 e E Z 5 lt x Select Tool All AVTMeasuret z ROI Al v m M ine olorood Pam qp MaxRange 10 ROIName Line_1 ToolName AVTMeasurel r Display 4 Good Bad A bsolut PGES 2 Chere g Color of the bad object indicator bar j Max Range 10 D open the dialog via a right mouse click 2 select whose objects are displayed 9 if absolute numbers are displayed a modify the used colors you can modify the range in AVTViewProperties Figure 2 5 Displaying the number of good an bad objects in AVTDecisionStatus D The colors used for the bars can be configured via AVTViewProperties see User s Manual for ActivView section 2 3 on page 20 which can be opened by clicking on AVTView with the right mouse button and selecting Properties in the appearing con text menu In it select the properties for AVTDecisionStatus We continue with the example on the next
21. es in the columns Min and Max You can move between the fields with the cursor keys Results can be interpreted as numbers or strings You can change the interpretation in the column Interpretation All features of ActivMeasure are interpreted as numbers ActivAlignment s feature Status as a string In the column Operation you can select various operations for the condition e g that a feature value must lie Inside the two boundary values If you select None the feature is not evaluated this is the default setting Whenever you move the cursor to another field or press Enter all conditions are evaluated In the column Name those features which meet their condition appear in green the others in red If one feature of an object does not meet its condition the whole object is evaluated as not okay and the corresponding entry in the column Tool ROI Object and in the navigation tree is displayed in red The colors and the text displayed in AVTDecision can be configured via AVTViewProperties see User s Manual for Activ View which can be opened by clicking on AVIView with the right mouse button and selecting Prop erties in the appearing context menu In it select the properties for AVTDecision ActivDecision 2008 04 23 2 2 Formulating Conditions 4 The procedure for formulating conditions is the same for object ROI and tool features you can specify boundary values and select an operation for
22. esponding default conditions If e g you click on the field Min of the Width of an object the dialog contains tool wide defaults for the object features as well as defaults for the corresponding ROI If you click on the field Max of the Bad Objects ROI of an ROI the dialog contains the tool wide defaults for the ROI features Note that the dialog appears only once to create the figure the second one was pasted on In the dialog you can formulate default conditions in the same way as described in section 2 2 on page 10 An ROI wide default condition overrides a tool wide default Furthermore an individ ual condition for a feature overrides all default conditions Figure 2 3 shows how to apply this mechanism to set suitable conditions for the example application described in section 2 2 on page 10 Experiment with default and individual conditions and step through the image sequence to watch the effect If you check v Substitute Default the entries Default are replaced by the actual values of the parameters ActivDecision 2008 04 23 2 3 Specifying Defaults Via a Context Menu 13 2 specify tool wide or ROlI wide defaults 4 override tool wide by ROI wide defaults f or by individual conditions AS Specifying Default Conditions of x Liht gt Dark m Edge Type Edge Pars m Edge Grouping andes m Edge Selection af f 58 Edge Strength f gt 23 Noise Level x P 40 ROI width Sta
23. example If you worked on the previous example you may continue using this project Otherwise open the project tips decision_tips vbp execute it and load the image sequence fuse fuse2 seq The following steps are visualized in figure 3 2 O Open AVTViewExecute and AVTViewConfigExec by clicking on AVTView with the right mouse button and selecting Execution and Execution Parameters in the popup menu Q In AVTViewExecute you can switch between the two modes via the combo box Mode To execute one cycle press Single In our example this means that the next image of the sequence is loaded With the other two buttons you can start the application in a continuous mode and stop it again 4 For each of the two execution modes you can choose what is to be displayed by checking the corresponding boxes in AVTViewConfigExec Furthermore you can specify if images can be dragged to the image window and whether ROIs can be modified in the two modes by default this is disabled in the application mode to prevent you from accidentially moving or deleting an ROI More information about these tool can be found in the User s Manual for Activ View section 3 4 on page 34 ActivDecision 2008 04 23 3 2 Configuring the Two Execution Modes 27 m open the two tools by clicking on AVTView with the right mouse button inl x flight gt Dak v Edge Type Edge Pais gt Edge G
24. how to load and display images For each example in this manual there is a corresponding Visual Basic project these projects can be found in the subdirectory examples WnanualsNactivdecision of the ActivVisionTools base directory you selected during the installation default C Program Files MVTec ActivVisionTools Of course you can also create your own Visual Basic projects from scratch Note that the screenshots in the manual may differ slightly from the corresponding Visual Basic projects To follow the examples actively first install and configure Activ VisionTools as described in the manual Getting Started with Activ VisionTools We recommend to create a private copy of the example projects because by experimenting with the projects you also change their state which is then automatically stored in the so called description files extension dsc by ActivVisionTools Of course you can restore the state of a project by retrieving the corresponding description file from the CD 1 About ActivDecision 1 1 Introducing ActivDecision 12 TheSub Tools of ActivDecision 2 Using ActivDecision 2 1 Browsing Results 2 2 Formulating Conditions 2 3 Specifying Defaults Via a Context Menu 2 4 Specifying Defaults Via the Support Tool 2 5 Displaying Selected Results 3 Tips amp Tricks 3 1 Adapting the Display of Results in AVTView 3
25. i 00 s qs ra AGIs Line_3 pe 4 Objects ROI ope Good Objects RO 0 N mber None Bad Objects ROI 0 umber Max Width 0 500 0 78Q Number Inside Distance Pair 1 000 100 0110 Number None Iv Fit Cell Size Substitute Default D move the separating bar or hide the tree 2 if this box is not checked you can change the size of fields Figure 3 3 Miscellaneous Elements of ActivDecision ActivVisionTools 3 2 Your Fast Track to Solutions 30 Tips amp Tricks 3 4 Accessing Evaluation Results Via the Program ming Interface The previous chapters and sections showed how to use ActivVisionTools interactively i e via the graphical user interfaces presented by the underlying ActiveX controls In this mode you can develop the image processing part of your machine vision application rapidly and easily without any programming However there is more to ActivVisionTools than the graphical user interfaces Because ActivVisionTools comes as a set of ActiveX controls it provides you with an open programming interface thereby offering full flexibility In this section we show how to access the evaluation results via the programming interface With this you can e g realize an application specific graphical user interface perform addi tional processing on the results or send results to a special output device Detailed information about the prog
26. igure 2 1 D Open AVTDecisionViewResults by clicking on AVTDecision with the right mouse button and selecting Decision Results in the popup menu First switch on the update of results and evaluations by checking v Enable Update We recommend to disable the update while experimenting with the parameters of other tools especially ActivBlobFinder to speed up the processing Note that the check box only influences the display the evaluations themselves are performed automatically as soon as you have formulated conditions GB The left part of AVTDecisionViewResults contains a navigation tree At first this tree is folded showing only the connected tool s You can unfold and fold it by clicking on the and icons 4 When you click on a label in the tree the right part of AVTDecisionViewResults displays the corresponding features including their current values The selected item is displayed in the top line In figure 2 1 AVTMeasure1 was selected thus all the features of this tool of its three ROIs and of the therein extracted objects i e edge pairs are displayed When you click on an object it is highlighted in AVTView Note that objects start with the index 0 Results are evaluated and displayed at each image processing cycle i e whenever you grab a new image but also when you modify an ROI or change a parameter ActivDecision 2008 04 23 2 1 Browsing Results 9 D open AVTDec
27. isionViewResults by clicking on AVTDecision with the right mouse button ia Browsing the Results of ActivMeasure and ActivAlignment e S E 5 e E E 5 x flight gt Dark m Edge Type JEdae Pais m Edge Grouping falledges Edge Selection CE 88 Edge Strength 23 Noise Level s ROI width Passed Ml rv Results ActivDe ioj x Path TMeasurel E AVTAlignment Tool ROI Obiect Name Value ninos ee Tool Featurbs AVTMeasurel Objects Tool 10000 Number Circle 3 Good Objects T ool 10000 Number ut Boodh 10000 Numba oot umber ii ies Bad ROls 10000 Number ta f Line 1 Objects ROI t Default Default Good Objects ROI t Default Default ROI Features Bad Objects RI t Default Default Object 0 Object 0 Width t Default Default Object 1 Distance Pair It Default Default Default E Line_2 Width t Default Default ROI Features Object 0 Objects RO t Default Default It El Line 3 Good Objects ROI It Default Default Default ROI Features Bad Objects ROI It Default Default Default Object 0 Width It Default Default It Object 1 Objects ROI It Default Default 1 Good Objects ROI 12 Default Default Default Default IV Enable Update Iv Fit Cell Size Substitute Default Unit Iam check this box to enable the display 4 select what is to be displayed to the right the selected item is disp
28. layed on top 9 fold and unfold the tree Figure 2 1 Browsing the results ActivVisionTools 3 2 Your Fast Track to Solutions 10 Using ActivDecision Visual Basic Example 2 2 Formulating Conditions Using Fra AVTDecisionViewResults allows to formulate conditions for each individual feature on tool ROI and object level see section 1 1 on page 2 for details on this hierarchy and on conditions themselves How to specify default conditions is described in the following sections In our example application car fuses are inspected using ActivMeasure and ActivAlignment as shown in figure 2 2 For the fuse to be evaluated as okay the width of the fuse wire measured at three positions with two ROIs should lie between 0 5 and 0 7mm and the distance between the two fingers between 4 2 and 4 8mm As the position and orientation of the inspected fuses can vary the measurement ROIs are aligned to the fuse using the two rectangular gaps as the anchor Preparation for the following example If you did not already open it in the previous example please open the project us ing decision_using vbp and execute it Load the image sequence fuse fuse2 seq and open AVTDecisionViewResults via a right mouse button click on AVTDecision The following steps are visualized in figure 2 2 D In a condition you can check a result value against a minimum value and or a maximum value by entering valu
29. le select layout parameters 4 Property Pages Display Parameters l Bxtd c 2 E o o e E lt Style E Precision af o gt 24 r Settings for style Bar Orientation Horizontal Min Range 3 90 Max Range 5 10 I Default range lt 4 v Coordinates V Segmentation Cancel Figure 2 7 Configuring AVTDecisionResult at design time The following steps are depicted in figure 2 7 O Open the property page of AVTDecisionResult by clicking on it with the right mouse button and selecting Properties in the appearing context menu In the combo box Style you can select between three display styles Depending on the selected style the lower part of the dialog shows different parame ters For the right most AVTDecisionResult in figure 2 6 e g the style Bar was selected For this style you can e g select the orientation of the bar whether to use the default range or else specify your own range Please note that it depends on the programming environment whether all parameters can be modified and whether the selected values are saved in the DSC file In Visual Basic 6 0 all parameters can be edited and are saved Those parameters that cannot be edited in Visual Studio NET or Visual C can be edited at run time as described on the next double page We continue with the example on the next double page ActivVisionTools 3 2 Your Fast Track to Solution
30. lts As Boolean bFoundAlignmentResults As Boolean Dim atMeasureResult As AVTToolResult Dim atAlignmentResult As AVTToolResult bFoundMeasureResults False bFoundAlignmentResults False For Each atToolResult In atToolResults If atToolResult Name AVTMeasurei Then Set atMeasureResult atToolResult bFoundMeasureResults True Else If atToolResult Name AVTAlignmenti Then Set atAlignmentResult atToolResult bFoundAlignmentResults True End If End If Next If bFoundMeasureResults False Or bFoundAlignmentResults False Then Exit Sub End If Then the program checks whether the application contains three lines of measurement Dim iNumROI As Integer iNumROI atMeasureResult ROINum If Not iNumROI 3 Then errorMsg Cycle amp iNumCycles amp Corrupt application Call DisplayMessage errorMsg Call SetAlarm Exit Sub End If If not exactly three ROIs exist the function SetAlarm stops the application and an error message is displayed The function ClearAlarm resets the alarm Test this behavior by creating an additional ROI ActivVisionTools 3 2 Your Fast Track to Solutions c 2 E o o e gt lt 36 Tips amp Tricks Private bIsError As Boolean Private Function SetAlarm AVTView1 RunState False bIsError True End Function Private Function ClearAlarm bIsError False End Function If exactly three lines of measurement are present their results are stored in an array
31. more detail we recommend to read the User s Manual for ActivMeasure and the User s Manual for ActivAlignment 21 BrowsingResultS ee ee ee te ee ee nn 8 22 Formulating Conditions een 10 2 3 Specifying Defaults Via a Context Menu llle 12 2 4 Specifying Defaults Via the Support Tool 14 2 5 Displaying Selected Results llle 16 c s o o o e E lt Using ActivDecision Visual Basic Example 2 1 Browsing Results Using Ef and FE ActivDecision s master tool AVTDecision displays the overall evaluation of the application while the support tool AVTDecisionViewResults allows both to view the results i e the values of the tool ROI and object features see section 1 1 on page 2 and their evaluation and to formulate conditions the features have to fulfill In this section we concentrate on the former how to formulate conditions is the topic of the next section Section 2 5 on page 16 shows how to display selected results using AVTDecisionResult and AVTDecisionStatus Preparation for the following example Please open the project using decision_using vbp as the measuring application used in the following sections is already configured suitably in it Execute the application Run gt Start or via the corresponding button Load the image fuse fuse25_03 The following steps are visualized in f
32. ndard Accuracy rx 0ecicion Object Defaults m x AVTMeastxel Width 0 500 0 700 Number Inside Distance Pair 1 000 100 000 Number None Line_3 Width Default Default Default None Distance Pair 4 2 48 Default e S E 5 a E E 5 lt x un tv Results ActivDecision Path Decision ROI De aults Number Gpod Objects ROI O 10000 Number amp d bjects ROI 0 0 Number El AVTAlignmentl E AVTMeasurel Tool Features S a RS v Fit Cell Size Substitute Default Object 0 Object 1 It Default Defaul B Line 2 It Default Defaul ROI Features Object 0 efault Default Defaul Object 0 i efault Default Defaul B Line_3 Object 1 efault Default Defau ROI Features Object 0 Line_2 Objects ROI 1 Defaul Object 1 Good Objects ROI efault Default Defaul Bad Objects ROI efault Default Defaul Width efault Default Defau Line 3 Objects ROI pea Default Defau Good Objects ROI efault Default Defaul Bad Objects ROI efault Default Defaul Object 0 Width Default Default Defaul Distance Pai Default Default Defau m click with the right mouse button to 9 check this box to replace default by the display or edit the default parameters actual value Figure 2 3 Specifying default conditions via the context dialog ActivVisionTools 3 2 Your Fast Track to Solutions
33. ndi tions For this ActivDecision allows to specify default conditions for individual features These default conditions can be specified on different levels ROI wide defaults are valid for all objects ActivVisionTools 3 2 Your Fast Track to Solutions 4 About ActivDecision in a certain ROI while tool wide defaults are valid for all objects in all ROIs of a certain tool Of course you can also mix default conditions with individual conditions In such a case an individual condition overrides a default condition Similarly an ROI wide default overrides a tool wide default Note that you can override individual parameters of a condition separately while keeping default values for the rest 1 2 The Sub Tools of ActivDecision ActivDecision provides three master tools and three support tools In figure 1 2 they are shown in an example Activ VisionTools application where they are used to evaluate the results of Activ Measure AVTDecision is the main master tool of ActivDecision It displays the overall evaluation of your application How to use and configure AVTDecision is described in more detail in sec tion 2 1 on page 8 AVTDecisionViewResults is a support tool of ActivDecision It allows to specify conditions for all types of features and displays the current feature values together with the evaluation results How to use AVTDecisionViewResults is described in section 2 1 on page 8 and section 2 2 on page 10 AVTDecisionVie
34. of ActivVisionTools you leave the safe world of the ActivVisionTools 3 2 Your Fast Track to Solutions 38 Tips amp Tricks graphical user interfaces where all input is checked for validity automatically In contrast if you try to access a non existant object or result via the programming interface a run time error is caused which halts your application To avoid this you can use the Visual Basic error handling mechanisms i e set up an error handler which examines any occurring error and reacts in a suitable way In the example project if an error is caused by the result access a popup with the error description appears and the function SetAlarm is called To view the effect of the error handler de select the feature Width in AVTMeasureResults Private Sub AVTDecisioni_Finish atToolResults As Collection variable declarations On Error GoTo ErrorHandler procedure body Exit Sub ErrorHandler Dim sTitle As String If Left Err Source 11 ActivVTools Then sTitle ActivVisionTools Error Else sTitle Runtime Error amp CStr Err Number End If Call MsgBox Err Description vbExclamation sTitle Call SetAlarm End Sub ActivDecision 2008 04 23
35. pay ceed to display good Results r Display Image YT Measurel Ling_3 Object 1 E AVTAJ nmenti Tool RO Objeci Wamel Value Min Max Interpretation Operation B AvTMeasurel Width 15 50 Default Default Default Default Tool Features Line 1 H Line 2 E Line 3 ROI Featufes Object 0 Object 1 4 v Enable Update i Fit Cell Size J Substitute Default Unit mm color of objects or ROIs evaluated as 3 color used to highlight objects selected not okay in the tree modify the colors and texts used within ActivDecision via AVTViewProperties Figure 3 1 Modifying the display of evaluation results ActivVisionTools 3 2 Your Fast Track to Solutions 26 Tips amp Tricks Visual Basic Example 3 2 Configuring the Two Execution Modes Via and FH In an ActivVisionTools application you can switch between two execution modes the config uration mode and the application mode The former should be used to setup and configure an application the latter to run it ActivView s support tools AVTViewExecute and AVTView ConfigExec allow you to switch between the two modes and to customize the behavior of an Activ VisionTools application in the two execution modes e g display live images only in the configuration mode to setup your application but then switch it off in the application mode to speed up the application Preparation for the following
36. ramming interface can be found in the Reference Manual As in the previous sections the examples stem from Visual Basic 6 0 if the ActivVisionTools specific code differs in Visual Basic NET the corresponding lines are also shown for the first appearance only For other NET languages or C please refer to the Advanced User s Guide for Activ VisionTools section 1 2 3 on page 5 and section 1 3 4 on page 28 respectively Please note that we assume that readers of this part have at least a basic knowledge of Visual Basic To work with the programming interface in VB 6 0 you must first add the ActivVisionTools type library to the project s references by checking the box labeled ActivVisionTools Type Library in the menu dialog Project gt References In Visual Basic NET the ref erence is added automatically References datacode resultaccess vbp xj Available References OK M Visual Basic For Applications M Visual Basic runtime objects and procedures M Visual Basic objects and procedures MOLE Automation ctivVisionTools 3 1 Type Library L IAS Helper COM Component 1 0 Type Library a C IAS RADIUS Protocol 1 0 Type Library C Acrobat Priority O Acrobat Access 2 0 Type Library Help Acrobat Access 3 0 Type Library gt O Acrobat Distiller Acrobat WebCapture 1 0 Type Library CO Acrobat WebCapture IE Toolbar Favorites 1 0 Type L lAcroIEHelper 1 0 Type Library si gt ActivVisionTools 3 1 Type
37. rmore ActivAlignment s error mode has been set to Fail Feature i e Activ Measure does not perform any image processing if the alignment fails see the User s Manual for ActivAlignment section 3 1 on page 16 for more information When you start the example project and step through the image sequence you can see that when the alignment fails ActivMeasure and all of its ROIs are evaluated as not okay as well because the ROIs contain no objects The task now is to check the evaluation of the two tools Activ Measure and ActivAlignment via the programming interface and to display the real reason why the inspection has failed in a message list see figure 3 5 The relevant project code is described in the following only for Visual Basic 6 0 By placing the following code at the beginning of the handler of AVTDecision s event Finish the actual result access is restricted to the application mode With this mechanism you can setup the vision part of your application in the configuration mode without having to worry about ActivDecision 2008 04 23 3 4 Accessing Evaluation Results Via the Programming Interface 35 run time errors If Not AVIViewi ExecutionMode eApplicationMode Then Exit Sub End If The first task is to extract the results of ActivMeasure and ActivAlignment the following code solves this task including checks that the results are actually present Dim atToolResult As AVTToolResult Dim bFoundMeasureResu
38. rouping ades v Edge Selection af J gt EJ Edge Strength lt 2 a o o e 2 O lt ajal F d gt E Noise Level Ki gt JE Rowan Standard gt Accuracy zzi Failed Ki rt n4 M A x Application Mode IV Display Results Display ROIs IV Display Error Results Allow ROI editing I Allow Drag amp Drop r Execution Application v Mode Execute Slaves gt Single Run Stop Configuration Mode Iv Display Image v Display Results Iv Display ROIs iV Display Error Results v Allow ROI editing v Allow Drag amp Drop a select what is to be displayed and whether ROls can be modified for the two user modes switch between the two modes 3 execute a single cycle or start stop continuous mode Figure 3 2 Customizing and switching between the two execution modes ActivVisionTools 3 2 Your Fast Track to Solutions 28 Tips amp Tricks 3 3 Miscellaneous This section is a loose assortment of information about elements of ActivDecision which have not been described in the previous sections Visal Basic Preparation for the following example Example If you worked on the previous example you may continue using this project Otherwise open the project tips decision_tips vbp execute it and load the image sequence fuse fuse2 seq Open AVTDecisionViewRe
39. s 20 Using ActivDecision Displaying Selected Results continued Now we turn to the run time parameters For this execute the application and load the image sequence fuse fuse2 seq The following steps are depicted in figure 2 8 only parts of the application shown You can configure an instance of AVTDecisionResult via two dialogs that can be opened by clicking on the instance with the right mouse button and selecting a dialog in the appearing context menu If you select Result Selection in the context menu a dialog appears in which you can select the result to display Its left part contains the already well known tree of results to select an element for display click on it with the left mouse button At the top of the right part the combo box Result Type allows to choose whether to display just the evaluation just the result value or both In the example we chose to display the value and evaluation of the distance between the fuse fingers When you select Result Display Parameters in the context menu a dialog appears that contains the same elements as the property page of AVTDecisionResult shown in figure 2 7 Some elements can not be edited now but only at design time For the middle instance of AVTDecisionResult in figure 2 6 we chose to display just the evaluation of the ROI over the fingers in the style Plain For this style you can specify which text is to be displayed for the evaluations good
40. sult Dim atMeasureResult As AVTToolResult Dim bMeasureResultsFound As Boolean bMeasureResultsFound False For Each atToolResult In atToolResults If atToolResult Name AVTMeasurei Then Set atMeasureResult atToolResult bMeasureResultsFound True End If Next If bMeasureResultsFound False Then Exit Sub End If As already remarked in the previous section in Visual Basic NET tool names are prefixed with Ax thus you must search for the results of AxAVTMeasuret If atToolResult name AxAVTMeasurei Then A tool result object contains the result data for all ROIs of your instance of AVTMeasure Con tinuing the example code from above the current number of ROIs of AVTMeasure1 can be queried via Dim iNumROIs As Integer iNumROIs atMeasureResult ROINum The results of a certain ROI can be accessed by specifying its name in a call to the method ROIResult or by specifying its index in a call to the method ROIResults The following code uses the latter method to access the first ROI of AVIMeasure1 Dim atROIResult As AVTROIResult Set atROIResult atMeasureResult ROIResults 0 Now we can e g query the number of objects extracted in the ROI via ActivDecision 2008 04 23 3 4 Accessing Evaluation Results Via the Programming Interface 33 Dim iNum bjects As Integer iNumObjects atROIResult bjectNum Actual measurement results for an object i e the calculated values of features like Distance or Width can be a
41. sults and AVTDecisionViewDefaults via a right mouse button click on AVTDecision The following steps are visualized in figure 3 3 D Both in AVTDecisionViewResults and AVTDecisionViewDefaults you can move the bar separating the tree from the data grid by dragging i e by clicking on it with the left mouse button and then moving the mouse while keeping the button pressed Furthermore you can let the tree disappear by clicking on one of the arrow heads in figure 3 3 this has been performed for AVTDecisionViewDefaults Q If the box v Fit Cell Size is checked the fields in the data grid are resized auto matically to fit the contained data If this box is not checked you can change the width of a column by dragging the corresponding separator in the head row In figure 3 3 the column Interpretation of AVTDecisionViewResults has been closed by this method ActivDecision 2008 04 23 3 3 Miscellaneous 29 iw Other Useful Elements of ActivDecision olx Light gt Dark m Edge Type Edge Pairs v Edge Grouping AlEdges Edge Selection ATP se Edge Strength AL jf3 Noise Level s Jao RO width Standard Accuracy e S E 5 e E Z 5 x Passed rv Results ActivDecision Path MTMeasurel AVTAlignmentl AVTMeasurel Tool Features 4 Line_1 ed E Tool
42. the condition select how to interpret the values lolx iw Specifying Conditions Light gt Dark Edge Type Edge Grouping Edge Selection s Edge Strength 23 Noise Level a0 ROI Width Ve Accuracy Failed i rv Results ActivDecision MN CN 151 x Path AVTMeasurel AVTAlignmentl 4 Tool ROI Object Name Value Min Max Interpretation Operation B AVTMeasurel AVTMeasurel Objects Tool 5 0 10000 Number None Tool Features Good Objects Tool 4 0 10000 Number None B ine Bad Objects Tool 41 0 10000 Number None n Good ROIs 2 0 10000 Number None iir Bad Rls Po 0 Number Max is Object 1 Line_1 Objects ROI 2 2 2 Default Max Es Good Objects ROI 12 Default Default Default Default E Line_2 Bad bjecis ROI Jo D 0 Default Max la ROI Features bject 0 Width 0533 0700 Default nside Object 0 Distance Pair 1 628 Default Default Default Default E Line_3 Object 1 Width 0 615 0 500 0 700 Default nside ROI Features Object 0 Line_2 Objects ROI 1 1 Default Max Object 1 Good Objects ROI Default Default Default Default Bad Objects ROI 0 Default Max Object 0 Width 0 500 0 700 Default inside Line_3 Objects RO 2 2 2 Default Max Good Objects ROI 41 Default Default Default Default Bad Objects ROI 41 Default Max Object 0 Width 5 487 Default Default Default Default Distance Pair 4329 4 200 4 800 Default inside 4
43. tions of AVTDecisionResult and AVTDecisionStatus We recommend to further experiment with these tools yourself We start with AVTDecisionStatus Please note that the example in figure 2 5 does not show a useful application of AVTDecisionStatus a typical application would be to check the effect of changing processing parameters or evaluation boundaries if many objects are extracted Preparation for the following example If you did not already open it in the previous example s please open the project using decision_using vbp At design time add AVTDecisionStatus to the form by double clicking the icon Bu s Execute the application and load the image sequence fuse fuse2 seq The following steps are visualized in figure 2 5 D You can configure an instance of AVTDecisionStatus via AVTDecisionStatus Parameters which can be opened by clicking on AVTDecisionStatus with the right mouse button and selecting Parameters in the appearing context menu In this dialog you can select whose objects are to be analyzed via a set of check boxes in the frame Select For example you can choose to use the objects of all tools of a specified tool or of one or more ROIs of a tool Via the check box v Absolute in the frame Display you can specify whether absolut or relative numbers are to be displayed If you choose absolute numbers you can also specify the maximum of the displayed range ActivD
44. tures and the default conditions of its three ROIs for the object features On the right side you can formulate default conditions as described in the previous section An ROI wide default condition overrides a tool wide default Furthermore an individual condition for a feature overrides all default conditions In figure 2 4 the default conditions are set like in figure 2 3 on page 13 which also shows the necessary individual conditions for the application If you check v Substitute Default the entries Default are replaced by the actual values of the parameters ActivDecision 2008 04 23 2 4 Specifying Defaults Via the Support Tool 15 m open AVTDecisionViewDefaults by clicking on AVTDecision with the right mouse button iw Specifying Default Conditions flight gt Dark m Edge Type Edge Pairs 7 Edge Grouping AlEdges Edge Selection af 58 Edge Strength at 23 Noise Level a jf no widh Standard Accuracy e S E 5 e E Z 5 lt x Passed Objects ROI 2 z E Good Objects RO 0 ims Number None Bad Objects ROI 0 0 Number Max Width 0 500 0 700 Number Inside Distance Pair 1 000 100 000 Number None Width Default Default Default Default Distance Pair Default Default Default Default Width Default Default Default Default Distance Pair Default Default Default Default Width Default Default Default None Distance Pair 4 200 4 8
45. wDefaults is a support tool of ActivDecision It allows to specify tool wide and ROI wide defaults for the conditions How to use AVTDecisionViewDefaults is described in section 2 4 on page 14 AVTDecisionResult is a master tool of ActivDecision i e it can be used without AVT Decision being placed on the form It allows to display selected feature values and or evalu ations in different ways How to use AVTDecisionResult is described in section 2 5 on page 16 AVTDecisionStatus is a master tool of ActivDecision i e it can be used without AVT Decision being placed on the form It allows to display the overall status of the application in different ways How to use AVTDecisionStatus is described in section 2 5 on page 16 E db OH A d AVTDecisionStatusParameters is a support tool of AVTDecisionStatus With it you can configure the display of the overall status How to use AVTDecisionStatusParameters is described in section 2 5 on page 16 sa ActivDecision 2008 04 23 1 2 The Sub Tools of ActivDecision 5 EE AvTDecision ActivView ActivMeasure B AVTDecisionStatus iw The Sub Tools of ActivDecisiori c 2 a o o e 2 lt Liht gt Dark m Edge Type Edge Pars m Edge Grouping AlEdges Edge Selection agf H ao Edge Strength i d v 72 Noise Level x P fio Rot wieth Standa E Accuracy Good Bad Total objects 2
Download Pdf Manuals
Related Search
Related Contents
Copyright © All rights reserved.
Failed to retrieve file