Questions tagged [bits-per-pixel]

12 questions
12
votes
6 answers

How to convert an 8-bit OpenCV IplImage* to a 32-bit IplImage*?

I need to convert an 8-bit IplImage to a 32-bits IplImage. Using documentation from all over the web I've tried the following things: // general code img2 = cvCreateImage(cvSize(img->width, img->height), 32, 3); int height = img->height; int…
sgielen
  • 349
  • 1
  • 5
  • 15
5
votes
3 answers

Optimizing Per Pixel Blending on Android Bitmaps

I am trying to apply blend filters on two images (in this case HardLight). HardLight is not supported in the base Android library, so, I am doing it by hand on each pixel. The first run is working, but the speed is less than stellar. Generating a…
MarkPowell
  • 16,482
  • 7
  • 61
  • 77
3
votes
1 answer

WPF pixel shader with HDR (16-bit) input?

I'm trying to build an image viewer for 16-bit PNG images with WPF. My idea was to load the images with PngBitmapDecoder, then put them into an Image control, and control the brightness/contrast with a pixel shader. However, I noticed that the…
chris166
  • 4,769
  • 4
  • 24
  • 25
2
votes
4 answers

How does PDF's BitsPerComponent translate to Bits Per Pixel for images?

My goal is to convert a PDF into an image (specifically in TIFF). There is a PDF property called BitsPerComponent And According to description on the page, This property can take the value 1, 2, 4, 8 or 16. Other values are not supported in the…
dance2die
  • 35,807
  • 39
  • 131
  • 194
1
vote
1 answer

Can image have different bits per pixel and different bit dept

I have a 24-bit dept png image. Image details Size : 4663KB Witdh: 1920 pixels Height: 1080 pixels Bit Dept: 24 bit I calculated its bits per second using the formula bpp = Scomp / NPixels said by Pedro Miguel Moreira from…
1
vote
1 answer

Pixel value for 16 bits grayscale images

I know this is mostly an image question not code, but I'll give it a shot here. So first I have a 8bits/pixel grayscale image(bitmap). Which means that each pixel is represented into 1 byte. This means that the the pixel value is the byte value.…
CiucaS
  • 2,010
  • 5
  • 36
  • 63
1
vote
1 answer

strange SDL memory usage depending on bits per pixel

I have a very simple SDL program that uses only 1MB of memory with 32 bits per pixel, 2.4MB with 24 bits per pixel, 1.9MB with 16 bits per pixel, and 1.4MB with 8 bits per pixel. what is with this strange memory usage? why does the most bits per…
TheFuzz
  • 2,607
  • 6
  • 29
  • 48
1
vote
2 answers

changing bits per pixel in MATLAB

How does one change the bits per pixel of an image loaded into MATLAB? I use the file dialog and the imread functions to load the image into a matrix. i just need to change that image's bits per pixel. Giving the user that ability to choose anywhere…
Umdoobby
  • 105
  • 1
  • 5
  • 11
1
vote
1 answer

How to determine what colour depth application is using?

If you set BitsPerPixel="32" in WMAppManifest.xml file you will have 32 bits colour depth in application. The thing is that low cost devices are always using 16 bits, so images bacome choppy. I want to determine what value of BitsPerPixel is used…
giacoder
  • 980
  • 8
  • 21
0
votes
0 answers

How to calculate Bits Per Pixel (BPP) in Autoencoder latent space representation?

I am a beginner in image compression domain using Deep learning Autoencoders. I understood the concept of Bits per pixel of an image but I confused how to calculate it while performing image compression using autoencoders. I have read a lot of…
0
votes
1 answer

4 bit per pixel image from binary file in Python with Numpy and CV2?

Suppose I want to represent binary data as a black and white image, with only sixteen distinct levels for the gray values for each pixel so that each two adjacent pixels (lengthwise) represent a single byte. How can I do this? If, for example, I use…
joejoejoejoe4
  • 1,206
  • 1
  • 18
  • 38
0
votes
2 answers

What is the difference between 'bitsperpixel' and 'depth' in SFML?

SFML allows the programmer to specify a 'bitsperpixel' value using sf::VideoMode. It also allows the programmer to specify a 'depth' value using sf::ContextSettings. What is the difference between these things, or are they the same?
FreelanceConsultant
  • 13,167
  • 27
  • 115
  • 225