projects
/
IRC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changes: generated annotated code but it still causes type errors + re-formatting...
[IRC.git]
/
Robust
/
src
/
Benchmarks
/
SSJava
/
EyeTrackingInfer
/
LEAImplementation.java
diff --git
a/Robust/src/Benchmarks/SSJava/EyeTrackingInfer/LEAImplementation.java
b/Robust/src/Benchmarks/SSJava/EyeTrackingInfer/LEAImplementation.java
index 998cd69b43f9af9e811d41f2533c98a917ba01a9..b9dc7d39c9b3543a4e03fc2d2bfb2bedf8185aeb 100644
(file)
--- a/
Robust/src/Benchmarks/SSJava/EyeTrackingInfer/LEAImplementation.java
+++ b/
Robust/src/Benchmarks/SSJava/EyeTrackingInfer/LEAImplementation.java
@@
-23,34
+23,28
@@
* @author Florian Frankenberger
*/
* @author Florian Frankenberger
*/
-
public class LEAImplementation {
public class LEAImplementation {
-
private ClassifierTree classifierTree;
private ClassifierTree classifierTree;
-
private Rectangle2D lastRectangle;
public LEAImplementation() {
this.loadFaceData();
}
private Rectangle2D lastRectangle;
public LEAImplementation() {
this.loadFaceData();
}
-
-
- public FaceAndEyePosition getEyePosition( Image image) {
+ public FaceAndEyePosition getEyePosition(Image image) {
if (image == null)
return null;
if (image == null)
return null;
- Rectangle2D faceRect =
- classifierTree.locateFaceRadial(image, lastRectangle);
+ Rectangle2D faceRect = classifierTree.locateFaceRadial(image, lastRectangle);
if (faceRect.getWidth() > image.getWidth() || faceRect.getHeight() > image.getHeight()) {
return null;
}
if (faceRect.getWidth() > image.getWidth() || faceRect.getHeight() > image.getHeight()) {
return null;
}
-
EyePosition eyePosition = null;
+ EyePosition eyePosition = null;
if (faceRect != null) {
lastRectangle = faceRect;
faceRect = null;
if (faceRect != null) {
lastRectangle = faceRect;
faceRect = null;
-
Point point = readEyes(image, lastRectangle);
+ Point point = readEyes(image, lastRectangle);
if (point != null) {
eyePosition = new EyePosition(point, lastRectangle);
}
if (point != null) {
eyePosition = new EyePosition(point, lastRectangle);
}
@@
-62,10
+56,8
@@
public class LEAImplementation {
return new FaceAndEyePosition(lastRectangle, eyePosition);
}
return new FaceAndEyePosition(lastRectangle, eyePosition);
}
-
-
- private Point readEyes( Image image, Rectangle2D rect) {
- EyeDetector ed = new EyeDetector(image, rect);
+ private Point readEyes(Image image, Rectangle2D rect) {
+ EyeDetector ed = new EyeDetector(image, rect);
return ed.detectEye();
}
return ed.detectEye();
}
@@
-74,8
+66,8
@@
public class LEAImplementation {
}
/**
}
/**
- * This method loads the faceData from a file called facedata.dat which should
- *
be within the
jar-file
+ * This method loads the faceData from a file called facedata.dat which should
be within the
+ * jar-file
*/
private void loadFaceData() {
*/
private void loadFaceData() {