Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/import_colmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def depth_colormap(
"""
Colormaps and sets 0 (invalid) values to zero_color
"""
sm = cm.ScalarMappable(cmap=cm.get_cmap(cmap))
sm = cm.ScalarMappable(cmap=pl.get_cmap(cmap))
sm.set_array(d)
rgb = sm.to_rgba(d)[:, :, :3]
rgb[d == invalid_val] = invalid_color
Expand Down
2 changes: 1 addition & 1 deletion bin/plot_depthmaps
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def depth_colormap(d, cmap=None, invalid_val=0, invalid_color=(.5, .5, .5)):
"""
Colormaps and sets 0 (invalid) values to zero_color
"""
sm = cm.ScalarMappable(cmap=cm.get_cmap(cmap))
sm = cm.ScalarMappable(cmap=pl.get_cmap(cmap))
sm.set_array(d)
rgb = sm.to_rgba(d)[:, :, :3]
rgb[d == invalid_val] = invalid_color
Expand Down
3 changes: 1 addition & 2 deletions bin/plot_matches.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from itertools import combinations
from typing import Iterable, List

import matplotlib.cm as cm
import matplotlib.pyplot as pl
import numpy as np
from numpy import ndarray
Expand All @@ -31,7 +30,7 @@ def plot_matches(im1: ndarray, im2: ndarray, p1: ndarray, p2: ndarray) -> None:


def plot_graph(data: dataset.DataSet) -> None:
cmap = cm.get_cmap("viridis")
cmap = pl.get_cmap("viridis")
connectivity = {}
for im1 in images:
for im2, matches in data.load_matches(im1).items():
Expand Down