22.01.2015 Views

HDevelop User's Manual

HDevelop User's Manual

HDevelop User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3<br />

Language<br />

The following chapter introduces the syntax and the semantics of the <strong>HDevelop</strong> language. In<br />

other words, it illustrates what you can enter into a parameter slot of an operator. In the simplest<br />

case this is the name of a variable, but it might also be an expression like ×ÕÖØ´µ. Besides,<br />

control structures (like loops) and the semantics of parameter passing are described.<br />

Chapter 5 explains the application of this language in image analysis. However, the HALCON<br />

operators are not described in this chapter. For this purpose refer to the HALCON reference<br />

manual. All program examples used in this chapter can also be found in the directory<br />

±ÀÄÇÆÊÇÇ̱ÜÑÔÐ×ÚÐÓÔÅÒÙÐ×ÀÚÐÓÔ.<br />

3.1 Basic Types of Parameters<br />

HALCON distinguishes two kinds of data: control data (numerical/string) and iconic data (images,<br />

regions, etc.).<br />

By further distinguishing input from output parameters, we get four different kinds of parameters.<br />

These four kinds always appear in the same order in the <strong>HDevelop</strong> parameter list. Table 3.1<br />

shows their order of appearance.<br />

iconic<br />

iconic<br />

control<br />

control<br />

input<br />

output<br />

input<br />

output<br />

Table 3.1: Order of appearance of the four basic parameter types<br />

As you see, iconic input objects are always passed as the first parameter(s), followed by the<br />

iconic output objects. The iconic data is followed by the control data, and again, the input<br />

parameters succeed the output parameters. Each parameter is separated from its neighbours by<br />

a comma:<br />

ÖÑ ´ÁѸ ³Æѳµ<br />

ÖÒØÖ ´ÊÓÒ¸ Ö¸ ÊÓÛ¸ ÓÐÙÑÒµ<br />

ÑÒÑ ´ÁѸ ÅÒ¸ ½½¸ ½½µ<br />

59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!