File:GammaCorrection demo.jpg

From WikiProjectMed
Jump to navigation Jump to search

Original file(512 × 2,560 pixels, file size: 328 KB, MIME type: image/jpeg)

This file is from a shared repository and may be used by other projects. The description on its file description page there is shown below.

Summary

Description
English: A demonstration of the effect of gamma correction on images.
Date
Source This file was derived from: Weeki Wachee spring 10079u.jpg
Author X-romix 10:00, 7 June 2008 (UTC), Updated by --Rubybrian (talk) 14:25, 14 September 2010 (UTC); Photographer: Toni Frissell
Other versions

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.

Code

Code used to create the image:

for x in 0.5 1 2 3 4; do 
  convert Weeki_Wachee_spring_10079u.jpg -resize 512x -gamma $x ww_${x}.png
done;
montage \
  -pointsize 38 \
  -font 'LucidaSansRegular.ttf' \
  -background white \
  -tile 1x5 \
  \( ww_0.5.png -gravity southwest -fill white -draw "text 2,2 'γ=2'"          \) \
  \( ww_1.png   -gravity southwest -fill white -draw "text 2,2 'γ=1 (original)'" \) \
  \( ww_2.png   -gravity southwest -fill white -draw "text 2,2 'γ=1/2'"            \) \
  \( ww_3.png   -gravity southwest -fill white -draw "text 2,2 'γ=1/3'"            \) \
  \( ww_4.png   -gravity southwest -fill white -draw "text 2,2 'γ=1/4'"            \) \
  \
  -geometry 512x+0+0 \
  -tile 1x5 \
  \
  -quality '98%' \
  Weeki_Wachee_sprint_10079u_gamma.jpg

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

14 September 2010

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current14:08, 22 November 2010Thumbnail for version as of 14:08, 22 November 2010512 × 2,560 (328 KB)commons>Mike.hsCorrected gamma text to match the wikipedia definition

There are no pages that use this file.

Metadata