Johannes Hofmann пре 7 година
родитељ
комит
7edd47d03f
17 измењених фајлова са 85 додато и 39 уклоњено
  1. 2
    1
      .gitignore
  2. 0
    23
      Makefile
  3. 0
    15
      README
  4. 48
    0
      README.md
  5. 17
    0
      cli/Makefile
  6. 0
    0
      cli/main.cpp
  7. 18
    0
      gui_gtk/Makefile
  8. 0
    0
      gui_gtk/main.cpp
  9. 0
    0
      include/csv_reader.h
  10. 0
    0
      include/exif.h
  11. 0
    0
      include/haader.h
  12. 0
    0
      include/image.h
  13. 0
    0
      include/stb_image.h
  14. 0
    0
      src/csv_reader.cpp
  15. 0
    0
      src/exif.cpp
  16. 0
    0
      src/haader.cpp
  17. 0
    0
      src/image.cpp

+ 2
- 1
.gitignore Прегледај датотеку

@@ -1,4 +1,5 @@
1
-haader
1
+cli/haader
2
+gui_gtk/haader_gtk
2 3
 .*.swp
3 4
 *.o
4 5
 *.ppm

+ 0
- 23
Makefile Прегледај датотеку

@@ -1,23 +0,0 @@
1
-CXXFLAGS= -std=c++98 -pedantic -Wall -O3
2
-LIBS=
3
-OBJS= haader.o image.o exif.o csv_reader.o
4
-
5
-GUI_CFLAGS= $$(pkg-config gtk+-3.0 --cflags)
6
-GUI_LIBS= $$(pkg-config gtk+-3.0 --libs)
7
-
8
-haader: main.cpp $(OBJS)
9
-	$(CXX) main.cpp -o haader $(OBJS) $(CXXFLAGS) $(LIBS)
10
-
11
-haader_gui: haader_gui.cpp $(OBJS)
12
-	$(CXX) haader_gui.cpp -o haader_gui $(OBJS) $(CXXFLAGS) $(GUI_CFLAGS) $(LIBS) $(GUI_LIBS)
13
-
14
-run: haader
15
-	./haader
16
-
17
-%.o: %.c %.h
18
-	$(CXX) $< -c -o $@ $(CFLAGS)
19
-
20
-clean:
21
-	rm -f haader $(OBJS)
22
-
23
-.PHONY: run clean

+ 0
- 15
README Прегледај датотеку

@@ -1,15 +0,0 @@
1
-This a tool to construct HDR-images from a series of photographs
2
-with different exposures.
3
-
4
-It reads JPEG-files and parses the EXIF data to retrieve the
5
-exposure times.
6
-
7
-
8
-Build:
9
-  make
10
-
11
-Run:
12
-  ./haader <image1.jpg> <image2.jpg> <image3.jpg> ...
13
-
14
-
15
-(Johannes Hofmann, johofman@st.ovgu.de)

+ 48
- 0
README.md Прегледај датотеку

@@ -0,0 +1,48 @@
1
+haader
2
+======
3
+
4
+A tool to construct HDR-images from a series of photographs of the same scene
5
+with different exposures. It reads JPEG-files and parses the EXIF data to
6
+retrieve their exposure times. The sensor response function is estimated using a
7
+method which is similar to the one described by Debevec and Malik in 1997.
8
+
9
+([Paul E. Debevec and Jitendra Malik. "Recovering High Dynamic Range Radiance
10
+Maps from Photographs". In Proceedings of SIGGRAPH 97, Computer Graphics
11
+Proceedings, Annual Conference Series, pages 369–378,
12
+1997.](http://www.pauldebevec.com/Research/HDR/debevec-siggraph97.pdf))
13
+
14
+
15
+There are several interfaces available.
16
+
17
+## Command Line Interface
18
+
19
+To build the CLI, you will just need a C++ compiler as all dependencies are
20
+included:
21
+```sh
22
+# apt-get install build-essential
23
+```
24
+
25
+Build:
26
+```sh
27
+$ cd cli
28
+$ make
29
+```
30
+
31
+Run:
32
+```sh
33
+$ cd cli
34
+$ ./haader <image1.jpg> <image2.jpg> <image3.jpg> ...
35
+```
36
+
37
+## GTK Interface
38
+
39
+Needs GTK+3.0 and the corresponding development packages:
40
+```sh
41
+# apt-get install build-essential libgtk-3-0 libgtk-3-dev
42
+```
43
+
44
+Build and run:
45
+```sh
46
+$ cd gui_gtk
47
+$ make run
48
+```

+ 17
- 0
cli/Makefile Прегледај датотеку

@@ -0,0 +1,17 @@
1
+CXXFLAGS= -std=c++98 -pedantic -Wall -O3
2
+LIBS=
3
+OBJS= haader.o image.o exif.o csv_reader.o
4
+
5
+haader: main.cpp $(OBJS)
6
+	$(CXX) main.cpp -o haader -I../include $(OBJS) $(CXXFLAGS) $(LIBS)
7
+
8
+run: haader
9
+	./haader
10
+
11
+%.o: ../src/%.cpp ../include/%.h
12
+	$(CXX) $< -c -o $@ -I../include $(CFLAGS) $(CXXFLAGS)
13
+
14
+clean:
15
+	rm -f haader $(OBJS)
16
+
17
+.PHONY: run clean

main.cpp → cli/main.cpp Прегледај датотеку


+ 18
- 0
gui_gtk/Makefile Прегледај датотеку

@@ -0,0 +1,18 @@
1
+CFLAGS += $$(pkg-config gtk+-3.0 --cflags)
2
+CXXFLAGS= -std=c++98 -pedantic -Wall -O3
3
+LIBS= $$(pkg-config gtk+-3.0 --libs)
4
+OBJS= haader.o image.o exif.o csv_reader.o
5
+
6
+haader_gtk: main.cpp $(OBJS)
7
+	$(CXX) main.cpp -o haader_gtk -I../include $(OBJS) $(CXXFLAGS) $(CFLAGS) $(LIBS)
8
+
9
+run: haader_gtk
10
+	./haader_gtk
11
+
12
+%.o: ../src/%.cpp ../include/%.h
13
+	$(CXX) $< -c -o $@ -I../include $(CFLAGS) $(CXXFLAGS)
14
+
15
+clean:
16
+	rm -f haader_gtk $(OBJS)
17
+
18
+.PHONY: run clean

haader_gui.cpp → gui_gtk/main.cpp Прегледај датотеку


csv_reader.h → include/csv_reader.h Прегледај датотеку


exif.h → include/exif.h Прегледај датотеку


haader.h → include/haader.h Прегледај датотеку


image.h → include/image.h Прегледај датотеку


stb_image.h → include/stb_image.h Прегледај датотеку


csv_reader.cpp → src/csv_reader.cpp Прегледај датотеку


exif.cpp → src/exif.cpp Прегледај датотеку


haader.cpp → src/haader.cpp Прегледај датотеку


image.cpp → src/image.cpp Прегледај датотеку