(self, dpt, fx, fy, importer=None, refineNet=None)
Constructor
        :param dpt: depth image
        :param fx: camera focal lenght
        :param fy: camera focal lenght
Constructor
        :param dpt: depth image
        :param fx: camera focal lenght
        :param fy: camera focal lenght
Constructor : param dpt : depth image : param fx : camera focal lenght : param fy : camera focal lenght
def __init__(self, dpt, fx, fy, importer=None, refineNet=None):
        """
        Constructor
        :param dpt: depth image
        :param fx: camera focal lenght
        :param fy: camera focal lenght
        """
        self.dpt = dpt
        self.maxDepth = min(1500, dpt.max())
        self.minDepth = max(10, dpt.min())
        # set values out of range to 0
        self.dpt[self.dpt > self.maxDepth] = 0.
        self.dpt[self.dpt < self.minDepth] = 0.
        # camera settings
        self.fx = fx
        self.fy = fy
        # Optional refinement of CoM
        self.refineNet = refineNet
        self.importer = importer
        # depth resize method
        self.resizeMethod = self.RESIZE_CV2_NN
def __init__ ( self , dpt , fx , fy , importer = None , refineNet = None ) : self . dpt = dpt self . maxDepth = min ( 1500 , dpt . max ( ) ) self . minDepth = max ( 10 , dpt . min ( ) ) # set values out of range to 0 self . dpt [ self . dpt > self . maxDepth ] = 0. self . dpt [ self . dpt < self . minDepth ] = 0. # camera settings self . fx = fx self . fy = fy # Optional refinement of CoM self . refineNet = refineNet self . importer = importer # depth resize method self . resizeMethod = self . RESIZE_CV2_NN