1 / 13

Scion Macros

Scion Macros. How to make macros for Scion The Fast and Easy Guide. What is a Macro?. A macro is a series of commands and instructions that you group together as a single command to accomplish a task automatically. Macros Purpose. Macros in image processing allows for Automation

cody-byers
Télécharger la présentation

Scion Macros

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Scion Macros How to make macros for Scion The Fast and Easy Guide

  2. What is a Macro? A macro is a series of commands and instructions that you group together as a single command to accomplish a task automatically.

  3. Macros Purpose Macros in image processing allows for Automation Technique Enhancements.

  4. Scion Macro Utilize the pascal language Are written in text format Use pre-defined function Help files are extensive and thorough

  5. Pascal • Scion help information assumes that you already know Pascal • It has an extensive library of functions, which I have compile into one text document (“Scion Function.doc”). • I have compiled together a few of syntax for Pascal (“Scion Pascal.doc”)

  6. Pascal Ground Rules • All command ends with semi-colon • Assign value to variable with colon followed by equal sign (i.e. variable:=2;) • Comments are put into brackets { } • Strings are defined with ‘ ‘

  7. Macro Structure macro ‘macro name’; var {declaring global variables} i, pid1, pid2: integer; a, b, c: boolean; variable1, variable2: real; begin { your code here} end;

  8. Loops FOR Loops PASCAL C/C++ for i:=1 to 8 do begin for(int i=0; i<8; i++){ { code here }; { code here }; end; }

  9. Loops WHILE Loops PASCAL C/C++ Repeat while( parameter ){ { code }; { code }; until parameter;}

  10. Loops IF Statements PASCAL C/C++ if parameter then { code}; if( parameter ) { code }; if parameter then begin if (parameter){ { code }; { code }; end; } if parameter if( parameter) else else

  11. Neat Input/Output Tools • Get - can prompt user for input • GetNumber(); GetString(); • Set - change option and setting • SetNewSize(); SetThreshold(); • Show • ShowMessage(); ShowHistogram();

  12. Macros vs. Procedure Think of procedure as functions that could be called only the macros. NOTE: variable declare in procedure or macro are availablet to call procedure.

  13. Conclusion The best way to learn is to it yourself. I would recommend that you first look at the basics to Pascal, then look at the example macros and used the function tables as references.

More Related