File:Normal and Bayer Filter (120px-Colorful spring garden).png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(960 × 1,280 pixels, file size: 122 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: The bottom image is how a Bayer filter sensor in a digital camera would capture the image. The camera interpolates the missing colour information to reconstruct the top image as good as possible.
Date
Source File:Colorful_spring_garden.jpg, originally at Flickr: https://www.flickr.com/photos/15501382@N00/465243421/
Author Original: Anita Martinz
Other versions Derivative works of this file:  Colorful spring garden Bayer.png

Source code:

function output = bayer(input) tile(:,:,3)=[0 0; 0 1]; tile(:,:,2)=[0 1; 1 0]; tile(:,:,1)=[1 0; 0 0]; [a b c]=size(input); filter=repmat(tile,ceil(a/2),ceil(b/2)); filter=uint8(filter(1:a,1:b,:)); output=input.*filter;

Licensing

[edit]
This file, which was originally posted to File:Colorful_spring_garden.jpg, was reviewed on 5 December 2011 by reviewer Lymantria, who confirmed that it was available there under the stated license on that date.
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 2.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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current13:44, 29 November 2011Thumbnail for version as of 13:44, 29 November 2011960 × 1,280 (122 KB)Gollem (talk | contribs)

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata