pyfusion package

Submodules

pyfusion.Brovery module

pyfusion.Brovery.Brovery(src, pan)[原始碼]

Using Brovery method to fusion image

The source image should not be upsampled

參數
  • srcsource image, the image should be BGR color space

  • pan – Panchromatic image, the image should be grayscale

傳回

fusion image

傳回型態

numpy.ndarray

pyfusion.HIS module

pyfusion.HIS.HIS(src, pan)[原始碼]

Using HIS method to fusion the image

The source image should not be upsampled

參數
  • srcsource image, the image should be BGR color space

  • pan – Panchromatic image, the image should be grayscale

傳回

fusion image

傳回型態

numpy.ndarray

pyfusion.PCA module

pyfusion.PCA.PCA(src, pan)[原始碼]

Using PCA method to fusion the image

The PCA function is fusion the src with pan based on PCA

參數
  • src – The source image, it should be multi-band the image read by cv2.imread will be the best practice

  • pan – The Pan image, it should be single band the image read by cv2.imread with flag set to cv2.IMREAD_GRAYSCALE will be the best practice

傳回

The result image

傳回型態

numpy.ndarray

Module contents

pyfusion.Brovery(src, pan)[原始碼]

Using Brovery method to fusion image

The source image should not be upsampled

參數
  • srcsource image, the image should be BGR color space

  • pan – Panchromatic image, the image should be grayscale

傳回

fusion image

傳回型態

numpy.ndarray

pyfusion.HIS(src, pan)[原始碼]

Using HIS method to fusion the image

The source image should not be upsampled

參數
  • srcsource image, the image should be BGR color space

  • pan – Panchromatic image, the image should be grayscale

傳回

fusion image

傳回型態

numpy.ndarray

pyfusion.PCA(src, pan)[原始碼]

Using PCA method to fusion the image

The PCA function is fusion the src with pan based on PCA

參數
  • src – The source image, it should be multi-band the image read by cv2.imread will be the best practice

  • pan – The Pan image, it should be single band the image read by cv2.imread with flag set to cv2.IMREAD_GRAYSCALE will be the best practice

傳回

The result image

傳回型態

numpy.ndarray