4 ms·
Why do you think the mentioned "color-centric" image processing operations deserve a specialized file format, rather than building and using a transient index i
by HelloNurse 10mo ago
Why do you think the mentioned "color-centric" image processing operations deserve a specialized file format, rather than building and using a transient index in memory when it is useful? Do you have some special use case in mind?
Any interactive application, for instance, can be expected to render the image to the screen (repeatedly); any GPU use for texture mapping needs pixels sorted by location, regardless of whether pixel values are palette indices or explicit colours; many image processing tasks, like segmentation and drawing, need efficient access to pixels at arbitrary locations or near already processed locations.
- Yukesh_J 10mo agoThanks for asking, C2PM isn’t meant to replace raster formats it serves as an intermediate format for workflows where users repeatedly operate on color groups (palette swaps, region recoloring, mask generation, etc). In a standard image, every color swap requires rescanning all pixels. In C2PM, the color to pixel index is already stored, so repeated swaps or multi-color operations become O(1) per color instead of O(P) per operation. It’s designed for tools where color groups matter more than spatial order, not for real-time display or GPU textures.