|
iCub-main
|
Public Member Functions | |
| __init__ (self, input_port_name, output_port_name) | |
| run (self) | |
| cleanup (self) | |
Protected Attributes | |
| _input_port = yarp.Port() | |
| _input_port_name = input_port_name | |
| _output_port = yarp.Port() | |
| _output_port_name = output_port_name | |
| _input_buf_image = yarp.ImageRgb() | |
| _input_buf_array = numpy.zeros((240, 320, 3), dtype = numpy.uint8) | |
| _output_buf_image = yarp.ImageFloat() | |
| _output_buf_array = numpy.zeros((240, 320), dtype = numpy.float32) | |
Object that reads an image from a port, transforms it and sends the result to another port.
The object reads RGB images and sends monochrome ones with calculated sobel filter.
Note: this class uses the alternative implementation of setExternal together with numpy array interface.
Definition at line 56 of file python_imaging.py.
| python_imaging.SobelFilter.__init__ | ( | self, | |
| input_port_name, | |||
| output_port_name ) |
Definition at line 63 of file python_imaging.py.
| python_imaging.SobelFilter.cleanup | ( | self | ) |
Definition at line 103 of file python_imaging.py.
| python_imaging.SobelFilter.run | ( | self | ) |
Definition at line 85 of file python_imaging.py.
|
protected |
Definition at line 77 of file python_imaging.py.
|
protected |
Definition at line 75 of file python_imaging.py.
|
protected |
Definition at line 65 of file python_imaging.py.
|
protected |
Definition at line 66 of file python_imaging.py.
|
protected |
Definition at line 82 of file python_imaging.py.
|
protected |
Definition at line 80 of file python_imaging.py.
|
protected |
Definition at line 69 of file python_imaging.py.
|
protected |
Definition at line 70 of file python_imaging.py.