Skip to main content

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.

Filter by
Sorted by
Tagged with
15 votes
15 answers
2k views

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 ...
Ginger's user avatar
  • 6,098
10 votes
7 answers
536 views

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\$ ...
Kevin Cruijssen's user avatar
7 votes
2 answers
385 views

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 ...
ATaco's user avatar
  • 11.7k
12 votes
2 answers
1k views

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: ...
user avatar
19 votes
5 answers
1k views

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. ...
Discrete Games's user avatar
4 votes
1 answer
328 views

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 ...
willowis.cool's user avatar
7 votes
1 answer
697 views

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 ...
xakepp35's user avatar
  • 313
29 votes
4 answers
1k views

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 ...
Beta Decay's user avatar
  • 23.6k
2 votes
0 answers
205 views

Input is in this format: image fontwidth fontheight rowwidth xoffset yoffset xgap ygap non-existent charstart thetextitself thetextitself: The text that should ...
user avatar
6 votes
1 answer
554 views

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 ...
Christopher King's user avatar
11 votes
11 answers
1k views

Construct a program or function that takes input in form of <width>, <height>, <color1>, <color2> and generates an output such that first ...
user avatar
23 votes
12 answers
2k views

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,...
Beta Decay's user avatar
  • 23.6k
18 votes
4 answers
681 views

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 ...
Dave's user avatar
  • 8,569
6 votes
3 answers
541 views

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 ...
fireflame241's user avatar
  • 16.4k
3 votes
0 answers
349 views

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 ...
user avatar
10 votes
4 answers
558 views

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 ...
dberm22's user avatar
  • 522
23 votes
16 answers
5k views

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 ...
Riker's user avatar
  • 7,928
29 votes
18 answers
8k views

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:...
Offtkp's user avatar
  • 3,123
21 votes
8 answers
4k views

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 ...
flawr's user avatar
  • 44.1k
29 votes
2 answers
1k views

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 ...
Wheat Wizard's user avatar
  • 103k
5 votes
5 answers
582 views

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 ...
jacksonecac's user avatar
  • 2,626
34 votes
9 answers
4k views

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 ...
NonlinearFruit's user avatar
14 votes
2 answers
676 views

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 ...
Beta Decay's user avatar
  • 23.6k
10 votes
6 answers
11k views

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 ...
agtoever's user avatar
  • 2,921
23 votes
8 answers
2k views

You would simply take this image and make every color added one to every hexadecimal digit. For example, #49de5f would become ...
bb216b3acfd8f72cbc8f899d4d6963's user avatar