Denso RC5 Specifikace Strana 595

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 692
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 594
Chapter 21 Vision Control (Option)
21-43
VISHIST (Statement)
Function
Obtains the histogram (brightness distribution) of the screen.
Format
VISHIST <Window number>, <Coordinate X>, <Coordinate Y>
Explanation
<Window number> Designates the window number (0 to 511).
<Coordinate X> Designates the X coordinate (0 to 511).
<Coordinate Y> Designates the Y coordinate (0 to 479).
Note (1): Designate the process area with a window.
Note (2): If the designated window position is out of screen, the
execution will result in an error.
Note (3): The only possible window shape that you may designate is
a rectangle with 0 degrees. If another window shape is
designated, an error will result.
Note (4): The processing object is the screen designated with
VISWORKPLN.
Note (5): It is possible to read the processing result with the
VISREFHIST instruction.
Note (6): The memory stores the processing result. It will be kept
until this instruction is executed again.
Note (7): For this instruction, a µ
µµ
µVision board (option) is required.
Related Terms
WINDMAKE, VISWORKPLN, VISREFHIST
Example
WINDMAKE R,1,100,100,0,2 'Sets window 1 to rectangle.
CAMIN 1 'Obtains a camera image from the storage memory.
VISWORKPLN 0 '
Sets the processing object screen for storage memory 0.
VISHIST 1,100,100 'Executes the histogram for window 1 with the coordinates
'(100, 100) as the home position.
FORI1=0TO255 '
I2 = VISREFHIST(I1) '
Assigns the distribution data of the brightness value I1 to I2.
VISLOC 10, 10 'Sets the display position.
VISDEFCHAR 1,1,3 '
Designates the display character size and the display mode.
VISPRINT “Distribution data=”;I2
'
NEXT I1
Zobrazit stránku 594
1 2 ... 590 591 592 593 594 595 596 597 598 599 600 ... 691 692

Komentáře k této Příručce

Žádné komentáře