Skip to content

Commit

Permalink
data: Added a triangulation error color lut
Browse files Browse the repository at this point in the history
It changes color in a logorithmic scale to make it easier to see the
difference in quality.
  • Loading branch information
Zack Moratto committed Mar 18, 2012
1 parent 1bdd4df commit 36d02a4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/CTX/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ map/map-DEM_CMAP.tif: map/map-DEM.tif
cd map; \
$(HILLSHADE) map-DEM.tif; \
$(COLORMAP) -s map-DEM_HILLSHADE.tif map-DEM.tif; \
$(COLORMAP) map-DEMError.tif
$(COLORMAP) map-DEMError.tif --lut ../../TriangulationError.lut

nonmap/nonmap-PC.tif: nonmapprojected
$(STEREO) P02_001981_1823_XI_02N356W.cal.cub P03_002258_1817_XI_01N356W.cal.cub nonmap/nonmap -s stereo.nonmap
Expand All @@ -61,7 +61,7 @@ nonmap/nonmap-DEM_CMAP.tif: nonmap/nonmap-DEM.tif
cd nonmap; \
$(HILLSHADE) nonmap-DEM.tif; \
$(COLORMAP) -s nonmap-DEM_HILLSHADE.tif nonmap-DEM.tif; \
$(COLORMAP) map-DEMError.tif
$(COLORMAP) map-DEMError.tif --lut ../../TriangulationError.lut

clean:
rm -rf nonmap map *.vwip
Expand Down
1 change: 1 addition & 0 deletions data/HiRISE/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ nonmap/nonmap-DEM_CMAP.tif: nonmap/nonmap-DEM.tif
cd nonmap; \
$(HILLSHADE) nonmap-DEM.tif; \
$(COLORMAP) -s nonmap-DEM_HILLSHADE.tif nonmap-DEM.tif
$(COLORMAP) nonmap-DEMError.tif --lut ../../TriangulationError.lut

clean:
rm -rf nonmap map *.vwip
Expand Down
4 changes: 2 additions & 2 deletions data/MOC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $(PREFIX)-DEM_CMAP.tif: $(PREFIX)-DEM.tif
cd $(RESULTSDIR); \
$(HILLSHADE) $(RESULTSDIR)-DEM.tif; \
$(COLORMAP) -s $(RESULTSDIR)-DEM_HILLSHADE.tif $(RESULTSDIR)-DEM.tif; \
$(COLORMAP) $(RESULTSDIR)-DEMError.tif
$(COLORMAP) $(RESULTSDIR)-DEMError.tif --lut ../../TriangulationError.lut

products_map: $(PREFIX)-F-H.tif $(PREFIX).ive $(PREFIX)-OrthoL.tif $(PREFIX)-OrthoR.tif E0201461.map/E0201461.kml M0100115.map/M0100115.kml $(PREFIX)-DEM_CMAP.tif

Expand All @@ -90,7 +90,7 @@ nonmap_point2dem: $(POINTCLOUDU)
$(POINT2DEM) -r mars --orthoimage $(RESULTSDIRU)-L.tif $(RESULTSDIRU)-PC.tif --error --nodata -32767 -n; \
$(HILLSHADE) $(RESULTSDIRU)-DEM.tif; \
$(COLORMAP) -s $(RESULTSDIRU)-DEM_HILLSHADE.tif $(RESULTSDIRU)-DEM.tif; \
$(COLORMAP) $(RESULTSDIRU)-DEMError.tif
$(COLORMAP) $(RESULTSDIRU)-DEMError.tif --lut ../../TriangulationError.lut

products_nonmap: $(PREFIXU).ive nonmap_point2dem

Expand Down
7 changes: 7 additions & 0 deletions data/TriangulationError.lut
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nv 0 0 0
0 255 255 255
0.1 0 0 255
1 0 255 0
10 255 255 127
100 255 0 0
1000 255 255 255

0 comments on commit 36d02a4

Please sign in to comment.