https://doi.org/10.5201/ipol.2011.g_zwld
Raw File
Tip revision: f67dafb5664189be7b568fb02d2bf8391831e9ee authored by Software Heritage on 01 January 2010, 00:00:00 UTC
ipol: Deposit 696 in collection ipol
Tip revision: f67dafb
demo
#! /bin/sh
# Demo script for using dmzhangwu
# Pascal Getreuer 2011

# Image credits: the test image frog.bmp is by 
#   John D. Willson, USGS Amphibian Research and Monitoring Initiative
#   http://armi.usgs.gov/gallery/detail.php?search=Genus&subsearch=Bufo&id=323

echo ''
echo '+============================================================================+'
echo '+ First, we mosaic the input image "frog.bmp"                                +'
echo '+============================================================================+'

./mosaic -v -pRGGB frog.bmp frog-m.bmp

echo ''
echo ''
echo '+============================================================================+'
echo '+ Now we run the bilinear and Zhang-Wu demosaicing to create "frog-bl.bmp"   +'
echo '+ and "frog-zw.bmp"...                                                       +'
echo '+============================================================================+'

./dmbilinear -pRGGB frog-m.bmp frog-bl.bmp
./dmzhangwu -pRGGB frog-m.bmp frog-zw.bmp

echo ''
echo ''
echo '+============================================================================+'
echo '+ The difference between the original and "frog-bl.bmp" is                   +'
echo '+============================================================================+'

./imdiff frog.bmp frog-bl.bmp

echo ''
echo ''
echo '+============================================================================+'
echo '+ The difference between the original and "frog-zw.bmp" is                   +'
echo '+============================================================================+'

./imdiff frog.bmp frog-zw.bmp

echo ''
back to top