Flow Diagram Editor Tab

To design a new image processing algorithm, the user is provided with the Flow Editor Tab.

Tab Panels

The editor tab consists of three main panels: Panels Flow TabPanels Flow Tab

  1. Flow Scene (or Central) Panel is the panel, where the user can add the modules and test their performance.
  2. Parameter Panel is located right from the central panel. This panel will show the parameters of the selected module, when the button “Show details” is pressed. At the same time, the module results will be shown in the Central panel. To hide the parameters and the results, the user needs to press the button “Hide Details” in the Parameter Panel.
  3. Flow Scene Manipulation Panel is the lowest panel. It contains the buttons to save or clean the flow diagram that is now visible in the flow scene.

Actions in the Tab

  1. To add a module to the flow diagram, click with the right mouse button and select from the context menu, the module of interest. For example, the module Load Image is added to the scene. Load Image Flow TabLoad Image Flow Tab
  2. One instance of the module appears in the flow scene. Now the module can be dragged or deleted from the scene.
  3. To drag the module in the scene, keep the left mouse button pressed on the module and move the mouse, where it is desired.
  4. To remove the module from the scene, select it with the left mouse button and press Delete button on the keyboard.
  5. To read the information about the module used and actually use the module, select the module with the left mouse click, so the module is selected. Then, press the button Show details on the right panel. To return back to the scene, press the button Hide details. Load Image 2 Flow TabLoad Image 2 Flow Tab
  6. The modules have inputs and outputs. The user can connect outputs of the module to the inputs of other modules, if the inputs have the same type as the output. One output can be connected to many inputs. To connect the module to another module, press the left mouse button on the module’s output and then, keeping the left mouse button pressed, drag the connection line to the input of another module. If everything is done correctly, the connection line will appear. The connection line is the data flow from one module to another. In the example image, the module Load Image is connected to the module AutoThreshold, whose output is connected to the module Show Image. Connections Flow TabConnections Flow Tab
  7. The flow diagram can be saved for further editing. To do this, press the button Save Scene for Editing.
  8. To clear the scene, press the button Clear.
  9. To load a scene from the file, press the button Load Scene and select the correspondent flow file. The scene will be automatically cleared before the new scene is uploaded.

Integration of the flow diagram to the monitoring routine

When the flow diagram is ready and tested, the user can integrate it to the monitoring routine. The following actions must be performed:

  • From the drop down menu add special modules SceneIN and SceneOut to the scene. These modules have a blue color.
  • Connect the module SceneIN to the module Load Image, which gives an input image for processing. After the module SceneIN is connected, the input image will be provided by the monitoring routine.
  • Select the measurement type and set the pixel to mm ratio factor in the Parameter Panel of the SceneOUT module and connect the correspondent inputs for this module.

The module SceneOUT has the following inputs:

  • Template Image is the image that contains a template image for Template Matching.
  • ROI Image is the subimage that is most similar to the template in the input image
  • Overlaid result image is the output result that will be demonstrated by the monitoring visualization service
  • Rectangle of the ROI location is the location of the subimage in the input image

The last three inputs contain the measurements or angles (and correspondent axes), put into vectors:

  • Vector of measurements
  • Vector of angles
  • Vector of axes

These measurements will be sent as response of the monitoring service. To add a number into vector the module Num2Vec must be used.

Finally, the flow diagram must be saved for monitoring. To save the flow diagram for monitoring, enter the unique scene name (It must start with FLOW_!) and press the button Save Scene for Monitoring. The flow diagram will be saved in templatetester/resources/flows and the correspondence between the file name and the unique scene name will be written to the file templatetester/resources/flows/flows.json.