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:--hFill
flag was enabled when the gradient field was generated, the reconstruction smoothly extends the image into the unlabeled pixels.
Input:
GradientComposite.exe --in images.txt --outX dx.half --outY dy.half --labels labels.png
Output:
Input Size: 16950 x 2956
Input:
Average: 78.278509 96.306657 114.776703
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.
Input:
GradientComposite.exe --in images.txt --outX dx.half --outY dy.half --labels labels.png --lScale 20
Output:
Input Size: 19588 x 4457
Input:
Average: 124.306111 117.633504 102.756149
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
.