iCub-main
Loading...
Searching...
No Matches
python_imaging.SobelFilter Class Reference

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)

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

python_imaging.SobelFilter.__init__ ( self,
input_port_name,
output_port_name )

Definition at line 63 of file python_imaging.py.

Member Function Documentation

◆ cleanup()

python_imaging.SobelFilter.cleanup ( self)

Definition at line 103 of file python_imaging.py.

◆ run()

python_imaging.SobelFilter.run ( self)

Definition at line 85 of file python_imaging.py.

Member Data Documentation

◆ _input_buf_array

python_imaging.SobelFilter._input_buf_array = numpy.zeros((240, 320, 3), dtype = numpy.uint8)
protected

Definition at line 77 of file python_imaging.py.

◆ _input_buf_image

python_imaging.SobelFilter._input_buf_image = yarp.ImageRgb()
protected

Definition at line 75 of file python_imaging.py.

◆ _input_port

python_imaging.SobelFilter._input_port = yarp.Port()
protected

Definition at line 65 of file python_imaging.py.

◆ _input_port_name

python_imaging.SobelFilter._input_port_name = input_port_name
protected

Definition at line 66 of file python_imaging.py.

◆ _output_buf_array

python_imaging.SobelFilter._output_buf_array = numpy.zeros((240, 320), dtype = numpy.float32)
protected

Definition at line 82 of file python_imaging.py.

◆ _output_buf_image

python_imaging.SobelFilter._output_buf_image = yarp.ImageFloat()
protected

Definition at line 80 of file python_imaging.py.

◆ _output_port

python_imaging.SobelFilter._output_port = yarp.Port()
protected

Definition at line 69 of file python_imaging.py.

◆ _output_port_name

python_imaging.SobelFilter._output_port_name = output_port_name
protected

Definition at line 70 of file python_imaging.py.


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