Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A comparison of many lossless image compression formats.

License

NotificationsYou must be signed in to change notification settings

WangXuan95/Image-Compression-Benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A comparison of 20+ lossless image compression formats on several datasets.

  • Compress Formats:
    • PNG, JPEG-LS, JPEG-XL, WEBP, etc. SeeFormat List for details.
    • All formats are instrictly lossless compression mode.
  • Comparison Metrics:
    • Compressed Size (the smaller the better)
    • Compress Time (the smaller the better)
    • Decompress Time (the smaller the better)
  • Benchmark datasets:
    • CLIC2021: RGB 24-bit, 585 images, 4.1 GB
    • LPCB: RGB 24-bit, 107 images, 3.5 GB
    • GDCC2020: RGB 24-bit, 100 images, 1.0 GB
    • UCID: RGB 24-bit, 1338 images, 789 MB
    • ImgInfoRGB: RGB 24-bit, 14 images, 470 MB
    • ImgInfoGray: Gray 8-bit, 15 images, 163 MB
    • Kodak: RGB 24-bit, 24 images, 28 MB
    • All benchmark images are in.pnm format (a simple image format which stores raw pixels), seePNM file spec for detail.
  • Environment:
    • Intel Core i7 12700H, 16GB DDR4 in 3200MHz, Windows 10 system.
    • All codecs run in single threaded, but SIMD (AVX2,AVX,SSE4,SSSE3,SSE3,SSE2,SSE) is permitted. This rule is as same as theGDCC competition.
  • Benchmark Steps:
    • Step1: compress all.pnm images one-by-one in a specified folder. The compressed files will be stored in another folder. Measure the total compress time and the total compressed size.
    • Step2: decompress them back to.pnm one-by-one. Measure the total decompress time.
    • The above steps are done by a Python script, SeeHow to run benchmark .
    • For datasets that have small images (UCID, Kodak, etc.), program startup time accounts for a significant portion of compression/decompression time. On the contrary, time consumption on large images can better reflect the true performance of the codecs.

 

 

CLIC2021 (RGB, 585 images, 4.1 GB)

Compressed formatCompressed size (bytes)Compression TimeDecompression Time
EMMA12257736463516.3543628.995
BMF (-s)12370711083101.1022705.834
Gralic1251405148969.4231109.887
LEA1289467320419.658481.112
NBLI (-ga)13112653202695.9272536.709
NBLI (-g)1326544840277.564240.414
JPEG-XL (-q 100 -e 8)13289367776936.972278.855
FLIC1332363598128.098150.450
JPEG-XL (-q 100 -e 7)13371192922684.973249.359
fNBLI133758702043.16427.450
JPEG-XL (-q 100 -e 6)13597676821728.935214.077
JPEG-XL (-q 100 -e 5)13730959371099.045192.344
JPEG-XL (-q 100 -e 4)1385013285567.416165.030
BMF1389521424201.699158.537
JPEG-XL (-q 100 -e 3)1399673135213.004146.406
QLIC2146110191929.89930.152
BIM1472723769187.279211.560
HALIC147348180322.18728.447
WEBP (lossless m5)14759087001112.13449.442
WEBP (lossless m1)1496478650720.16037.044
PGLZ152379071139.91239.076
agiannis_image1534353841103.57356.959
HALICfast153772551219.11223.784
JPEG-XL (-q 100 -e 2)1547272952116.89464.679
JPEG-XL (-q 100 -e 1)164824216442.99357.650
QIC169904672919.94220.639
ZPNG (-19)17031976871529.03720.486
ZPNG175578637825.90924.083
PNG (optipng -o5)189927357827680.42425.799
PNG (optipng -o2)19052157344395.06926.625
JPEG-LS193158459572.23766.567
PNG (optimize=True)19357135401120.21328.635
JPEG20001992860964319.912275.398
PNG (optimize=False)2003016524334.79133.677
QOIR213935053323.69619.752
QOI228021758619.06118.970
(uncompressed)4091841959
KVICK-(1)-

(1) KVICK failed to compress 006.pnm

CLIC2021
Figure: result on CLIC2021. The bottom left corner is optimal.

 

LPCB (RGB, 107 images, 3.5 GB)

Note: My LPCB isslightly different from theLPCB by Alex Rhatushnyak. This is because the astronomical photo website mentioned by Alex has changed, and the images I found are not exactly the same as the ones Alex downloaded.

Compressed formatCompressed size (bytes)Compression TimeDecompression Time
EMMA10368180252691.0332770.494
Gralic1048182107775.997956.626
BMF (-s)10662465681437.7591195.213
LEA1100914622334.653381.128
FLIC111521303899.498121.001
JPEG-XL (-q 100 -e 8)11586226947057.548217.006
JPEG-XL (-q 100 -e 7)11682924544230.815214.368
NBLI (-ga)11918312642182.4712127.896
JPEG-XL (-q 100 -e 6)11940893872109.277192.291
NBLI (-g)1204941968223.196203.809
JPEG-XL (-q 100 -e 5)12054662351133.894163.855
fNBLI120632834231.18619.763
BMF1213482896158.939127.096
BIM1213999031132.307146.417
QLIC2123002949517.20417.549
JPEG-XL (-q 100 -e 4)1245721128504.058134.691
JPEG-XL (-q 100 -e 3)1253349539182.373121.771
HALIC127669647611.92416.741
WEBP (lossless m5)1300680056791.14729.433
PGLZ130194414827.12626.281
WEBP (lossless m1)1303211906592.65129.480
JPEG-LS132763737664.65755.492
QIC135472791512.53713.886
JPEG-XL (-q 100 -e 2)136142512598.40250.620
agiannis_image136202230881.50141.724
JPEG20001365795431226.687190.900
HALICfast13745308318.46512.056
JPEG-XL (-q 100 -e 1)144854494733.21245.526
PNG (optimize=True)14900761681101.14028.085
PNG (optimize=False)1510328261432.27231.353
ZPNG (-19)15915463961662.84714.159
ZPNG162945320314.17513.586
QOIR195836421312.99311.817
QOI212644359813.07010.921
(uncompressed)3465001880
KVICK-(1)-

(1) KVICK failed to compress PIA12811.pnm

 

GDCC2020 (RGB, 100 images, 1.0 GB)

Compressed formatCompressed size (bytes)Compression TimeDecompression Time
EMMA379524924863.2051020.836
BMF (-s)386757828663.119562.053
Gralic388573995255.479314.850
LEA39373423499.750113.185
FLIC40882977431.03637.816
JPEG-XL (-q 100 -e 8)4158538621693.58154.970
JPEG-XL (-q 100 -e 7)420333004843.82157.939
NBLI (-g)42362847067.49061.712
BMF42478411651.28740.035
fNBLI42640472410.4246.445
JPEG-XL (-q 100 -e 6)428397642544.11553.412
BIM42911663646.12451.381
KVICK4310722698.6636.568
HALIC4319692734.7805.426
JPEG-XL (-q 100 -e 5)435250607320.97747.615
QLIC24371960236.2286.076
WEBP (lossless m5)439471254209.9278.951
WEBP (lossless m1)440863674155.2978.827
PGLZ4438585089.0788.980
JPEG-XL (-q 100 -e 4)447106848141.13138.298
JPEG-XL (-q 100 -e 3)45263015356.51536.675
agiannis_image45962705925.91312.938
HALIC fast4717629273.6124.336
JPEG-XL (-q 100 -e 2)47512222431.76516.411
JPEG-LS47513077019.95917.375
JPEG200048089883375.90964.687
QIC4852959484.7404.827
JPEG-XL (-q 100 -e 1)50248805210.90014.519
PNG (optipng -o2)504232363888.7826.737
PNG (optimize=True)507730837393.5389.439
ZPNG (-19)520866305481.7225.243
PNG (optimize=False)521104646152.32111.545
ZPNG5221054965.4155.415
QOIR6368067625.2744.323
QOI7114484404.7824.174
(uncompressed)1000452004

 

UCID (RGB, 1338 images, 789 MB)

Compressed formatCompressed size (bytes)Compression TimeDecompression Time
BMF (-s)358264156834.324670.095
EMMA363146061920.573928.970
Gralic369197501265.551317.041
NBLI (-ga)380732288527.418511.814
LEA381210845107.675122.336
NBLI (-g)38503295080.61972.041
JPEG-XL (-q 100 -e 8)387729500924.79678.085
JPEG-XL (-q 100 -e 7)388847068437.73069.819
fNBLI38897244431.77829.935
FLIC38954284549.40154.689
JPEG-XL (-q 100 -e 6)389697195346.06468.097
JPEG-XL (-q 100 -e 5)390945098276.06365.543
BMF39423775672.20956.953
JPEG-XL (-q 100 -e 4)394648213167.98466.721
JPEG-XL (-q 100 -e 3)39791415676.66252.454
WEBP (lossless m5)406249060276.43015.349
HALIC41817796726.29627.210
WEBP (lossless m1)41821590074.71215.007
JPEG-XL (-q 100 -e 2)41977864656.51134.241
HALIC fast42787431325.80326.755
agiannis_image42996578527.44523.010
BIM43041357878.64086.367
QIC43328935822.76722.671
JPEG-LS44031949817.45225.369
JPEG-XL (-q 100 -e 1)44189856032.98235.540
PGLZ45561264820.63222.145
JPEG200045770596571.37679.671
ZPNG46568819426.16525.219
ZPNG (-19)471879020199.13821.903
PNG (optipng -o2)472478228434.6907.317
PNG (optimize=True)474760958103.00217.805
PNG (optimize=False)47889172263.32215.219
QOIR55013605330.13026.880
QOI60736456721.45821.089
(uncompressed)789204582
QLIC2-(1)-
KVICK-(2)-

(1) QLIC2 failed to compress 534.pnm(2) KVICK failed to compress 1.pnm

 

ImgInfoRGB (RGB, 14 images, 470 MB)

Compressed formatCompressed size (bytes)Compression TimeDecompression Time
EMMA172116925703.414738.327
Gralic175677261153.530182.790
BMF (-s)176768000275.041251.288
LEA17861870249.70657.624
FLIC18532141113.27016.422
JPEG-XL (-q 100 -e 8)1869604541488.07027.771
JPEG-XL (-q 100 -e 7)189299631769.87527.986
NBLI (-ga)190777948324.221369.493
JPEG-XL (-q 100 -e 6)191731771452.41425.350
NBLI (-g)19182329230.89727.857
BIM19250255520.24622.427
fNBLI1927485644.2412.553
JPEG-XL (-q 100 -e 5)192905157195.55423.411
BMF19350812420.37517.591
QLIC21973238792.2162.253
JPEG-XL (-q 100 -e 4)20041266776.05717.968
JPEG-XL (-q 100 -e 3)20174865024.39017.011
KVICK2019566713.6132.604
HALIC2023162771.6002.265
PGLZ2074142323.5753.946
WEBP (lossless m1)20843685467.4163.965
WEBP (lossless m5)208701058113.5814.246
JPEG-LS2102073149.2517.774
agiannis_image21220499112.7626.055
HALIC fast2124495591.0981.597
JPEG-XL (-q 100 -e 2)21558439713.2116.823
JPEG200021575589534.65628.867
QIC2172453581.6301.719
JPEG-XL (-q 100 -e 1)2256364474.3585.822
PNG (optipng -o2)227065671503.2174.723
PNG (optimize=True)229775662173.8744.836
PNG (optimize=False)23249025756.0134.179
ZPNG (-19)243165956361.2501.887
ZPNG2444744681.8081.984
QOIR2942746391.8751.630
QOI3344525171.7571.544
(uncompressed)470611702

 

ImgInfoGray (Gray, 15 images, 163 MB)

Compressed formatCompressed size (bytes)Compression TimeDecompression Time
BMF (-s)6040342061.97954.852
NBLI (-ga)61430246113.28996.770
JPEG-XL (-q 100 -e 8)64319725255.15110.765
JPEG-XL (-q 100 -e 7)64989286152.18010.941
NBLI (-g)660424129.8858.971
JPEG-XL (-q 100 -e 6)6619713195.3739.791
CALIC6626808130.14829.928
fNBLI669697841.6631.096
JPEG-XL (-q 100 -e 5)6721634161.6138.278
JPEG-LS_extension6741783821.89820.274
BMF680714285.6675.726
JPEG-XL (-q 100 -e 3)681325909.3625.913
JPEG-XL (-q 100 -e 4)6824434821.8776.283
WEBP (lossless m5)6912689279.8902.523
JPEG-LS698122302.8262.559
WEBP (lossless m1)7012525068.6502.558
JPEG20007054044510.6378.933
HALIC726530190.7830.822
JPEG-XL (-q 100 -e 2)738455155.5592.560
PNG (optipng -o2)75293445155.1681.364
PNG (optimize=True)7691353051.9721.411
PNG (optimize=False)7789826015.6601.497
JPEG-XL (-q 100 -e 1)791146692.8852.698
ZPNG (-19)7912110564.0630.872
ZPNG843147031.0200.894
(uncompressed)162870743
HALIC fast--(1)
MRP-(2)-

(1) HALIC fast failed to decompress zone_plate.pnm(2) To be tested, extremely slow

ImgInfoGray
Figure: result on ImgInfoGray. The bottom left corner is optimal.

 

Kodak (RGB, 24 images, 28 MB)

Compressed formatCompressed size (bytes)Compression TimeDecompression Time
EMMA921420129.77432.548
BMF (-s)959572825.60121.643
LEA97896103.5604.030
Gralic99180078.0519.635
JPEG-XL (-q 100 -e 7)1026958416.4112.523
JPEG-XL (-q 100 -e 8)1029336841.4132.869
JPEG-XL (-q 100 -e 6)1041301011.4592.567
NBLI (-ga)1052250620.14917.895
NBLI (-g)106815462.3612.233
JPEG-XL (-q 100 -e 5)108207508.3162.174
fNBLI108220820.6670.592
FLIC109435821.1991.371
BMF109857523.1611.987
JPEG-XL (-q 100 -e 4)110433585.0251.986
JPEG-XL (-q 100 -e 3)111348172.1771.578
WEBP (lossless m5)1128661435.2440.565
WEBP (lossless m1)115489045.6250.561
QLIC2117256630.5800.544
HALIC119137260.5710.615
KVICK121229240.6850.599
JPEG-XL (-q 100 -e 2)121627951.4690.908
HALIC fast121809260.5430.585
agiannis_image121835820.9590.631
BIM123418362.4342.904
PGLZ124743620.6210.510
JPEG-XL (-q 100 -e 1)128817880.8760.997
ZPNG (-19)132599438.6110.699
ZPNG135297870.9710.809
QIC137425360.5040.523
QOIR151338210.7920.640
JPEG-LS154217020.8130.817
PNG (optipng -o2)1549704319.6930.242
PNG (optimize=True)158095786.5870.365
JPEG2000158696363.3072.994
PNG (optimize=False)159415754.0300.484
QOI165013280.6680.638
(uncompressed)28311912

 

 

 

Format List

There are 3 types of codecs (coder/decoder):

  • Most of them are Windows executable files (.EXE). I put them in thecodec folder.
  • Some of them are Linux binary files which runs under Windows Subsystem of Linux (WSL). I put them in thecodec folder.
  • Some of them arePillow 10.1.0 library , e.g., for PNG:
    • To compress, run this in Python:Image.open(r"in.pnm").save(r"comp.png")
    • To decompress, run this in Python:Image.open(r"comp.png").save(r"out.pnm")

Note: If you want to add any other formats, please submit an issue.

NameSpec / Authorpath in this benchmarkopen source?gray 8-bit ?RGB 24-bit ?
PNGRFC 2083python pillow✔️✔️✔️
PNG (optipng 0.7.7)RFC 2083./codec/PNG/✔️✔️✔️
WEBPGoogle websitepython pillow✔️✔️✔️
JPEG2000ISO/IEC 15444-1python pillow✔️✔️✔️
JPEG-LSITU-T T.87python pillow✔️✔️✔️
JPEG-XL v0.9.0(1)ISO/IEC 18181./codec/JPEG-XL/✔️✔️✔️
QOID. Szablewski./codec/QOI/✔️✔️
QOIRNigel Tao./codec/QOIR/✔️✔️
ZPNGChris Taylor./codec/ZPNG/✔️✔️✔️
NBLI v0.4X.Wang./codec/NBLI/✔️✔️✔️
fNBLI v0.4X.Wang./codec/NBLI/✔️✔️
HALIC 0.7.2Hakan Abbas./codec/HALIC/✔️✔️
BMF v2.01Dmitry Shkarin./codec/BMF/✔️✔️
EMMAMarcio Pais./codec/EMMA/✔️
LEA v0.6 betaMarcio Pais./codec/LEA/✔️
Gralic v1.11Alex Rhatushnyak./codec/GRALIC/bug?✔️
FLIC v2.1Alex Rhatushnyak./codec/FLIC/✔️
QLIC2 v2Alex Rhatushnyak./codec/QLIC2/✔️
QIC v1Alex Rhatushnyak./codec/QIC/✔️
BIM v0.03Ilya Muravyov./codec/BIM/✔️
KVICKA. Debski./codec/KVICK/✔️
PGLZPeter Thamm./codec/PGLZ/✔️
agiannis_imageK. Agiannis./codec/agiannis_image/✔️
JPEG-LS-extITU-T T.870./codec/QOI/✔️✔️
CALICX. Wu et al../codec/CALIC/✔️
MRP v0.5(2)I. Matsuda et al../codec/MRP/✔️✔️

(1): The well-knownFLIF (Free Lossless Image Format) was superseded byJPEG-XL.*(2): MRP can only compress gray 8-bit images with size multiple of 8.*

 

The commands to compress:

CodecCommand to compress
PNG (optipng)optipng.exe -o2 -force in.pnm -out out.png
PNGImage.open('in.pnm').save('out.png', optimize=True)
PNGImage.open('in.pnm').save('out.png', optimize=False)
WEBPImage.open('in.pnm').save('out.webp',lossless=True,quality=100,method=5)
JPEG2000Image.open('in.pnm').save('out.j2k',format='JPEG2000',irreversible=False)
JPEG-LSImage.open('in.pnm').save('out.jls',spiff=None)
JPEG-XL v0.9.0cjxl.exe in.pnm out.jxl -q 100 -e 8 --quiet --num_threads=0
QOIImCvt.exe in.pnm -o out.qoi
QOIRQOIR.exe in.pnm out.qoir
ZPNG (-19)ZPNG.exe -19 in.pnm out.zpng
ZPNGZPNG.exe -c in.pnm out.zpng
NBLI v0.4NBLI.exe -f in.pnm -o out.nbli
fNBLI v0.4fNBLI.exe -f in.pnm -o out.fnbli
HALIC v0.7.2HALIC072e.exe in.pnm out.halic
HALIC v0.7.2 fastHALIC072fe.exe in.pnm out.halic
BMF v2.01BMF.exe -Oout.bmf in.pnm
BMF v2.01 (-s)BMF.exe -s -Oout.bmf in.pnm
EMMAemma_c.exe in.pnm out.emma
LEA v0.6 betaLEA.exe in.pnm out.lea
Gralic v1.11Gralic111d.exe c out.gralic in.pnm
FLIC 2.1FLIC.exe c out.flic in.pnm
QLIC2 v2QLIC2.exe c out.qlic2 in.pnm
QIC v1QIC.exe c out.qic in.pnm
BIM v0.03BIM.exe c in.pnm out.bim
KVICKkvick.exe c i out.kvick in.pnm
PGLZPGLZ -c in.pnm out.pglz
agiannis_imageagiannis_image c in.pnm out.agiannis_image
JPEG-LS-extensionImCvt.exe in.pnm -o out.jlsx
CALICpython calic.py -e in.pnm out.calic 0
MRP v0.5mrp_enc.exe -o in.pnm out.mrp

 

The commands to decompress:

FormatCommand to decompress
PNGImage.open('in.png').save('out.pnm')
WEBPImage.open('in.webp').save('out.pnm')
JPEG2000Image.open('in.j2k').save('out.pnm')
JPEG-LSImage.open('in.jls').save('out.pnm')
JPEG-XL v0.9.0djxl.exe in.jxl out.pnm --quiet --num_threads=0
QOIImCvt.exe in.qoi -o out.pnm
QOIRQOIR.exe in.qoir out.pnm
ZPNGZPNG.exe -d in.zpng out.pnm
fNBLI v0.4fNBLI.exe -f in.fnbli out.pnm
NBLI v0.4NBLI.exe -f in.nbli out.pnm
HALIC v0.7.2HALIC072d.exe in.halic out.pnm
HALIC v0.7.2 fastHALIC072fd.exe in.halic out.pnm
BMF v2.01BMF.exe -pnm -Oout.pnm in.bmf
EMMAemma_d.exe in.emma out.pnm
LEA v0.6 betaLEA.exe in.lea out.pnm
Gralic v1.11Gralic111d.exe d in.gralic out.pnm
FLIC 2.1FLIC.exe d in.flic out.pnm
QLIC2 v2QLIC2.exe d in.qlic2 out.pnm
QIC v1QIC.exe d in.qic out.pnm
BIM v0.03BIM.exe d in.bim out.pnm
KVICKkvick.exe d i in.kvick out.pnm
PGLZPGLZ -d in.pglz out.pnm
agiannis_imageagiannis_image d in.agiannis_image out.pnm
JPEG-LS-extensionImCvt.exe in.jlsx -o out.pnm
CALICpython calic.py -d in.calic out.raw
MRP v0.5mrp_dec.exe in.mrp out.pnm

 

 

 

How to run benchmark

Prepare Python in your Windows

The benchmarking script is written in Python3. If you had not install Python3 yet, it is recommended to installAnaconda (It seems that you should fill your email to download now). Just select the newest version for Windows (the version was Python 3.12 when I wrote this document).

In this benchmark, some of the formats are compressed using Windows .EXE files (in./codec/ folder), while others are compressed use Python 3.9 with Pillow 10.1.0 library. Therefore, after installing Anaconda, you need to use CMD (command line) to run following commands to install the required packages:

python -m pip install Pillow==10.1.0       # for PNG, WEBP, and JPEG2000 compress/decompresspython -m pip install pillow_jpls==1.3.2   # for JPEG-LS compress/decompress

Run a Simple Test

The benchmarking script isRunBenchmark.py. Use following command to run:

python RunBenchmark.py <image_folder>

There must be some.pnm image files in <image_folder>, either RGB 24bit-images or Gray 8-bit images. The script will benchmark these images.

For example, I provide two images inexample_image folder, so you can run a simple test on it:

python RunBenchmark.py example_image

Specify Codecs

To specify which compression formats to participate in comparison, simply modify theCODEC_LIST list inRunBenchmark.py (just comment/uncomment corresponding lines).

Run Benchmarks

Just prepare more.pnm images in a folder, and run theRunBenchmark.py.

 

 

 

Get datasets

CLIC2021

CLIC2021 dataset has 585 RGB 24-bit images totaling 4.1 GB, which is the training set ofCLIC2021 competition. To get it:

  • Downloaddata.vision.ee.ethz.ch/cvl/clic/professional_train_2020.zip
  • Extract the zip, getting 585 .png image files.
  • Download and installNConvert 7.163. We will use nconvert.exe (You can add it to your Windows environment variable).
  • Convert all the downloaded .png images toRGB 24-bit .pnm format using nconvert.exe.The method is to run the following command in the directory where the images are located:
    nconvert.exe -out pnm *.png
  • Put these 585 .pnm files into a folder.
  • Run benchmark.

 

GDCC2020

GDCC2020 dataset has 100 RGB 24-bit images totaling 1 GB, which is the test set ofGDCC2020 competition. To get it:

  • Download itfrom this link.
  • Extract it, getting 107 .pnm files.
  • Run benchmark.

 

UCID

UCID dataset has 1338 RGB 24-bit images totaling 789 MB. To get it:

  • Download itfrom this link. Please click the linkUCID Database (Zipped)
  • Extract it, getting 1338 .tif image files.
  • Download and installNConvert 7.163. We will use nconvert.exe (You can add it to your Windows environment variable).
  • Convert all the downloaded .tif images toRGB 24-bit .pnm format using nconvert.exe.The method is to run the following command in the directory where the images are located:
    nconvert.exe -out pnm *.tif
  • Put these 1338 .pnm files into a folder.
  • Run benchmark.

 

ImgInfoRGB

ImgInfoRGB dataset has 14 RGB 24-bit images totaling 470 MB. To get it:

  • Download itfrom this link, please click theRGB 8 bit.
  • Extract it, getting 14 .ppm files.
  • Rename their file suffix from .ppm to .pnm. (actually ppm and pnm are same file formats)
  • Run benchmark.

 

ImgInfoGray

ImgInfoGray dataset has 15 Gray 8-bit images totaling 163 MB. To get it:

  • Download itfrom this link, please click theGray 8 bit.
  • Extract it, getting 15 .pgm files.
  • Rename their file suffix from .pgm to .pnm. (actually pgm and pnm are same file formats)
  • Run benchmark.

 

Kodak

Kodak dataset has 24 RGB 24-bit images totaling 28 MB. To get it:

  • VisitKodak True Color Image Suite, you will see 24 .png images. Download them one-by-one.
  • Download and installNConvert 7.163. We will use nconvert.exe (You can add it to your Windows environment variable).
  • Convert all the downloaded .png images toRGB 24-bit .pnm format using nconvert.exe.The method is to run the following command in the directory where the images are located:
    nconvert.exe -out pnm *.png
  • Put these 24 .pnm files into a folder.
  • Run benchmark.

 

LPCB

LPCB dataset has 107 RGB 24-bit images totaling 3.4 GB, which is similar to the dataset used inthe benchmark by Alex Rhatushnyak, but not exactly the same. This is because the astronomical photo website mentioned by Alex has changed, and the images I found are not exactly the same as the ones Alex downloaded. The method that Alex described for obtaining LPCB can be foundhere.

My LPCB consists of 62 photographs and 45 astronomical images. To get the 62 photographs:

  • First, download all the "Sample RAW Images" from the following four sites:Olympus,Sony,Fujifilm, andCanon.Note: Please find the "Sample RAW Images" section on the webpage to download, rather than the "Sample Images" section.
  • After downloading, remove some similar images among them.
    • InSony set, remove images 12, 13, 14.
    • InCanon set, remove images 7, 8, 9, 10.
    • InFujifilm set, remove images 7, 8, 9.After removing, there are 62 images left.
  • Convert these 62 images to24-bit RGB .pnm format usingNConvert 7.163. The method is to run the following command in the directory where the image is located:
    nconvert.exe -out pnm -high_res -raw_camerabalance *.orf *.arw *.raf *.cr2
  • List of the 62 test images in LPCB
      name                         width x height  canon_eos_1100d_01            4290 x 2856  canon_eos_1100d_02            2856 x 4290  canon_eos_1100d_03            4290 x 2856  canon_eos_1100d_04            4290 x 2856  canon_eos_1100d_05            4290 x 2856  canon_eos_1100d_06            2856 x 4290  canon_eos_1100d_11            4290 x 2856  canon_eos_1100d_12            4290 x 2856  canon_eos_1100d_13            2856 x 4290  canon_eos_1100d_14            4290 x 2856  canon_eos_1100d_15            2856 x 4290  fujifilm_finepix_x100_01      4310 x 2870  fujifilm_finepix_x100_02      4310 x 2870  fujifilm_finepix_x100_03      2870 x 4310  fujifilm_finepix_x100_04      2870 x 4310  fujifilm_finepix_x100_05      2870 x 4310  fujifilm_finepix_x100_06      2870 x 4310  fujifilm_finepix_x100_10      4310 x 2870  fujifilm_finepix_x100_11      4310 x 2870  fujifilm_finepix_x100_12      4310 x 2870  fujifilm_finepix_x100_13      2870 x 4310  fujifilm_finepix_x100_14      4310 x 2870  fujifilm_finepix_x100_15      4310 x 2870  olympus_xz1_01                2760 x 3680  olympus_xz1_02                2760 x 3680  olympus_xz1_03                2760 x 3680  olympus_xz1_04                2760 x 3680  olympus_xz1_05                2760 x 3680  olympus_xz1_06                3680 x 2760  olympus_xz1_07                2760 x 3680  olympus_xz1_08                2760 x 3680  olympus_xz1_09                2760 x 3680  olympus_xz1_10                2760 x 3680  olympus_xz1_11                3680 x 2760  olympus_xz1_12                3680 x 2760  olympus_xz1_13                3680 x 2760  olympus_xz1_14                3680 x 2760  olympus_xz1_15                3680 x 2760  olympus_xz1_16                3680 x 2760  olympus_xz1_17                3680 x 2760  olympus_xz1_18                2760 x 3680  olympus_xz1_19                3680 x 2760  olympus_xz1_20                2760 x 3680  olympus_xz1_21                2760 x 3680  olympus_xz1_22                2760 x 3680  olympus_xz1_23                2760 x 3680  olympus_xz1_24                2760 x 3680  olympus_xz1_25                3680 x 2760  olympus_xz1_26                3680 x 2760  olympus_xz1_27                2760 x 3680  sony_a55_01                   4928 x 3280  sony_a55_02                   4928 x 3280  sony_a55_03                   4928 x 3280  sony_a55_04                   4928 x 3280  sony_a55_05                   4928 x 3280  sony_a55_06                   3280 x 4928  sony_a55_07                   4928 x 3280  sony_a55_08                   3280 x 4928  sony_a55_09                   4928 x 3280  sony_a55_10                   3280 x 4928  sony_a55_11                   4928 x 3280  sony_a55_15                   3280 x 4928

To get the 45 astronomical images:

  • Download 45 images (.tif) from the following links:
    https://photojournal.jpl.nasa.gov/tiff/PIA12811.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA12813.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13452.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13453.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13454.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13455.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13456.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13457.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13458.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13459.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13757.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13771.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13779.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13781.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13782.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13785.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13789.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13799.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13803.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13810.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13812.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13815.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13833.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13843.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13844.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13845.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13855.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13856.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13857.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13859.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13862.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13872.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13882.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13891.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13894.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13900.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13901.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13904.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13908.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13912.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13913.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13914.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13915.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13942.tifhttps://photojournal.jpl.nasa.gov/tiff/PIA13943.tif
  • Convert these 45 .tif images to24-bit RGB .pnm format usingNConvert 7.163. The method is to run the following command in the directory where the image is located:
    nconvert.exe -out pnm *.tif

Finally, Put these 62+45 .pnm files to a folder, then run benchmark.

 

Get more Gray 8-bit datasets

There are not many Gray 8-bit images available online for you to test. To obtain more gray8 images, you can convert the images fromRGB 24-bit toGray 8-bit usingNConvert 7.163. The method is to run the following command in the directory where the.pnm images are located:

nconvert.exe -grey 256 -out pnm *.pnm

This command may cause the original RGB image file to be replaced. Please make a backup before running it.

 

 

Acknowledgements

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp