Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Evangelista committed Jul 28, 2017
0 parents commit 06cd3c8
Show file tree
Hide file tree
Showing 7 changed files with 2,769 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cToMatlab
outputImages
*~
*.jpg
30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

INCS =
LIBS =


DEFINCS = -I/usr/include -I/usr/include/opencv2
DEFLIBS = -L/usr/lib
LINKLIBS = -lopencv_core -lopencv_highgui -lopencv_imgproc

CPP = g++
CC = gcc
OBJ = main.o cvcalibinit3.o
LINKOBJ = main.o cvcalibinit3.o
BIN = FindCorners.exe
RM = rm -f


all: $(BIN)

clean:
${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -g -o $(BIN) $(LIBS) $(DEFLIBS) $(LINKLIBS)

main.o: main.cpp
$(CPP) -c -g main.cpp -o main.o $(INCS) $(DEFINCS)

cvcalibinit3.o: cvcalibinit3.cpp
$(CPP) -c -g cvcalibinit3.cpp -o cvcalibinit3.o $(INCS) $(DEFINCS)
28 changes: 28 additions & 0 deletions README_FOR_LINUX.TXT
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
How to use this code:

<1> make sure you have opencv library installed. If you have it, please go to step <2>; if not, follow the tips below:
- sudo apt-get install libopencv-dev
- All the header files will be installed in /usr/include/opencv by default
- All the libraries will be installed in /usr/lib by default
- go to step <3>
<2> if you have opencv already installed from source code, please modify the Makefile as:
- INCS= your correct opencv include path, e.g. /usr/local/include/opencv (which is the default path of opencv library)
- LIBS= your correct opencv lib path, e.g. /usr/local/lib
<3> make clean;
<4> make;
<5> copy the generated FindCorners.exe into the "autoCornerFinder" folder in your toolbox path, replacing the existing one.
<6> test it by the "Extract grid corners" button in the toolbox, after "Load images".

NOTE THAT THE CODE WORKS ONLY WITH JPEG IMAGES.
Note, if you want to display all the processing steps of the corner extraction, just change the flag VIS in cvcalibinit3.cpp to 1.
Please observe that the exetutable is called withing the "click_ima_calib_rufli.m". in the toolbox path.

If you use this code, please cite the following articles:

1. Scaramuzza, D., Martinelli, A. and Siegwart, R. (2006), A Toolbox for Easily Calibrating Omnidirectional Cameras, Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS 2006), Beijing, China, October 2006.

2. Scaramuzza, D., Martinelli, A. and Siegwart, R., (2006). "A Flexible Technique for Accurate Omnidirectional Camera Calibration and Structure from Motion", Proceedings of IEEE International Conference of Vision Systems (ICVS'06), New York, January 5-7, 2006.

3. Rufli, M., Scaramuzza, D., and Siegwart, R. (2008), Automatic Detection of Checkerboards on Blurred and Distorted Images, Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS 2008), Nice, France, September 2008.


Loading

0 comments on commit 06cd3c8

Please sign in to comment.