Fixed up code, made it prettier, it now follows the stylguide better and is more readable.


git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4182 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/971cv/src/org/spartanrobotics/Recognizer.java b/971cv/src/org/spartanrobotics/Recognizer.java
new file mode 100644
index 0000000..f1f3234
--- /dev/null
+++ b/971cv/src/org/spartanrobotics/Recognizer.java
@@ -0,0 +1,33 @@
+package org.spartanrobotics;

+

+import edu.wpi.first.wpijavacv.WPIColorImage;

+

+/**

+ * Vision target recognizer.

+ *

+ * @author jerry

+ */

+public interface Recognizer {

+

+    /**

+     * Sets the HSV filter to allow H in [minHue .. maxHue], S >= minSat,

+     * V >= minVal.

+     */

+    void setHSVRange(int minHue, int maxHue, int minSat, int minVal);

+

+    int getHueMin();

+    int getHueMax();

+    int getSatMin();

+    int getValMin();

+

+    /** Enables/disables windows to view intermediate stages, for tuning. */

+    void showIntermediateStages(boolean enable);

+

+    /**

+     * Processes a camera image, returning an image to display for targeting

+     * and debugging, e.g. with cross-hairs and marked targets.

+     *<p>

+     * SIDE EFFECTS: May modify cameraImage.

+     */

+    Target processImage(WPIColorImage cameraImage);

+}