Questions tagged [pixels]

23 questions
17
votes
3 answers

Why do we have graphics frameworks like OpenGL and DirectX, when games could just draw pixels directly?

Games and other graphically intensive applications use frameworks like OpenGL and DirectX. Also they require features like pixel shader and DX12. But why would we need all these frameworks and GPU features when we could just draw everything pixel by…
Suici Doga
  • 289
  • 2
  • 7
15
votes
4 answers

How is Anti Aliasing Implemented in Ray Tracing?

After reading a few articles online I can confidently say I am clueless on how Anti-Aliasing works when using Ray Tracing. All I understand is that A Single Pixel/Ray is split into 4 sub-pixels and 4 rays rather than 1. Could somebody please explain…
Arjan Singh
  • 2,463
  • 3
  • 20
  • 37
11
votes
2 answers

Could a hexagonal pixel array store an image more efficiently?

Most computer monitors and televisions have a rectangular array of pixels arranged on a square (or nearly square) lattice. Would a hexagonal lattice give better image quality for the same number of pixels? In other words, would the same amount of…
10
votes
3 answers

What is the optimal radius of gaussian distribution for determining pixel colour?

Using a gaussian distribution of points on an image plane to calculate a pixel value, what radius/standard deviation will give the most information in the final image? Too large a radius gives a blurred image, and too small a radius neglects…
7
votes
2 answers

Estimating real world object distance from photo

I'm not really sure if this is possible but it should be. I currently have a photo of a sphere, whose radius I've measures physically. Knowing the apparent size of the sphere from the photo and all internal camera parameters is it possible to…
Kronephon
  • 243
  • 1
  • 6
6
votes
2 answers

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

For a project dealing with deep semantic labeling of images I need a format that supports arrays of arbitrary length for each pixel of the image. The array is an array of integers. Which image formats support this?
smuseus
  • 61
  • 3
4
votes
2 answers

Difference in pixels between different monitors' sizes

If I have an image of x/y resolution and display it on a monitor, does this mean that between a 15-inch monitor and a 42-inch, the same amount of pixels (x/y) will be displayed, only that each pixel will be of different size? In relation to my…
FLUSHER
  • 141
  • 3
4
votes
1 answer

Pixel packed texture source

I am grabbing video from a web cam using Microsoft Media Foundation. The image data is in YUY2 format. The pixels are packed in a 4:2:2 ratio. The color format is YCbCr. The color data gets repeated 2x. Ex the packed pixel data is: y0 u y1 v Gets…
Johnny Mopp
  • 165
  • 4
3
votes
1 answer

Do we ever consider the size of the pixel to calculate the color in Ray Tracing?

From what I'm reading, it looks like a ray tracer views a pixel as one color and computes that color using the ray starting in the center of that pixel. Yet a pixel has a width and a height. Do we ever use the actual square (now a day pixels are…
Alexis Wilke
  • 201
  • 1
  • 6
3
votes
1 answer

What is a scaling factor of the screen?

I'm reading DXGI flip model article and some parts are not clear: DirectFlip with panel fitters: Your window client region covers the screen, and your swapchain buffers are within some hardware-dependent scaling factor (e.g. 0.25x to 4x) of the…
nikitablack
  • 711
  • 4
  • 15
3
votes
1 answer

human visual: relation of Distance and DPI

I was told that human's visual sharpness is 60 pixels per degree. As such, pixel per inch is approximately given by: PPI = 1/ (Distance * tg((1/60*pi/180) ) Is this formula fully correct? (I saw similar, but slightly different versions). How is…
3
votes
1 answer

Does this type of memory-mapping for a display exist?

Most information about memory mapped displays on the net are about those in which there is essentially a location in main memory for each pixel on the display. A hypothetical 1024 x 512 display would therefore have 524,288 locations each mapped to a…
Cyber99
  • 31
  • 1
2
votes
2 answers

Why do some videos look smoother and others don't on the same monitor

I have a Dell monitor with 60 Hz refresh rate and therefore games playing on it are not very smooth as compared to 120 hz. But when I open videos on YouTube of the same game on the same monitor, some of those videos run extremely smoothly as if it's…
1
vote
0 answers

Which is more important : Texel or Pixel rate?

I would like to know which is the most important ? More particularly in games or for the display of a desk (ex KDE Plasma, Windows 10 ...) ?
Bensuperpc
  • 111
  • 2
1
vote
0 answers

Algorithm for transforming PNG anti-aliasing to smooth paths

I read the pixels of PNG files via libpng and creates an array of alpha channels (showing visible pixels for a monochromatic image). int pixels[height][width]; for( int i=0; i
1
2