|
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) |
|
Resize And Crop to process and back
Definition at line 54 of file image_processing.py.
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.
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.
tools.image_processing.ResizeAndCrop.crop_for_processing |
tools.image_processing.ResizeAndCrop.crop_x_from |
tools.image_processing.ResizeAndCrop.crop_x_to |
tools.image_processing.ResizeAndCrop.crop_y_from |
tools.image_processing.ResizeAndCrop.crop_y_to |
tools.image_processing.ResizeAndCrop.inter_image_size |
tools.image_processing.ResizeAndCrop.processing_image_size |
tools.image_processing.ResizeAndCrop.resize_image |
The documentation for this class was generated from the following file: