<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_point_cloud(self):
 """Convert the image to a PointCloud object. Returns ------- :obj:`autolab_core.PointCloud` The corresponding PointCloud. """

        return PointCloud(
            data=self._data.reshape(
                self.height *
                self.width,
                3).T,
            frame=self._frame)