I want to read a 8 bit grayscale bmp file, reconstruct it's pixel matrix, then process it with sobel operator. However program can not construct pixel matrix, it divides the original ...
Is there a way to read a file bit-by-bit? what i want exactly is to read in 11 bits at a time, manipulate the data based on the 11 bits. Note: the 11 is an arbitrary number. That value may be any number 1 to 255. Its more the function i am looking for, not the number of bits. thanks in ...
#include #include #include "stegoHeader.h" void reader(FILE *); int main(int argc, char **argv){ char *p; FILE *fp; char *fname; /*Check to see if we have the proper number of parameters*/ if(argc < 4){ usage(argv[0]); exit(1); } /*assigns the first parameter to fname*/ fname = argv[2]; /*Store our message to be encoded into our file*/ p = argv[1]; /*If the file ...
I'm reading a data file and four of the fields are supposed to be a 32-bit, little-endian, unsigned, integer identifying the number of records in this data file. If I look at the file in my hex editor, I can see that the "Unsigned 32-bit" value of the first of these 4 bytes is 64745. That is the number of ...