[ / / / / / / / / / / / / / ] [ dir / hkpol / leftpol / magali / sapphic / sw / trap / vg / vichan ]

/qresearch/ - Q Research Board

Research and discussion about Q's crumbs
Name
Email
Subject
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 16 MB.
Max image dimensions are 15000 x 15000.
You may upload 5 per post.


First time on 8chan? First time on /QResearch/? Click here before posting, newfag.


File: b530f537832d0d4⋯.png (3.8 MB, 1773x1280, 1773:1280, magnitude_gamma_2.2.png)

c016ec No.1751018

The best way to brighten any image without destroying it, is gamma up the magnitude.

The traditional methods of brightening ie photoshop, are gain & gamma, gain/brightness will blow out the image and clip it, gamma up will wash out and desaturate the image.

A better method is to seperate the color component from the "energy" (magnitude) of the pixels and gamma the "energy" up, then re-insert it into the image.

Consider the image rgb as a vector rgb = xyz, scaling the magnitude will not change the angle of the vector, or in the image's case the relationship of r,g,b to each other., like this:

magnitude = sqrt(r*r + g*g + b*b);

r_tmp = r/mag;

g_tmp = g/mag;

b_tmp = b/mag;

mag_tmp = powf(magnitude, 1.0/gamma);

r = r*mag_tmp;

g = g*mag_tmp;

b = b*mag_tmp;

return r,g,b;

here's my method vs traditional methods:

510b0b No.1759216

bump

this is now a forensic general




[Return][Go to top][Catalog][Nerve Center][Cancer][Post a Reply]
[]
[ / / / / / / / / / / / / / ] [ dir / hkpol / leftpol / magali / sapphic / sw / trap / vg / vichan ]