code: def resize(self, size, interp='nearest'):
          
          resized_data_0 = sm.imresize(self._data[:,:,0], size, interp=interp, mode='F')
          resized_data_1 = sm.imresize(self._data[:,:,1], size, interp=interp, mode='F')
          resized_data_2 = sm.imresize(self._data[:,:,2], size, interp=interp, mode='F')
          resized_data = np.zeros([resized_data_0.shape[0],
                                   resized_data_0.shape[1],
                                   self.channels])
          resized_data[:,:,0] = resized_data_0
          resized_data[:,:,1] = resized_data_1
          resized_data[:,:,2] = resized_data_2
          return PointCloudImage(resized_data, self._frame)
docs: Resize the image.
  
          Parameters
          ----------
          size : int, float, or tuple
              * int   - Percentage of current size.
              * float - Fraction of current size.
              * tuple - Size of the output image.
  
          interp : :obj:`str`, optional
              Interpolation to use for re-sizing ('nearest', 'lanczos', 'bilinear',
              'bicubic', or 'cubic')
  
          Returns
          -------
          :obj:`PointCloudImage`
              The resized image.