def crop(self, height, width, center_i=None, center_j=None):
        """Crop the image centered around center_i, center_j.

        Parameters
        ----------
        height : int
            The height of the desired image.

        width : int
            The width of the desired image.

        center_i : int
            The center height point at which to crop. If not specified, the center
            of the image is used.

        center_j : int
            The center width point at which to crop. If not specified, the center
            of the image is used.

        Returns
        -------
        :obj:`Image`
            A cropped Image of the same type.
        """
        # crop channels separately
        color_im_cropped = self.color.crop(height, width,
                                           center_i=center_i,
                                           center_j=center_j)
        depth_im_cropped = self.depth.crop(height, width,
                                           center_i=center_i,
                                           center_j=center_j)

        # return combination of cropped data
        return RgbdImage.from_color_and_depth(
            color_im_cropped, depth_im_cropped)
def crop ( self , height , width , center_i = None , center_j = None ) : color_im_cropped = self . color . crop ( height , width , center_i = center_i , center_j = center_j ) depth_im_cropped = self . depth . crop ( height , width , center_i = center_i , center_j = center_j ) return RgbdImage . from_color_and_depth ( color_im_cropped , depth_im_cropped )
Crop the image centered around center_i, center_j.

        Parameters
        ----------
        height : int
            The height of the desired image.

        width : int
            The width of the desired image.

        center_i : int
            The center height point at which to crop. If not specified, the center
            of the image is used.

        center_j : int
            The center width point at which to crop. If not specified, the center
            of the image is used.

        Returns
        -------
        :obj:`Image`
            A cropped Image of the same type.