"git@developer.sourcefind.cn:ox696c/ktransformers.git" did not exist on "a3ba63665a4015e49de0fb884a4178567b64456b"
Commit 020efa74 authored by cclauss's avatar cclauss
Browse files

CogMap: Fix five undefined names

parent 0f2fc58d
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
""" """
import numpy as np import numpy as np
import src.rotation_utils as ru import src.rotation_utils as ru
import src.utils as utils
def get_camera_matrix(width, height, fov): def get_camera_matrix(width, height, fov):
"""Returns a camera matrix from image size and fov.""" """Returns a camera matrix from image size and fov."""
......
...@@ -34,7 +34,7 @@ def write_image(image_path, rgb): ...@@ -34,7 +34,7 @@ def write_image(image_path, rgb):
f.write(img_str) f.write(img_str)
def read_image(image_path, type='rgb'): def read_image(image_path, type='rgb'):
with fopen(file_name, 'r') as f: with fopen(image_path, 'r') as f:
I = PIL.Image.open(f) I = PIL.Image.open(f)
II = np.array(I) II = np.array(I)
if type == 'rgb': if type == 'rgb':
......
...@@ -20,6 +20,7 @@ import numpy as np ...@@ -20,6 +20,7 @@ import numpy as np
import networkx as nx import networkx as nx
import itertools import itertools
import logging import logging
from datasets.nav_env import get_path_ids
import graph_tool as gt import graph_tool as gt
import graph_tool.topology import graph_tool.topology
import graph_tool.generation import graph_tool.generation
......
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