Yeah it was the padding for each row that introduces that effect. Just have to skip the padding; I used fseek but a better way might exist.
Type: Posts; User: dawatson
Yeah it was the padding for each row that introduces that effect. Just have to skip the padding; I used fseek but a better way might exist.
I'm not using the header. The IDE just uses pixel values to display data. I've had a play with some parameters and it's looking like the number of bytes used for each pixel affects the output. The...
Hey guys
I was wondering if anyone has come across "streaky" artefacts whilst displaying .bmp images? I've included a sample of the image being displayed through an IDE and also being played...
The masks I'm referring to might actually be the DIB file header, ma bad!
Hey guys, I've got the image data I need, and the locations where they reside. I was just wondering if anyone knows how to use the RGB masks to interpret the pixel values? The images are actually...
Movi list! Cheers! I've been going through the specs and they all detail the layout, but none simply state where the actual data is. I'm not looking for anything fancy to read the videos and I've...
Sorry. I'm wondering if anyone knows off-hand where the data for the frames will reside? I know that for normal images you can skip the preamble and just read values if you want. So I was wondering...
Hey guys
I need to do some image processing on an uncompressed (raw) avi video on a DSP, so I'm trying to get to the actual images that constitute the video; it's a greyscale video at 15fps. I was...
Just noticed what was actually fundamentally wrong with my code. fgetc returns an int and I was storing it in a char, that's bad! So I changed the variable to store the return to an int (or unsigned...
Ah! Nice! I plan to just read the image width and height and work out the padding needed, then jump to pixel array and read each row (according to the padding). So so-mething like:
widthData = fp +...
Hey tabstop
I've just tested what you recommended and it works! I had to change my reading code to:
FILE *fp = fopen("test.bmp", "rb");
unsigned char c;
...
c = fgetc(fp);
...
printf("%d...
I certainly was. I totally overlooked that aspect. I was changing between %c, %d, and %X to view values. I never thought about how I was printing it, thanks very much! I can't test it right now but...
Ah! So the actual row datum are 55, 40, AW, and 80. With the 0 lines each being one byte of padding, bringing the width to 4 bytes (2 for data and 2 for padding). And the FFFFFF doesn't technically...
Hi guys
Can anyone explain the following image data for a 10x10 bitmap of black and white pixels? Line numbers are just to keep track of output and values are in hex. I know that 55, 40, AA, and 80...