Streaming Multigrid for Gradient-Domain Operations on Large Images

links description executable usage

LINKS
SIGGRAPH 2008 Paper and Supplemental Images
St James Visualization
Windows Executables
Source Code
License

CODE DESCRIPTION

EXECUTABLE ARGUMENTS

USAGE
For testing purposes, several image datasets are provided.
  1. PNC3: This dataset, courtesty of Matt Uyttendaele, consists of a panorama of 7 images resulting in an image of resolution 7,963 x 3,589.
    To obtain the gradient field, we execute:
    GradientComposite.exe --in images.txt --outX dx.half --outY dy.half --labels labels.png --hFill --positions srcpos.txt
    which gives an output of:
    Input Size: 7963 x 3589
    Average: 81.166594 94.873757 109.569944
    Given the desired gradient fields and the computed average color value, the best-fit image is obtained by running:
    GradientsToImage.exe --inX dx.half --inY dy.half --out pnc3.jpg --average 81.166594 94.873757 109.569944 --width 7963 --height 3589
    The resulting, stiched, image is:
    Note that since the --hFill flag was enabled when the gradient field was generated, the reconstruction smoothly extends the image into the unlabeled pixels.

  2. Edinburgh: This dataset, courtesty of Brian Curless, consists of a panorama of 25 images resulting in an image of resolution 16,950 x 2,956.
    To obtain the gradient field, we execute:
    Input:
    GradientComposite.exe --in images.txt --outX dx.half --outY dy.half --labels labels.png
    Output:
    Input Size: 16950 x 2956
    Average: 78.278509 96.306657 114.776703
    Input:
    GradientsToImage.exe --inX dx.half --inY dy.half --out edinburgh.jpg --average 78.278509 96.306657 114.776703 --width 16950 --height 2956
    Output:

    Note that since the --hFill flag was not enabled when the gradient field was generated, the reconstructed image preserves the boundary between the labeled and unlabeled pixels.

  3. Redrock: This dataset, courtesty of Aseem Agarwala, consists of a panorama of 9 images resulting in an image of resolution 19,588 x 4,457.
    To obtain the gradient field, we execute:
    Input:
    GradientComposite.exe --in images.txt --outX dx.half --outY dy.half --labels labels.png --lScale 20
    Output:
    Input Size: 19588 x 4457
    Average: 124.306111 117.633504 102.756149
    Input:
    GradientsToImage.exe --inX dx.half --inY dy.half --out redrock.jpg --average 124.306111 117.633504 102.756149 --width 19588 --height 4457
    Output:

    Note that since the label files has successive color indices changing by (20,20,20), we added the parameter --lScale 20.


HOME