Azzera filtri
Azzera filtri

how to gamma transform a matrix cancel inf

2 visualizzazioni (ultimi 30 giorni)
Tony il 14 Mag 2014
Risposto: Walter Roberson il 14 Mag 2014
I would like to know if its possible to use the transformation gamma on a matrix of images directly. Problem is with the eigen function. I have to change the format to a double i did something like this
for i=1:M
dbx=[dbx temp];
gammaimage= gamma(dbx(:,i));
ddbx=[ddbx gammaimage];
i am using the eigen function eig() and get
Error using eig
Input to EIG must not contain NaN or Inf.
not sure how to go about this. Will i have to abandon the idea of using gamma transformation?

Risposte (1)

Walter Roberson
Walter Roberson il 14 Mag 2014
gamma() is the Gamma function, the extension of the factorial function. gamma(171) = factorial(170) is your limit before you hit infinity.
I would suggest that you are looking for Gamma Correction rather than gamma()

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by