def combine_with(self, depth_im):
        """
        Replaces all zeros in the source depth image with the value of a different depth image

        Parameters
        ----------
        depth_im : :obj:`DepthImage`
            depth image to combine with

        Returns
        -------
        :obj:`DepthImage`
            the combined depth image
        """
        new_data = self.data.copy()
        # replace zero pixels
        new_data[new_data == 0] = depth_im.data[new_data == 0]
        # take closest pixel
        new_data[(new_data > depth_im.data) & (depth_im.data > 0)] = depth_im.data[(
            new_data > depth_im.data) & (depth_im.data > 0)]
        return DepthImage(new_data, frame=self.frame)
def combine_with ( self , depth_im ) : new_data = self . data . copy ( ) new_data [ new_data == 0 ] = depth_im . data [ new_data == 0 ] new_data [ ( new_data > depth_im . data ) & ( depth_im . data > 0 ) ] = depth_im . data [ ( new_data > depth_im . data ) & ( depth_im . data > 0 ) ] return DepthImage ( new_data , frame = self . frame )
Replaces all zeros in the source depth image with the value of a different depth image

        Parameters
        ----------
        depth_im : :obj:`DepthImage`
            depth image to combine with

        Returns
        -------
        :obj:`DepthImage`
            the combined depth image