Histogram equalization
I want to ask for histogram equalization. First i count histogram:
Second thing is distribution:
But now i should count Look Up Table and apply this LUT at picture. Can anyone help me with this?
Code:
for (i=0; i<width; i++) {
for (j=0; j<height; j++) {
pixelValue = pixels[(j*width + i)];
tablica[pixelValue] += 1;
}
}Second thing is distribution:
Code:
for (int i=0; i<[histogram count]; i++) {
sum += [[histogram objectAtIndex:i] intValue];
[dystrybuanta addObject:[NSNumber numberWithInteger:sum]];
}But now i should count Look Up Table and apply this LUT at picture. Can anyone help me with this?
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Realtime histogram? | TomorrowPlusX | 6 | 3,892 |
Feb 23, 2009 05:24 PM Last Post: TomorrowPlusX |
|

