File:Polarlicht 2 kmeans 16 large.png

原始文件(3,008 × 1,960像素,文件大小:653 KB,MIME类型:image/png


摘要

描述

File:Polarlicht 2.jpg reduced to 16 colors using the k-means algorithm. Implemented in MATLAB as follows:

  1. Read in source image.
  2. Convert to 3-dimensional matrix of [y-value, x-value, rgb] using imread. Each entry is an integer between 0 and 255 representing the value of the color indicated by rgb at (x, y).
  3. Reduce linear resolution 8 times by averaging the values in each 8x8 matrix block (for faster processing).
  4. Run k-means (self-implemented) for 20 iterations with k = 16, obtaining 16 colors which are the centroids of each cluster.
  5. For each pixel in the original image, replace its value with the closest color based on Euclidean norm of RGB.
Note: Please do not convert this to a JPEG. It must remain in a lossless format to preserve the integrity of the RGB values.
日期
来源 自己的作品
作者 Senior Airman Joshua Strang, derivative work by King of Hearts
其他版本 See gallery

许可协议

Public domain 我,本作品著作权人,释出本作品至公有领域。这适用于全世界。
在一些国家这可能不合法;如果是这样的话,那么:
我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。
Public domain
本图片或文件是由美国空军的军人或雇员,基于其个人公务目的拍摄或制作的作品。作为美国联邦政府作品,本图片或文件在美国属于公有领域

العربية  беларуская (тарашкевіца)  català  čeština  Deutsch  English  español  eesti  فارسی  suomi  français  italiano  日本語  한국어  македонски  മലയാളം  မြန်မာဘာသာ  norsk bokmål  Plattdüütsch  Nederlands  polski  português  português do Brasil  русский  sicilianu  slovenčina  slovenščina  српски / srpski  svenska  Türkçe  українська  Tiếng Việt  中文(简体)  中文(繁體)  +/−

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2012年11月20日 (二) 20:502012年11月20日 (二) 20:50版本的缩略图3,008 × 1,960(653 KB)King of HeartsVicuñaUploader 1.16

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件:

元数据