Questions tagged [bpp]
21 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
6
votes
2 answers
Reduce bit-depth of PNG files from the command line
What command or series of commands could I execute from the CLI to recursively traverse a directory tree and reduce the bit-depth of all PNG files within that tree from 24bpp to 16bpp? Commands should preserve the alpha layer and should not increase…

teabot
- 15,358
- 11
- 64
- 79
4
votes
4 answers
Losing image quality in c# using Image class (reduces amount of colors)
I have a c# program that opens a .tif image and later offers the option to save it. However, there is always a drop in quality when saving the image.
(EDIT:I passed some parameters while saving the image so that the quality is at 100 % and there is…

EdwinG
- 213
- 1
- 5
- 13
3
votes
0 answers
Create a 1bpp (bit per pixel) image in OpenCV with C++
I am trying to create a 1bpp image (1 bit per pixel) mask in C++ for a project, however I am stuck on how I can do this with OpenCV?
The code I am trying with is:
int WIDTH=640; int HEIGHT=480;
Mat mask = Mat::zeros( cv::Size( WIDTH, HEIGHT ),…

Jaysinh Sagar
- 33
- 1
- 4
3
votes
0 answers
sdl surface where bpp = 1
6/4/14
I need to (if possible) create a surface in SDL 1.2 where the bpp = 1. bpp is Bits Per Pixel.
I'm working in 100% black and white, the 'surface' size is so ridiculously large my physical memory is bottle-necking me.
I have 4GB of ram, and the…

Rivin
- 27
- 3
2
votes
1 answer
32 bit depth jpg images problem in IE when referenced locally
We have an webbapplication that takes an image that will be uploaded and resized.
The resize-library we used saved all pictures with 32-bit depth whatever the depth was before.
We have an online client that can view the pictures via an html-file and…

Stefan
- 11,423
- 8
- 50
- 75
2
votes
2 answers
Android: Save Bitmap object as a bmp (1bpp) file format
Based on this question asked by @ben75: Android : save a Bitmap to bmp file format
My question now is: How can I have a BMP image with the depth of 1 bit per pixel (Black & White)?

Ricardo Sousa
- 41
- 1
- 5
2
votes
1 answer
How to programmatically determine bpp and pixel color format of android screen?
I am trying to stream compressed raw framebuffer data to my Client application on the PC, from my Server service on Android. On the PC I want to display this raw data as streamed video in my Client's view, giving real-time view of the Android…

piyush-2450
- 51
- 1
- 10
1
vote
0 answers
gcc compiling errors using macOS BigSur M1 chip
I recently switched from Windows to mac and bravely took the new MacBook with macOS BigSur and M1 chip. I'm trying to install BPP (https://github.com/bpp/bpp) following the program's installation guide, but run into problems when trying to compile…

Merlin
- 11
- 2
1
vote
3 answers
How to convert a byte array of 19200 bytes in size where each byte represents 4 pixels (2 bits per pixel) to a bitmap arranged as 320x240 characters
I am communicating with an instrument (remote controlling it) and
one of the things I need to do is to draw the instrument screen.
In order to get the screen I issue a command and the instrument
replies with an array of bytes that represents the…

Klinger
- 4,900
- 1
- 30
- 35
1
vote
1 answer
Including Rcpp in a Qt project results in error affecting different included library
I'm making a static library with Qt Creator, this library will be used in a larger GUI based application. I've used Rcpp before but with R as my starting point - so moving R data to C++ functions to do stuff and get the result and I'm used to doing…

SJWard
- 3,629
- 5
- 39
- 54
0
votes
2 answers
How can I compress jpeg image with compression rate 4 bpp or less?
I am trying to compress my .jpeg image in Photoshop.
WHat is the best way to do this?
I am now calculating the bpp taking the image size in kb, calculating how many bits that is. Then I take the image size in pixel*pixel to get the amount of pixels…

kakka47
- 3,479
- 8
- 44
- 52
0
votes
1 answer
How to generate a for loop to cat a command?
I need to run a program called Bppancestor, in order to do so you use:
bppancestor param="configuration_file"
I need to run the program per all the .conf files inside a directory and I thought that a for loop could help.
I tried the following:
for…

Alex galvez morante
- 127
- 7
0
votes
1 answer
Running multiple config files with Bppancestor
I need to run Bppancestor with multiple config files, I have tried different approaches but none of them worked. I have around 150 files, so doing it one by one is not an efficient solution.
The syntax to run bppancestor is the following…

Alex galvez morante
- 127
- 7
0
votes
1 answer
Why is the bpp information at 0x1C in this .bmp image wrong?
Address 1D indicates the image is eight bits per pixel, but it isn't, each pixel is represented by 3 bytes (24 bits).
At first, I thought photoshop did this in error, but I found that this format was used for all greyscale images.
Instead of using…

superlazyname
- 265
- 3
- 7
- 17