Write partial image data to small file PPM?
Posted: 2012-01-20T07:18:36-07:00
hi
Is it possible to analyse an image, locate the pixel values which are in levels 255 down to 200 in each channel and write them to either a text file with coordinates and pixel value, assume from reading done so far PPM and that has no resolution, just a list of coords and pixel values or image format with no resolution to save memory space, then the corresponding method to recreate an image of correct pixel dimensions displaying only the pixel values in the 255 to 200 range positioned correctly as orginally analysed with either black or white for all other pixels below 200?
May seem a long winded way to get that 255 to 200 range but this is with regard to an image capturing device, looking to capture minimum data needed to device memory and then recreation of that data in a full resolution image frame, (with missing data) later.
Is it possible to analyse an image, locate the pixel values which are in levels 255 down to 200 in each channel and write them to either a text file with coordinates and pixel value, assume from reading done so far PPM and that has no resolution, just a list of coords and pixel values or image format with no resolution to save memory space, then the corresponding method to recreate an image of correct pixel dimensions displaying only the pixel values in the 255 to 200 range positioned correctly as orginally analysed with either black or white for all other pixels below 200?
May seem a long winded way to get that 255 to 200 range but this is with regard to an image capturing device, looking to capture minimum data needed to device memory and then recreation of that data in a full resolution image frame, (with missing data) later.