Source code for morse.middleware.pocolibs.overlays.stereopixel_overlay

import logging; logger = logging.getLogger("morse." + __name__)
from morse.core.services import service, async_service, interruptible
from morse.core.overlay import MorseOverlay
from morse.core import status
from morse.middleware.pocolibs_datastream import DummyPoster

[docs]class StereopixelModule(MorseOverlay): def __init__(self, overlaid_object): # Call the constructor of the parent class MorseOverlay.__init__(self, overlaid_object) self._cntrl = DummyPoster("stereopixelCntrl")
[docs] def Acquire_cb(self, answer): status, res = answer nb_pts = self.overlaid_object.local_data['nb_points'] return status, [nb_pts, 0, 0, nb_pts]
@service
[docs] def Init(self, *args): pass
@service
[docs] def GetCorrelationParams(self, *args): pass
@service
[docs] def SetCorrelationParams(self, *args): pass
@service
[docs] def GetBlobFilterParams(self, *args): pass
@service
[docs] def SetBlobFilterParams(self, *args): pass
@service
[docs] def GetFrameCoord(self, *args): pass
@service
[docs] def SetFrameCoord(self, *args): pass
@service
[docs] def SetSaveParams(self, *args): pass
@service
[docs] def GetSaveParams(self, *args): pass
@service
[docs] def SaveDisparity(self, *args): pass
@service
[docs] def CVDumpDisparity(self, *args): pass
@service
[docs] def Sav3DImage(self, *args): pass
@interruptible @async_service
[docs] def Compute(self): self.overlaid_object.capture(self.chain_callback(self.Acquire_cb), 1)
[docs] def name(self): return "stereopixel"