Commit 66d5fc5b by murtaugh

houghlines to Makefile

parent 78faeb72
......@@ -18,11 +18,14 @@ texjson=$(trim:%.trim.jpg=%.tex.json)
lexsvg=$(trim:%.trim.jpg=%.lex.svg)
lexpng=$(trim:%.trim.jpg=%.lex.png)
lexjson=$(trim:%.trim.jpg=%.lex.json)
houghsvg=$(trim:%.trim.jpg=%.hough.svg)
houghpng=$(trim:%.trim.jpg=%.hough.png)
houghjson=$(trim:%.trim.jpg=%.hough.json)
snapshots=$(shell ls snapshots/*.pdf)
snapshotsjpg=$(snapshots:%.pdf=%.jpg)
alldata: $(contourssvg) $(contourspng) $(contoursjson) $(gradientsvg) $(gradientpng) $(gradientjson) $(red) $(redjson) $(green) $(greenjson) $(blue) $(bluejson) $(texsvg) $(texpng) $(texjson) $(lexsvg) $(lexpng) $(lexjson)
alldata: $(contourssvg) $(contourspng) $(contoursjson) $(gradientsvg) $(gradientpng) $(gradientjson) $(red) $(redjson) $(green) $(greenjson) $(blue) $(bluejson) $(texsvg) $(texpng) $(texjson) $(lexsvg) $(lexpng) $(lexjson) $(houghsvg) $(houghpng) $(houghjson)
snapshots: $(snapshotsjpg)
trim: $(trim)
......@@ -52,7 +55,7 @@ sample.csv: csv/mim.normalized.csv
sample.json: sample.csv scripts/csv2json.py
scripts/csv2json.py $< > $@
sample_with_data.json: sample.json $(contoursjson) $(gradientjson) $(redjson) $(greenjson) $(bluejson) $(texjson) $(lexjson)
sample_with_data.json: sample.json $(contoursjson) $(gradientjson) $(redjson) $(greenjson) $(bluejson) $(texjson) $(lexjson) $(houghjson)
scripts/joindata.py $^ > $@
# sample/exif.json:
......@@ -108,6 +111,17 @@ sample_with_data.json: sample.json $(contoursjson) $(gradientjson) $(redjson) $(
%.lex.png: %.lex.svg
inkscape --export-png=$@ $<
# hough
%.hough.svg: %.trim.jpg
bin/houghlines $< > $@
%.hough.json: %.hough.svg
scripts/svgcountpaths.py $< --json --id $*.jpg --key hough --img $*.hough.png --selector ".//{http://www.w3.org/2000/svg}line" > $@
%.tex.png: %.tex.svg
inkscape --export-png=$@ $<
%.jpg: %.pdf
convert $< $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment