Hello guys,

I am trying to write a fast version ofthe followingmatrix operation:

for all row

for all col

if(matrix(row, col) < 0.04045){

matrix(row, col) /= 12.92;

}else{

matrix(row, col) = pow(((matrix(row, col)+0.055)/1.055), 2.4);

} // if

} // for col

} // for row

Can this be vectorized?? Thanks in advance for any suggestions.

Alex