ISET / isetL3

Linear, Local, Learned
3 stars 6 forks source link

l3TrainOLS.smoothKernels introduce visible color artifacts #12

Closed hjiang36 closed 8 years ago

hjiang36 commented 8 years ago

We observed that the smoothKernels function can introduce very obvious artifacts to the images. HJ will debug to figure out the reason and fix it.

Before it is fixed, please avoid it.

HJ

hjiang36 commented 8 years ago

Fixed.

The problem is because we previously used scaling as the adjustment method. When the sum of one channel is close to zero, the scaling factor for that channel could be very large, resulting in very large coefficients (some large positives and negatives).

To avoid this issue, we apply offsets instead of scaling. Hopefully, it could work OK.

HJ