-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
54 lines (44 loc) · 2.16 KB
/
Copy pathREADME
File metadata and controls
54 lines (44 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
James Gomez
CS 269 Final Project: A "Live-wire" Implementation in Java using JavaCV and OpenCV
Winter 2014
Professor Terzopoulos
/************************************************************************************
This implementation is based on the paper "Interactive live-wire boundary extraction"
by William A. Barrett and Eric N. Mortensen.
************************************************************************************/
PREFERRED PLATFORM/ENVIRONMENT
==================================
- Linux (Must have gui-based desktop environment)
- Windows
NOTE: Not tested in Mac OS X whatsoever
REQUIREMENTS
==================================
- A working 32-bit installation of OpenCV. Refer to
<http://docs.opencv.org/doc/tutorials/introduction/table_of_content_introduction/table_of_content_introduction.html>
for complete installation instructions.
- A working 32-bit installation of the java runtime environment,
version 7 (jre7) or later.
NOTE: Both OpenCV and Java MUST be 32-bit for this application to work.
Ensure environment variables point to 32-bit builds
(x86/vc10 for OpenCV)
INSTRUCTIONS FOR RUNNING PROGRAM
==================================
- Unzip the project
- Ensure the res/ folder and livewire.jar file are in the same directory
- In a terminal(or command prompt) cd to the project directory and
type "java -jar livewire_java.jar <path to image file>"
Images have been provided in the res/ folder for convenience.
IN-APP INSTRUCTIONS
==================================
- Left-click near an edge to generate a starting seed point.
- Drag the cursor around the image to adjust the boundary.
- To cool current boundary, left-click again near a desired edge.
- To clear current boundary, double-click RIGHT mouse button.
- To close off boundary, overlap free end with current boundary tail
and left-click. The app will detect boundary closure and stop
tracing. It will then display the extracted boundary and image
segment.
- Double-click the LEFT mouse button over the live-wire app window to
save the current segment to disk, or double-click the RIGHT mouse
button to clear the current boundary.
- Press any key at any time to exit the app.