Questions tagged [image-processing]
These challenges involve processing pre-existing image files, by altering them in some way, gathering statistics, or other image processing tasks.
133 questions
15
votes
15
answers
2k
views
Rotate an Image
This challenge is simple: Take a path to an png image file as input and overwrite that file with a copy of itself rotated 90 degrees clockwise. You may assume that ...
10
votes
7
answers
536
views
Random Pixels Image Compression
Challenge:
Given an integer \$n\$, guaranteed to be \$\geq2\$ and a power of 2, we are going to draw multiply boards either side-by-side or below one another, where the first has dimensions of \$n\$ ...
7
votes
2
answers
385
views
Temporally Dither an Image (Image to PWM Image)
Background
I want to display rich, vibrant images on my theoretical fancy custom display, but due to budget constraints, it displays everything in 3-bit colour! Whilst Regular Dithering would work, I ...
12
votes
2
answers
1k
views
Smallest image containing one of every RGB color
I'm not sure if this kind of golf is allowed, but here it is.
Your objective is to create an image containing one pixel of every possible RGB color. The image with the smallest file size wins.
Rules:
...
19
votes
5
answers
1k
views
Generate Green Spray Paint Patterns
This challenge is about creating these neat "green spray paint" patterns: (more pictures below)
Loosely explained, they are generated by starting with a black image and a point in the center. ...
4
votes
1
answer
328
views
Draw these shapes
Given: a width, a height, and a set of sets of points. Output: An image where each set of points is connected and colored in (like a shape). Each shape must be a different color from all of the other ...
7
votes
1
answer
697
views
Hilbertize an image
For a computer vision app I want to do a mapping of an image, in such a way that every pixel fit hilbert curve, instead of conventional layout. So task could be as follows:
Task description
Given ...
29
votes
4
answers
1k
views
Where's Blackhat?
Challenge
Write code which, given an image of a panel from a random xkcd comic, returns a truthy value if Blackhat is in the comic or falsey if not.
Who is Blackhat?
Blackhat is the unofficial name ...
2
votes
0
answers
205
views
Render a monospaced bitmap font from image [closed]
Input is in this format:
image fontwidth fontheight rowwidth xoffset yoffset xgap ygap non-existent charstart thetextitself
thetextitself: The text that should ...
6
votes
1
answer
554
views
Stereographic projection of polyhedra
You will create a program that generates the stereographic projection of polyhedra.
In particular, to keep things simple, we'll only focus on n-chamfered dodecahedron.
Given a natural number ...
11
votes
11
answers
1k
views
Generate a special period image
Construct a program or function that takes input in form of
<width>, <height>, <color1>, <color2>
and generates an output such that first ...
23
votes
12
answers
2k
views
How Cloudy Is It?
Challenge
Given an image of the sky, you must output the cloud cover in oktas. The image supplied will be an image file (the type is up to you) and the output should be to STDOUT.
Oktas
In meteorology,...
18
votes
4
answers
681
views
Knight-fill a grid
A knight fill is a flood fill using the connectivity of the knight chess piece. Specifically:
1 1
1 1
0
1 1
1 1
(0 is the initial point, 1s show the ...
6
votes
3
answers
541
views
Lazy Click and Drag
Your task is to write a program or function which, given two nonzero integers x and y, returns a truthy value if the image at ...
3
votes
0
answers
349
views
Is it a bird, is it a plane? [closed]
Challenge
Supplied an image, you must determine if the subject of the image is a bird or a plane.
If the image is a bird, your program must output
bird
and if ...
10
votes
4
answers
558
views
"Monitorize" an Image
The Problem:
This challenge comes from a real problem I was having. I have a dual monitor setup at work, and I wanted to use the following image as my wallpaper:
However, my monitors have quite ...
23
votes
16
answers
5k
views
Extract an RGB channel of an image
Given an image, either as input (possibly in RGB triplets) or with the filename as input (you may assume the image has a specific filename, possibly without an extension), output an image representing ...
29
votes
18
answers
8k
views
XOR two monochrome images
Challenge:
Take input of two black and white (monochrome) images and xor each pixel of the first, with each pixel of the second, add them to a new image and output the new image.
Some clarifications:...
21
votes
8
answers
4k
views
Arnold's Cat Map
Challenge
Given a colour raster image* with the same width and height, output the image transformed under Arnold's cat map. (*details see below)
Definition
Given the size of the image ...
29
votes
2
answers
1k
views
Hilbertify an image
I like the Hilbert Curve.
Your task for this challenge is to take an image (strictly a square image where all the sides are a power of two pixels wide) and unravel it line by line in a zig-zagging ...
5
votes
5
answers
582
views
Image Smoothie!
Input into your program a black and white image. (png, jpg, etc)
Convert the image to a 2D matrix of pixels, where each index is the grayscale value of the image.
Take each index of the matrix and ...
34
votes
9
answers
4k
views
Quixels - Quantum Pixels
Introduction
A quixel is a quantum pixel. Similar to a classical pixel, it is represented with 3 integer values (Red, Green, Blue). However, quixels are in a super position of these 3 states instead ...
14
votes
2
answers
676
views
Blunt the Images
Introduction
Sharp edges are, frankly, just plain dangerous so, given a PNG as input, blur the image using the method described below and blunt those damned sharp edges.
Method
To get the RGB value ...
10
votes
6
answers
11k
views
Reverse Bayer Filter of an image
Almost all digital camera sensors are organized in a grid of photosensors. Each photo sensor is sensitive for one of the primary colors: red, green and blue. The way those photo sensors are organized ...
23
votes
8
answers
2k
views
"Add one" to every color in an image
You would simply take this image and make every color added one to every hexadecimal digit. For example, #49de5f would become ...