|
|
@ -9,12 +9,18 @@ color_b:="\033[0;34m"
|
|
|
|
space:= $(empty) $(empty)
|
|
|
|
space:= $(empty) $(empty)
|
|
|
|
newline:= '\n'
|
|
|
|
newline:= '\n'
|
|
|
|
listtxt:= $(subst $(space),$(newline),$(images))
|
|
|
|
listtxt:= $(subst $(space),$(newline),$(images))
|
|
|
|
|
|
|
|
OS:= $(shell uname)
|
|
|
|
# subst is a way to do string replacements, it works like this: $(subst $(delimitator),$(replacement),$(list))
|
|
|
|
# subst is a way to do string replacements, it works like this: $(subst $(delimitator),$(replacement),$(list))
|
|
|
|
# it's used here to make a list of the images, with one filename on each line
|
|
|
|
# it's used here to make a list of the images, with one filename on each line
|
|
|
|
|
|
|
|
|
|
|
|
rmtmp:
|
|
|
|
rmtmp:
|
|
|
|
rm $(tmpfile)
|
|
|
|
rm $(tmpfile)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
testif:
|
|
|
|
|
|
|
|
ifeq ($(OS),Darwin)
|
|
|
|
|
|
|
|
@echo $(OS)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
dirs: # create the directories for the working structures
|
|
|
|
dirs: # create the directories for the working structures
|
|
|
|
mkdir images # scanned image dir
|
|
|
|
mkdir images # scanned image dir
|
|
|
|
mkdir output # outputs dir
|
|
|
|
mkdir output # outputs dir
|
|
|
@ -32,7 +38,14 @@ visualization: $(images) $(tmpfile) #requires mplayer
|
|
|
|
for i in $(images); do \
|
|
|
|
for i in $(images); do \
|
|
|
|
cat $$i >> $(tmpfile); \
|
|
|
|
cat $$i >> $(tmpfile); \
|
|
|
|
done;
|
|
|
|
done;
|
|
|
|
cat $(tmpfile) | mplayer -vo x11 -sws 4 -zoom -vf dsize=720:720 -demuxer rawvideo -rawvideo w=56:h=64:i420:fps=25 -;\
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(OS),Darwin)
|
|
|
|
|
|
|
|
cat $(tmpfile) | mplayer -sws 4 -zoom -vf dsize=720:720 -demuxer rawvideo -rawvideo w=56:h=64:i420:fps=25 -;
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
cat $(tmpfile) | mplayer -vo x11 -sws 4 -zoom -vf dsize=720:720 -demuxer rawvideo -rawvideo w=50:h=50:i420:fps=25 -;
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
# ifeq ($(shell uname), Linux)
|
|
|
|
|
|
|
|
# cat $(tmpfile) | mplayer -vo x11 -sws 4 -zoom -vf dsize=720:720 -demuxer rawvideo -rawvideo w=50:h=50:i420:fps=25 -;\
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ** Makefile Syntax notes **
|
|
|
|
# ** Makefile Syntax notes **
|
|
|
|