home/categories/media/ecnu-icalk-autoskill-skillbank-convskill-english-gpt3-5-8-glm4-7-python-image-downsampling-with-color-voting-skill-md
mediacontent-media

python-image-downsampling-with-color-voting

Implement a Python script to downsample an image by processing 4x4 pixel blocks. Each pixel in a block votes for the closest color in a colormap, and the block is filled with the most voted color.

ECNU-ICALK
maintainer
ECNU-ICALK
更新于 3/13/2026
星标
304
分支
34
quick start

Installation and usage

Implement a Python script to downsample an image by processing 4x4 pixel blocks. Each pixel in a block votes for the closest color in a colormap, and the block is filled with the most voted color.

安装
$ install --globalskills.sh
使用

安装后,您可以通过在终端运行以下命令来使用此技能:

skills use python-image-downsampling-with-color-voting