Question

I have a matrix with dimensions 512 x 683 and I'm looking to gamma transform it by raising it to .8 and 1.2 seperately. Obviously you cannot raise nonsquare matrices to powers, so I was wondering how would I go about raising each element of the matrix to the .8th power and the 1.2 power.

Thanks

Was it helpful?

Solution

Element wise:

newMat1 = oldMat.^0.8;

and

newMat2 = oldMat.^1.2;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top