Public Member Functions | Public Attributes | List of all members
tools.image_processing.ResizeAndCrop Class Reference
Inheritance diagram for tools.image_processing.ResizeAndCrop:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, hypes, original_image_size)
 
def postprocess_image (self, image, output_image_uncropped, resulting_image_for_shape, filter_data=None)
 
def preprocess_image (self, image, image_uncropped=None)
 

Public Attributes

 crop_for_processing
 
 crop_x_from
 
 crop_x_to
 
 crop_y_from
 
 crop_y_to
 
 inter_image_size
 
 processing_image_size
 
 resize_image
 

Detailed Description

Resize And Crop to process and back

Definition at line 54 of file image_processing.py.

Constructor & Destructor Documentation

def tools.image_processing.ResizeAndCrop.__init__ (   self,
  hypes,
  original_image_size 
)
A function that provides the indices to start and stop cropping the picture at.
    Inputs: hypes file to get crop parameters,
    original_image_size
    Define: crop_y_from, crop_y_to, crop_x_from, crop_x_to, processing_image_size

Definition at line 57 of file image_processing.py.

Member Function Documentation

def tools.image_processing.ResizeAndCrop.postprocess_image (   self,
  image,
  output_image_uncropped,
  resulting_image_for_shape,
  filter_data = None 
)
A function that does all of the image preprocessing for KittiSeg
Inputs: image to process
output_image_uncropped empty image for postprocessing                
Outputs: way_prediction

Definition at line 140 of file image_processing.py.

def tools.image_processing.ResizeAndCrop.preprocess_image (   self,
  image,
  image_uncropped = None 
)
A function that does all of the image preprocessing
Inputs: image to process
image_uncropped empty image for postprocessing (allocated if is None)                
Outputs: preprocessed image, image_uncropped

Definition at line 112 of file image_processing.py.

Member Data Documentation

tools.image_processing.ResizeAndCrop.crop_for_processing

Definition at line 84 of file image_processing.py.

tools.image_processing.ResizeAndCrop.crop_x_from

Definition at line 87 of file image_processing.py.

tools.image_processing.ResizeAndCrop.crop_x_to

Definition at line 92 of file image_processing.py.

tools.image_processing.ResizeAndCrop.crop_y_from

Definition at line 97 of file image_processing.py.

tools.image_processing.ResizeAndCrop.crop_y_to

Definition at line 102 of file image_processing.py.

tools.image_processing.ResizeAndCrop.inter_image_size

Definition at line 81 of file image_processing.py.

tools.image_processing.ResizeAndCrop.processing_image_size

Definition at line 106 of file image_processing.py.

tools.image_processing.ResizeAndCrop.resize_image

Definition at line 75 of file image_processing.py.


The documentation for this class was generated from the following file:


cnn_bridge
Author(s): Noam C. Golombek , Alexander Beringolts
autogenerated on Mon Jun 10 2019 12:53:26