Thanks guys,
But i wrote it in python instead,
and found some way to access the pixel array, it's much faster now
,
you can see the progress bar as it runs.
For an image 2048x1152 it took about 9 seconds (still not as fast as I like it to be but it's usable).
Install in plug-ins folder, (it'll be available under Colors->Auto->Color Correction)
Attachment:
color-correction.zip [1.53 KiB]
Downloaded 228 times
below version allows you select black/white/gray points' colors
Attachment:
color-correction-pick-color.zip [1.6 KiB]
Downloaded 168 times
below version uses luminosity difference to seek out black/white/gray pixels instead of total RGB values to seek.
Attachment:
color-correction-luminosity.zip [1.62 KiB]
Downloaded 166 times
You can get =>
yet another version <= that takes 3 times as long, but because it does detects white point first and then sets levels, detects black point then sets levels, detects gray points then sets levels (trying to simulate the exact steps like in tutorial) It does produce a different result, and it doesn't produce different results if you try run multiple times like earlier versions.