set gs=<インストール フォルダ>\greycstoration.exe
GREYCstoration
http://www.greyc.ensicaen.fr/~dtschump/greycstorat...
- GREYCstoration-2.6.zip
-- GREYCstoration_mac_intel
-- GREYCstoration_mac_ppc
-- GREYCstoration_pc_freebsd
-- GREYCstoration_pc_linux
-- GREYCstoration_pc_win32.exe
-- GREYCstoration_gimp_pc_linux
-- GREYCstoration_gimp_pc_win32.exe
http://sourceforge.net/project/showfiles.php?group...
- CImg_win32exe.zip ( Dec 07, 2005 05:53 )
- CImg_win32_exe.zip ( Sep 27, 2005 02:33 )
- CImg_execWin32.zip ( Feb 26, 2004 05:17 )
%gs% -h -restore thumb.bmp -sigma 1.4 -p 0.9 -a 0.3
元絵 | 適用後 |
%gs% -h -restore before.bmp -o after.bmp -sigma 1.4 -p 0.9 -a 0.3 -prec 1
-restore = before.bmp : Restore the image specified after '-restore' -inpaint = NULL : Inpaint the image specified after '-inpaint' -resize = NULL : Resize the image specified after '-resize' -dt = 20 : Smoothing strength -p = 0.9 : Contour preservation -a = 0.3 : Smoothing anisotropy -alpha = 0.3 : Noise scale -sigma = 1.4 : Geometry regularity -iter = 1 : Number of iterations -scheme = true : Curvature-preserving scheme (0=false, 1=true) -ng = 0 : Add gaussian noise before denoising -nu = 0 : Add uniform noise before denoising -ns = 0 : Add Salt&Pepper noise before denoising -improve = true : Improve structure tensor computation -save = 0 : Iteration saving step -visu = true : Enable/Disable visualization -o = after.bmp : Output image -dl = 0.8 : Spatial integration step -da = 45 : Angular integration step (in degrees) -prec = 1 : Precision of the gaussian function -linear = false : Use linear interpolation for integration
元絵 | 適用後 |
マスク | |
%gs% -h -inpaint before.bmp -m mask.bmp -o after.bmp
-restore = NULL : Restore the image specified after '-restore' -inpaint = before.bmp : Inpaint the image specified after '-inpaint' -resize = NULL : Resize the image specified after '-resize' -dt = 30 : Smoothing strength -p = 0.01 : Contour preservation -a = 0.9 : Smoothing anisotropy -alpha = 0.1 : Noise scale -sigma = 2 : Geometry regularity -iter = 100 : Number of iterations -scheme = false : Curvature-preserving scheme (0=false, 1=true) -m = mask.bmp : Input inpainting mask -dilate = 0 : Inpainting mask dilatation -init = 2 : Inpainting init (0=black, 1=white, 2=noise, 3=unchanged, 4=interpol) -improve = true : Improve structure tensor computation -save = 0 : Iteration saving step -visu = true : Enable/Disable visualization -o = after.bmp : Output image
元絵 | ViX で拡大 | GREYCstoration で拡大 |
%gs% -h -resize before.bmp -o after.bmp -g 128x128 -anchor false -prec 7 -sigma 5 -dt 2.5
-restore = NULL : Restore the image specified after '-restore' -inpaint = NULL : Inpaint the image specified after '-inpaint' -resize = before.bmp : Resize the image specified after '-resize' -dt = 2.5 : Smoothing strength -p = 0.01 : Contour preservation -a = 1 : Smoothing anisotropy -alpha = 0.1 : Noise scale -sigma = 5 : Geometry regularity -iter = 3 : Number of iterations -scheme = true : Curvature-preserving scheme (0=false, 1=true) -g = 128x128 : Output image geometry -anchor = false : Anchor original pixels -interp = 3 : Initial interpolation (0=black, 1=block, 2=mosaic, 3=linear, 4=grid, 5=bicubic -improve = true : Improve structure tensor computation -save = 0 : Iteration saving step -visu = true : Enable/Disable visualization -o = after.bmp : Output image -dl = 0.8 : Spatial integration step -da = 45 : Angular integration step (in degrees) -prec = 7 : Precision of the gaussian function -linear = false : Use linear interpolation for integration
--- greycstoration.cpp.orig Fri Nov 18 16:10:04 2005 +++ greycstoration.cpp Fri Dec 9 20:39:46 2005 @@ -337,13 +337,13 @@ const bool append_result = cimg_option("-append",false,NULL); const float p2 = (float)((1+anisotropy)/(1e-10+1-anisotropy)*p1); switch(scheme) { - case 0: + case false: // Trace-based PDE + break; + default: // Curvature-preserving PDE dl = (float)cimg_option("-dl",0.8f,"Spatial integration step"); da = (float)cimg_option("-da",45.0f,"Angular integration step (in degrees)"); gauss_prec = (float)cimg_option("-prec",2.0f,"Precision of the gaussian function"); linear = cimg_option("-linear",false,"Use linear interpolation for integration"); - break; - default: break; }
元絵 | |
1.1.0 | 2.0 ( CImg 1.1.1 ) |
2.5.2 ( CImg 1.2.0.1 ) | 2.4.1 ( CImg 1.1.7 ) |
%gs% -h -restore before.bmp -o after.bmp -sigma 1.1 -da 30 -a 0.3 -p 1.1
-dt = 20 : Smoothing strength -p = 1.1 : Contour preservation -a = 0.3 : Smoothing anisotropy -alpha = 0.3 : Noise scale -sigma = 1.1 : Geometry regularity -iter = 1 : Number of iterations -scheme = true : Curvature-preserving scheme (0=false, 1=true) -ng = 0 : Add gaussian noise before denoising -nu = 0 : Add uniform noise before denoising -ns = 0 : Add Salt&Pepper noise before denoising -improve = true : Improve structure tensor computation -save = 0 : Iteration saving step -visu = false : Enable/Disable visualization -dl = 0.8 : Spatial integration step -da = 30 : Angular integration step (in degrees) -prec = 2 : Precision of the gaussian function -linear = false : Use linear interpolation for integration
-dt = 50 : Smoothing strength (>=0) -p = 1.1 : Contour preservation (>=0) -a = 0.3 : Smoothing anisotropy (0<=a<=1) -alpha = 0.5 : Noise scale (>=0) -sigma = 1.1 : Geometry regularity (>=0) -iter = 1 : Number of iterations (>0) -scheme = true : Curvature-preserving scheme (0=false, 1=true) -ng = 0 : Add gaussian noise before denoising (>=0) -nu = 0 : Add uniform noise before denoising (>=0) -ns = 0 : Add Salt&Pepper noise before denoising (>=0) -save = 0 : Iteration saving step (>=0) -visu = false : Enable/Disable visualization (0 or 1) -prenormalize = false : Apply pre-normalization in [0,255] -postnormalize = false : Apply post-normalization in [0,255] -dl = 0.8 : Spatial integration step (0<=dl<=1) -da = 30 : Angular integration step (0<=da<=90) -prec = 2 : Precision of the gaussian function (>0) -interp = 0 : Interpolation type (0=Nearest-neighbor, 1=Linear,2=Runge-Kutta)
+ Global algorithm parameters --------------------------- -dt = 40 : Regularization strength for one iteration (>=0) -iter = 1 : Number of regularization iterations (>0) -p = 0.9 : Contour preservation for regularization (>=0) -a = 0.2 : Regularization anisotropy (0<=a<=1) -alpha = 0.6 : Noise scale (>=0) -sigma = 1.1 : Geometry regularity (>=0) -fast = true : Use fast approximation for regularization (true or false) -prec = 2 : Precision of the gaussian function for regularization (>0) -dl = 0.8 : Spatial integration step for regularization (0<=dl<=1) -da = 30 : Angular integration step for regulatization (0<=da<=90) -interp = 0 : Interpolation type (0=Nearest-neighbor, 1=Linear,2=Runge-Kutta) -sdt = 0 : Sharpening strength for one iteration (>=0) -sp = 0.5 : Sharpening edge threshold (>=0)
%gs% -h -restore before.bmp -o after.bmp -a 1 -p 0
+ Global algorithm parameters --------------------------- -dt = 40 : Regularization strength per iteration (>=0) -iter = 1 : Number of iterations (>0) -p = 0 : Contour preservation (>=0) -a = 1 : Smoothing anisotropy (0<=a<=1) -alpha = 0.6 : Noise scale (>=0) -sigma = 1.1 : Geometry regularity (>=0) -fast = true : Enable fast approximation (true or false) -prec = 2 : Computation precision (>0) -dl = 0.8 : Spatial integration step (0<=dl<=1) -da = 30 : Angular integration step (0<=da<=90) -interp = 0 : Interpolation type (0=Nearest-neighbor, 1=Linear,2=Runge-Kutta) -tile = 512 : Activate tiled mode and set tile size (>=0) -btile = 4 : Size of tile borders (>=0) -threads = 2 : Number of threads used (tile mode only) -sdt = 0 : Activate sharpening filter, set sharpening strength (>=0) -sp = 0.5 : Sharpening edge threshold (>=0)
アプリケーション名 | restore v1 | restore v2 | restore v2 fast | inpaint | resize |
<= 1.1.0 ( CImg 1.1.0 ) | x | - | - | x | x |
>= 2.0 ( CImg 1.1.1 ) | - | x | - | x | x |
<= 2.3 ( CImg 1.1.3 ) | - | x | x | x | x |
GREYCstoration for Integration | - | x | x | - | - |
Gimp Plugin 0.2.0 | x | - | - | - | - |
Gimp Plugin 1.1 | - | - | x | - | - |
Paint.NET Wrapper Plugin | - | - | x? | x? | - |
-append = false | Append original image to output file |
-quality = 100 | JPEG output quality |
-bits = 8 | Define image pixel type (8='uchar', 16='ushort', 32='float') |
-tile = 512 | Activate tiled mode and set tile size (>=0) |
-btile = 4 | Size of tile borders (>=0) |
-threads = 2 | Number of threads used (tile mode only) |
-fact = 0 | Define intensity factor (0=auto) |
-cbase = 0 | Color base processed (0=RGB, 1=YCbCr) |
-crange = 0 | Channels processed (ex: '0-2') |
-verbose = true | Verbose mode |
old | new |
-reference | -ref |
-sdt | -sharp |
-sp | -se |
-clean | Clean image specified after '-clean' |
-p = 0 | Patch size (>0) |
-ss = 15 | Spatial sigma (>0) |
-sp = 10 | Patch sigma (>0) |
-r = 7 | Size of the lookup region (>0) |
-smooth | amplitude>=0,_sharpness>=0,_anisotropy=[0,1],_alpha,_sigma,_dl>0,_da>=0,_precision>0,_interpolation_type={0,1,2},_fast_approximation={0,1} |
or nb_iters>=0,_sharpness>=0,_anisotropy=[0,1],_alpha,_sigma,_dt>0,0 | |
or [ind],_amplitude>=0,_dl>0,_da>=0,_precision>0,_interpolation_type={0,1,2},_fast_approximation={0,1} | |
or [ind],_nb_iters>=0,_dt>0,0 |
GREYCstoration -restore | G'MIC -smooth |
-dt | amplitude>=0 |
-p | sharpness>=0 |
-a | anisotropy=[0,1] |
-alpha | alpha |
-sigma | sigma |
-dl | dl>0 |
-da | da>=0 |
-prec | precision>0 |
-interp | interpolation_type={0,1,2} |
-fast | fast_approximation={0,1} |
-resize | [indice],_interpolation={-1,0,1,2,3,4,5},_borders={-1,0,1,2},_center={0,1} |
or {[indice],width[%]},_{[indice],height[%]},_{[indice],depth[%]},_{[indice],dim[%]},_interpolation,_borders,_center | |
or (noargs) |