Functions | Variables
crop_map Namespace Reference

Functions

def computed_cropped_origin
def find_bounds

Variables

tuple bounds = find_bounds(map_image)
string crop_image = ".pgm"
list crop_name = sys.argv[2]
string crop_yaml = ".yaml"
tuple cropped_image = map_image.crop((bounds[0], bounds[2], bounds[1] + 1, bounds[3] + 1))
tuple map_data = yaml.safe_load(f)
tuple map_image = Image.open(map_image_file)
list map_image_file = map_data["image"]
list origin = map_data["origin"]
list resolution = map_data["resolution"]

Function Documentation

def crop_map.computed_cropped_origin (   map_image,
  bounds,
  resolution,
  origin 
)
Compute the image for the cropped map when map_image is cropped by bounds and had origin before. 

Definition at line 24 of file crop_map.py.

def crop_map.find_bounds (   map_image)

Definition at line 8 of file crop_map.py.


Variable Documentation

Definition at line 66 of file crop_map.py.

string crop_map::crop_image = ".pgm"

Definition at line 55 of file crop_map.py.

list crop_map::crop_name = sys.argv[2]

Definition at line 51 of file crop_map.py.

string crop_map::crop_yaml = ".yaml"

Definition at line 54 of file crop_map.py.

tuple crop_map::cropped_image = map_image.crop((bounds[0], bounds[2], bounds[1] + 1, bounds[3] + 1))

Definition at line 69 of file crop_map.py.

tuple crop_map::map_data = yaml.safe_load(f)

Definition at line 48 of file crop_map.py.

tuple crop_map::map_image = Image.open(map_image_file)

Definition at line 64 of file crop_map.py.

Definition at line 60 of file crop_map.py.

list crop_map::origin = map_data["origin"]

Definition at line 62 of file crop_map.py.

list crop_map::resolution = map_data["resolution"]

Definition at line 61 of file crop_map.py.



map_server
Author(s): Brian Gerkey, Tony Pratkanis, contradict@gmail.com
autogenerated on Thu Aug 27 2015 14:06:52