|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<?import javafx.geometry.*?> |
| 4 | +<?import javafx.scene.control.*?> |
| 5 | +<?import javafx.scene.layout.*?> |
| 6 | +<?import javafx.scene.image.*?> |
| 7 | +<?import javafx.scene.text.*?> |
| 8 | + |
| 9 | +<BorderPane xmlns:fx="http://javafx.com/fxml" fx:controller="it.polito.teaching.cv.ObjRecognitionController"> |
| 10 | + <right> |
| 11 | + <VBox alignment="CENTER" spacing="10"> |
| 12 | + <padding> |
| 13 | + <Insets right="10" left="10" /> |
| 14 | + </padding> |
| 15 | + <Label text="Hue Start" /> |
| 16 | + <Slider fx:id="hueStart" min="0" max="180" value="20" blockIncrement="1" /> |
| 17 | + <Label text="Hue Stop" /> |
| 18 | + <Slider fx:id="hueStop" min="0" max="180" value="50" blockIncrement="1" /> |
| 19 | + <Label text="Saturation Start" /> |
| 20 | + <Slider fx:id="saturationStart" min="0" max="255" value="60" blockIncrement="1" /> |
| 21 | + <Label text="Saturation Stop" /> |
| 22 | + <Slider fx:id="saturationStop" min="0" max="255" value="200" blockIncrement="1" /> |
| 23 | + <Label text="Value Start" /> |
| 24 | + <Slider fx:id="valueStart" min="0" max="255" value="50" blockIncrement="1" /> |
| 25 | + <Label text="Value Stop" /> |
| 26 | + <Slider fx:id="valueStop" min="0" max="255" value="255" blockIncrement="1" /> |
| 27 | + </VBox> |
| 28 | + </right> |
| 29 | + <center> |
| 30 | + <HBox alignment="CENTER" spacing="5"> |
| 31 | + <padding> |
| 32 | + <Insets right="10" left="10" /> |
| 33 | + </padding> |
| 34 | + <ImageView fx:id="originalFrame" /> |
| 35 | + <VBox alignment="CENTER" spacing="5"> |
| 36 | + <ImageView fx:id="maskImage" /> |
| 37 | + <ImageView fx:id="morphImage" /> |
| 38 | + </VBox> |
| 39 | + </HBox> |
| 40 | + </center> |
| 41 | + <bottom> |
| 42 | + <VBox alignment="CENTER" spacing="15"> |
| 43 | + <padding> |
| 44 | + <Insets top="25" right="25" bottom="25" left="25" /> |
| 45 | + </padding> |
| 46 | + <Button fx:id="cameraButton" alignment="center" text="Start camera" onAction="#startCamera" /> |
| 47 | + <Separator /> |
| 48 | + <Label fx:id="hsvCurrentValues" /> |
| 49 | + </VBox> |
| 50 | + </bottom> |
| 51 | +</BorderPane> |
0 commit comments