Skip to main content
Share Your Experience: Take the 2024 Developer Survey
11 votes
Accepted

What is bilateral upsampling?

It seems like you're asking two things. I can't really speak technically about JBU, but I can give an overview of the necessary concepts and bilateral filtering generally. You'll probably need to ...
geometrian's user avatar
  • 1,990
7 votes

Why BMP file format last line of image is first line on file?

Here's a quote from Petzold: So, in DIBs, the bottom row of the image is the first row of the file, and the top row of the image is the last row in the file. This is called a bottom-...
daven11's user avatar
  • 171
7 votes
Accepted

Bitmap-images or SVG

Neither of your suggestions is a solution for crisp 2D graphics at all resolutions. SVGs are great and infinitely scalable, but since you don't know where the pixel boundaries will lie in the final ...
Dan Hulme's user avatar
  • 6,830
7 votes
Accepted

Why isn't the clear color visible on the screen between frames?

You're confusing the screen (the physical display) with the framebuffer (the memory which gets read out by the display controller). The framebuffer might get cleared at the start of each frame period, ...
Dan Hulme's user avatar
  • 6,830
7 votes

Is there a image-format that support an array per pixel?

OpenEXR might be a good fit. You can have an arbitrary number of channels per pixel and the data types for each channel can be integers. http://www.openexr.com/
Daniel Gollás's user avatar
5 votes

Explanation of a the transparency of an .EXR file

In an EXR, the convention is to store associated alpha, also known as premultiplied. The latter term however doesn't do justice to the nuances of the alpha format as compared to its evil distant ...
troy_s's user avatar
  • 318
5 votes
Accepted

Depth of Field in Path Tracing: What do I do with the secondary ray?

The missing step If you already understand how to generate a secondary ray, then you have already grasped the difficult part. All you need to do now is find the colour that this secondary ray results ...
trichoplax is on Codidact now's user avatar
5 votes
Accepted

LWJGL/OpenGL get BufferedImage from texture ID

To make it a more complete example, let's also consider loading a texture from a BufferedImage as well. First let's assume: ...
vallentin's user avatar
  • 253
4 votes
Accepted

How linear interpolation works between mipmaps?

It's called trilinear interpolation. You first do a bilinear interpolation of the higher-res texture, then do a bilinear interpolation on the lower-res texture, then interpolate between the 2 results. ...
user1118321's user avatar
  • 3,421
3 votes

What algorithm to reassemble a broken image?

If the pieces are fairly close to where they were, ICP could be of help (under the assumption that the pieces are planar polygons).
beyond's user avatar
  • 315
3 votes
Accepted

How RGB images are formed

Each channel ranges not from black to white, but from off to full intensity. What colour is meant by full intensity is down to convention and the presentation technology. For example, a given image ...
Dan Hulme's user avatar
  • 6,830
3 votes
Accepted

What is the typical use case for rendering to an image through imageStore?

I've used imageStore as part of compute shaders doing surface extraction. I've only ever used it in compute shaders, to store the calculated data in a texture to be ...
russ's user avatar
  • 2,392
3 votes
Accepted

How are the colors for each pixel from a Ray Tracer stored in an Image?

It doesn't matter. All that matters is that you can store information per pixel. In most cases this means allocating a x*y array of ...
ratchet freak's user avatar
3 votes

How are the colors for each pixel from a Ray Tracer stored in an Image?

Depends if you are talking about CPU or GPU ray tracer. For CPU you generally simply allocate an array of width * height float4's (i.e. for RGB & alpha) and for GPU you allocate a texture (e.g. ...
JarkkoL's user avatar
  • 3,636
3 votes

What is bilateral upsampling?

This probably does not explore the full depth of the term, but the first thing that comes to my mind when I hear "bilateral upsampling" is depth-aware blending of low-resolution images onto high-...
IneQuation's user avatar
3 votes
Accepted

splitting hue & saturating and leaving value behind

Removing hue and saturation ("desaturating") leads to a grayscale image with the same luminance as the original colors, for instance: (source: my own photo) It is not possible to remove hue ...
Nathan Reed's user avatar
  • 25.1k
2 votes

Is there a image-format that support an array per pixel?

Probably .dds. You can store there textures array or 3d texture both can be use as array per pixel. You can try creating this textures with ...
Derag's user avatar
  • 596
2 votes

How linear interpolation works between mipmaps?

You might find the 1983 paper that introduced this**, i.e. Lance Williams' "Pyramidal Parametrics" informative. You can ignore the scheme, in Figure 1, he used for the layout of the MIP maps as I ...
Simon F's user avatar
  • 4,261
2 votes

Compression-friendly PNG files

PNG format is lossless format where for compression the image is first "filtered" and this filtered image is then passed to DEFLATE lossless compression algorithm. The purpose of filtering stage is to ...
JarkkoL's user avatar
  • 3,636
2 votes
Accepted

Description of the process involved in displaying digital images

Starting from reading the data from a file to displaying the image on the screen. As was pointed out in the comments, this is an extremely broad question, and depends on what operating system you're ...
RoboticForest's user avatar
2 votes

Mixing HSV Channel

I think your answer is a little off. When the saturation is 0, the hue is basically undefined. It has some numerical value, but that value is ignored. Saturation of 0 means achromatic, or uncolored. ...
user1118321's user avatar
  • 3,421
2 votes
Accepted

Get normalized device coordinate of an image pixel

You can modulus by row length to retrieve the x coordinate (think about the x coordinate "wrapping around" after each line), and division by row length to get the y coordinate (inverting the ...
AJ Weeks's user avatar
2 votes
Accepted

How to change a RGB value using a radiance value?

What you're looking for is called tone mapping, which is the process of mapping from HDR color values generated by a physically based renderer, to LDR color values suitable for display on a screen. It ...
Nathan Reed's user avatar
  • 25.1k
2 votes
Accepted

Difference between Gray-Level and Gray-Scale?

Grayscale images measure only the intensity of light, like for images that appear black-and white with monochromatic shades of gray. Gray level refers to the actual level. e.g.: A pixel might be ...
Wyck's user avatar
  • 410
2 votes

How Can I convert Grayscale values of an image?

For this specific task and if you don't care about how the method can be extended to other cases, the following python code does the job: ...
Enigmatisms's user avatar
1 vote

How RGB images are formed

CRT monitors are a thing of the past, but I think they are the best example to describe to you "how the image is formed". Each pixel on the monitor is actually a group of 3 phosphors. A green phosphor,...
Gabriel Rohweder's user avatar
1 vote

How do you add text dynamically to an image and export it?

To do this in a web app is trivial. Judging by the image, even the built-in HTML canvas should be able to do everything that you need. Once you have obtained your image and text, to give you a vague ...
arctiq's user avatar
  • 31
1 vote
Accepted

How RGB images are formed when normalized between 0 and 1

Let's suggest an analogy. I have a distance of 1 centimeter and 2.54 centimeters. If I transform the latter distance to inches, then it's 1 inch. This has the same value as the first distance. But 1 ...
Nicol Bolas's user avatar
  • 9,832
1 vote
Accepted

How to create static alpha masks of an image

You can either use a threshold, or, since you know the location and size of the 2 circles, simply generate one programatically. In this case, you have a circle that's centered at (279, 283.5) and has ...
user1118321's user avatar
  • 3,421
1 vote
Accepted

Artificially increase the region of interest of an image

It looks like your image will always have the same black area due to the mechanism used to take the picture. If that's the case then you don't need to detect the edges. Instead, you can create a ...
user1118321's user avatar
  • 3,421

Only top scored, non community-wiki answers of a minimum length are eligible