diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-sewar.spec | 282 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 284 insertions, 0 deletions
@@ -0,0 +1 @@ +/sewar-0.4.5.tar.gz diff --git a/python-sewar.spec b/python-sewar.spec new file mode 100644 index 0000000..fd6c2af --- /dev/null +++ b/python-sewar.spec @@ -0,0 +1,282 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sewar +Version: 0.4.5 +Release: 1 +Summary: All image quality metrics you need in one package. +License: MIT +URL: https://github.com/andrewekhalel/sewar +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/90/90/71ad919f857cb3c069fe0e7865987e57879799b6be840091e20a1b8d354c/sewar-0.4.5.tar.gz +BuildArch: noarch + + +%description +<a href="https://www.buymeacoffee.com/khalel" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a> + +# Sewar + +[](https://travis-ci.org/sachinpuranik99/sewar) +[](https://codecov.io/gh/sachinpuranik99/sewar) + +Sewar is a python package for image quality assessment using different metrics. You can check documentation [here](http://sewar.readthedocs.io/). + + +## Implemented metrics +- [x] Mean Squared Error (MSE) +- [x] Root Mean Sqaured Error (RMSE) +- [x] Peak Signal-to-Noise Ratio (PSNR) [[1]](https://ieeexplore.ieee.org/abstract/document/1284395/) +- [x] Structural Similarity Index (SSIM) [[1]](https://ieeexplore.ieee.org/abstract/document/1284395/) +- [x] Universal Quality Image Index (UQI) [[2]](https://ieeexplore.ieee.org/document/995823/) +- [x] Multi-scale Structural Similarity Index (MS-SSIM) [[3]](https://ieeexplore.ieee.org/abstract/document/1292216/) +- [x] Erreur Relative Globale Adimensionnelle de Synthèse (ERGAS) [[4]](https://hal.archives-ouvertes.fr/hal-00395027/) +- [x] Spatial Correlation Coefficient (SCC) [[5]](https://www.tandfonline.com/doi/abs/10.1080/014311698215973) +- [x] Relative Average Spectral Error (RASE) [[6]](https://ieeexplore.ieee.org/document/1304896/) +- [x] Spectral Angle Mapper (SAM) [[7]](https://ntrs.nasa.gov/search.jsp?R=19940012238) +- [x] Spectral Distortion Index (D_lambda) [[8]](https://www.ingentaconnect.com/content/asprs/pers/2008/00000074/00000002/art00003) +- [x] Spatial Distortion Index (D_S) [[8]](https://www.ingentaconnect.com/content/asprs/pers/2008/00000074/00000002/art00003) +- [x] Quality with No Reference (QNR) [[8]](https://www.ingentaconnect.com/content/asprs/pers/2008/00000074/00000002/art00003) +- [x] Visual Information Fidelity (VIF) [[9]](https://ieeexplore.ieee.org/abstract/document/1576816/) +- [x] Block Sensitive - Peak Signal-to-Noise Ratio (PSNR-B) [[10]](https://ieeexplore.ieee.org/abstract/document/5535179/) + +## Todo +- [ ] Add command-line support for No-reference metrics + +## Installation +Just as simple as +``` +pip install sewar +``` +## Example usage +a simple example to use UQI +```python +>>> from sewar.full_ref import uqi +>>> uqi(img1,img2) +0.9586952304831419 +``` + +## Example usage for command line interface +``` +sewar [metric] [GT path] [P path] (any extra parameters) +``` +An example to use SSIM +```shell +foo@bar:~$ sewar ssim images/ground_truth.tif images/deformed.tif -ws 13 +ssim : 0.8947009811410856 +``` +Available metrics list +``` +mse, rmse, psnr, rmse_sw, uqi, ssim, ergas, scc, rase, sam, msssim, vifp, psnrb +``` + +## Contributors +Special thanks to @sachinpuranik99 and @sunwj. + +## References +[1] "Image quality assessment: from error visibility to structural similarity." 2004)<br/> +[2] "A universal image quality index." (2002)<br/> +[3] "Multiscale structural similarity for image quality assessment." (2003)<br/> +[4] "Quality of high resolution synthesised images: Is there a simple criterion?." (2000)<br/> +[5] "A wavelet transform method to merge Landsat TM and SPOT panchromatic data." (1998)<br/> +[6] "Fusion of multispectral and panchromatic images using improved IHS and PCA mergers based on wavelet decomposition." (2004)<br/> +[7] "Discrimination among semi-arid landscape endmembers using the spectral angle mapper (SAM) algorithm." (1992)<br/> +[8] "Multispectral and panchromatic data fusion assessment without reference." (2008)<br/> +[9] "Image information and visual quality." (2006)<br/> +[10] "Quality Assessment of Deblocked Images" (2011)<br/> + +%package -n python3-sewar +Summary: All image quality metrics you need in one package. +Provides: python-sewar +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sewar +<a href="https://www.buymeacoffee.com/khalel" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a> + +# Sewar + +[](https://travis-ci.org/sachinpuranik99/sewar) +[](https://codecov.io/gh/sachinpuranik99/sewar) + +Sewar is a python package for image quality assessment using different metrics. You can check documentation [here](http://sewar.readthedocs.io/). + + +## Implemented metrics +- [x] Mean Squared Error (MSE) +- [x] Root Mean Sqaured Error (RMSE) +- [x] Peak Signal-to-Noise Ratio (PSNR) [[1]](https://ieeexplore.ieee.org/abstract/document/1284395/) +- [x] Structural Similarity Index (SSIM) [[1]](https://ieeexplore.ieee.org/abstract/document/1284395/) +- [x] Universal Quality Image Index (UQI) [[2]](https://ieeexplore.ieee.org/document/995823/) +- [x] Multi-scale Structural Similarity Index (MS-SSIM) [[3]](https://ieeexplore.ieee.org/abstract/document/1292216/) +- [x] Erreur Relative Globale Adimensionnelle de Synthèse (ERGAS) [[4]](https://hal.archives-ouvertes.fr/hal-00395027/) +- [x] Spatial Correlation Coefficient (SCC) [[5]](https://www.tandfonline.com/doi/abs/10.1080/014311698215973) +- [x] Relative Average Spectral Error (RASE) [[6]](https://ieeexplore.ieee.org/document/1304896/) +- [x] Spectral Angle Mapper (SAM) [[7]](https://ntrs.nasa.gov/search.jsp?R=19940012238) +- [x] Spectral Distortion Index (D_lambda) [[8]](https://www.ingentaconnect.com/content/asprs/pers/2008/00000074/00000002/art00003) +- [x] Spatial Distortion Index (D_S) [[8]](https://www.ingentaconnect.com/content/asprs/pers/2008/00000074/00000002/art00003) +- [x] Quality with No Reference (QNR) [[8]](https://www.ingentaconnect.com/content/asprs/pers/2008/00000074/00000002/art00003) +- [x] Visual Information Fidelity (VIF) [[9]](https://ieeexplore.ieee.org/abstract/document/1576816/) +- [x] Block Sensitive - Peak Signal-to-Noise Ratio (PSNR-B) [[10]](https://ieeexplore.ieee.org/abstract/document/5535179/) + +## Todo +- [ ] Add command-line support for No-reference metrics + +## Installation +Just as simple as +``` +pip install sewar +``` +## Example usage +a simple example to use UQI +```python +>>> from sewar.full_ref import uqi +>>> uqi(img1,img2) +0.9586952304831419 +``` + +## Example usage for command line interface +``` +sewar [metric] [GT path] [P path] (any extra parameters) +``` +An example to use SSIM +```shell +foo@bar:~$ sewar ssim images/ground_truth.tif images/deformed.tif -ws 13 +ssim : 0.8947009811410856 +``` +Available metrics list +``` +mse, rmse, psnr, rmse_sw, uqi, ssim, ergas, scc, rase, sam, msssim, vifp, psnrb +``` + +## Contributors +Special thanks to @sachinpuranik99 and @sunwj. + +## References +[1] "Image quality assessment: from error visibility to structural similarity." 2004)<br/> +[2] "A universal image quality index." (2002)<br/> +[3] "Multiscale structural similarity for image quality assessment." (2003)<br/> +[4] "Quality of high resolution synthesised images: Is there a simple criterion?." (2000)<br/> +[5] "A wavelet transform method to merge Landsat TM and SPOT panchromatic data." (1998)<br/> +[6] "Fusion of multispectral and panchromatic images using improved IHS and PCA mergers based on wavelet decomposition." (2004)<br/> +[7] "Discrimination among semi-arid landscape endmembers using the spectral angle mapper (SAM) algorithm." (1992)<br/> +[8] "Multispectral and panchromatic data fusion assessment without reference." (2008)<br/> +[9] "Image information and visual quality." (2006)<br/> +[10] "Quality Assessment of Deblocked Images" (2011)<br/> + +%package help +Summary: Development documents and examples for sewar +Provides: python3-sewar-doc +%description help +<a href="https://www.buymeacoffee.com/khalel" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a> + +# Sewar + +[](https://travis-ci.org/sachinpuranik99/sewar) +[](https://codecov.io/gh/sachinpuranik99/sewar) + +Sewar is a python package for image quality assessment using different metrics. You can check documentation [here](http://sewar.readthedocs.io/). + + +## Implemented metrics +- [x] Mean Squared Error (MSE) +- [x] Root Mean Sqaured Error (RMSE) +- [x] Peak Signal-to-Noise Ratio (PSNR) [[1]](https://ieeexplore.ieee.org/abstract/document/1284395/) +- [x] Structural Similarity Index (SSIM) [[1]](https://ieeexplore.ieee.org/abstract/document/1284395/) +- [x] Universal Quality Image Index (UQI) [[2]](https://ieeexplore.ieee.org/document/995823/) +- [x] Multi-scale Structural Similarity Index (MS-SSIM) [[3]](https://ieeexplore.ieee.org/abstract/document/1292216/) +- [x] Erreur Relative Globale Adimensionnelle de Synthèse (ERGAS) [[4]](https://hal.archives-ouvertes.fr/hal-00395027/) +- [x] Spatial Correlation Coefficient (SCC) [[5]](https://www.tandfonline.com/doi/abs/10.1080/014311698215973) +- [x] Relative Average Spectral Error (RASE) [[6]](https://ieeexplore.ieee.org/document/1304896/) +- [x] Spectral Angle Mapper (SAM) [[7]](https://ntrs.nasa.gov/search.jsp?R=19940012238) +- [x] Spectral Distortion Index (D_lambda) [[8]](https://www.ingentaconnect.com/content/asprs/pers/2008/00000074/00000002/art00003) +- [x] Spatial Distortion Index (D_S) [[8]](https://www.ingentaconnect.com/content/asprs/pers/2008/00000074/00000002/art00003) +- [x] Quality with No Reference (QNR) [[8]](https://www.ingentaconnect.com/content/asprs/pers/2008/00000074/00000002/art00003) +- [x] Visual Information Fidelity (VIF) [[9]](https://ieeexplore.ieee.org/abstract/document/1576816/) +- [x] Block Sensitive - Peak Signal-to-Noise Ratio (PSNR-B) [[10]](https://ieeexplore.ieee.org/abstract/document/5535179/) + +## Todo +- [ ] Add command-line support for No-reference metrics + +## Installation +Just as simple as +``` +pip install sewar +``` +## Example usage +a simple example to use UQI +```python +>>> from sewar.full_ref import uqi +>>> uqi(img1,img2) +0.9586952304831419 +``` + +## Example usage for command line interface +``` +sewar [metric] [GT path] [P path] (any extra parameters) +``` +An example to use SSIM +```shell +foo@bar:~$ sewar ssim images/ground_truth.tif images/deformed.tif -ws 13 +ssim : 0.8947009811410856 +``` +Available metrics list +``` +mse, rmse, psnr, rmse_sw, uqi, ssim, ergas, scc, rase, sam, msssim, vifp, psnrb +``` + +## Contributors +Special thanks to @sachinpuranik99 and @sunwj. + +## References +[1] "Image quality assessment: from error visibility to structural similarity." 2004)<br/> +[2] "A universal image quality index." (2002)<br/> +[3] "Multiscale structural similarity for image quality assessment." (2003)<br/> +[4] "Quality of high resolution synthesised images: Is there a simple criterion?." (2000)<br/> +[5] "A wavelet transform method to merge Landsat TM and SPOT panchromatic data." (1998)<br/> +[6] "Fusion of multispectral and panchromatic images using improved IHS and PCA mergers based on wavelet decomposition." (2004)<br/> +[7] "Discrimination among semi-arid landscape endmembers using the spectral angle mapper (SAM) algorithm." (1992)<br/> +[8] "Multispectral and panchromatic data fusion assessment without reference." (2008)<br/> +[9] "Image information and visual quality." (2006)<br/> +[10] "Quality Assessment of Deblocked Images" (2011)<br/> + +%prep +%autosetup -n sewar-0.4.5 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-sewar -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.5-1 +- Package Spec generated @@ -0,0 +1 @@ +985d039a7e2b0d99fd4846b69681106d sewar-0.4.5.tar.gz |
