Up | Grab | Inspect | GetImageProp | GetImagePropRange | SetImageProp | Image | Camera

 

  

 
Image
Operate on Scorpion Images and their presentation

Syntax:

Image;<imageNo=1..n>;<image=name>:<Show=<0..n/name>;<Active=0|1>;<Path=value>;<Simulate=0|1>;<Cmd=setup|flush|clear|clearall>;<Reference=value>;<Overview=name>

 

Parameter

Value

Description
ImageNo 1..n image index
Image image name image by name is an alternative to imageNo - avoids image order dependency
Active 0/1 activaes or deactivates specified image
Simulate 0/1 sets simulate state for specified image
Path full/relative path sets image folder for specified image (relative to current path if not full path given)
Reference name sets current image reference. If value is a not existing reference the reference defaults to Pixels
Show 1..n / name activates imagetab in the pagecontrol in multi image configurations. 1..n - single image, name - named image/overview
Hide 1..n / name hides imagetab in the pagecontrol in multi image configurations
ImageMode 0/1 set imagemode (hides or unhides right pane)
Cmd setup |flush|clear|clearall setup - shows configuration dialog
flush - flushes the temporary image buffer, the buffer holding images until the AfterGrab event is fired
clear - clears view for given image or imageno
clearall - clears all views for all images

Example 1:  Activate user defined image overview

Image;Show='ROBOT 1'

Example 2:  Activate Image 1

Image;Show=1 # image 1 is shown

Example 3:  Activate Image named Height

Image;Show=Height

Example 4:  Enable Activate input from Image 1

Image;Active=1;Image=Height

Example 5:  Displays Image Configuration dialog

Image;imageNo=2;cmd=setup

Example 6:  Clears all internal image buffer - used to resynchronize images in multicamera systems

Image;cmd=flush

Example 7:  Clears image view for image no 2

Image;imageno=2;cmd=clear;

Example 8:  Clears all image displays

Image;cmd=clearall

Example 9:  Set user reference for an Image

Image;imageNo=2;reference=Pixels

Example 10 : Changing the Camera Simulation directory from Python

def SetProductType(type):
  SetIntValue('ProductType.Value',type) # set the producttype to type
  print ' SetProductType - ', type

  if GetBoolValue('System.CameraSimulation') == 1 : # in simulation mode the directory is set to the type
       ExecuteCmd('Image',r'path=images\'+str(type))  # r option disable \-translation by python

Example 11 : Changing Image Tab from the Toolbox

cameraNo = GetIntValue('Camera.No')
ExecuteCmd('Image','Show='+str(cameraNo))

Example 12 : Activate Image by Dbl-Click

if Shift & 0b1000000 == 0b1000000:
  ExecuteCmd('Image','Show='+Image)

 

 


Scorpion Vision Version XV  : Build 764 - Date: 20200529
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2020 Tordivel AS.