[IPOL discuss] Lost sigma parameter in NL-means demo

Miguel Colom Miguel.Colom at cmla.ens-cachan.fr
Tue May 3 16:52:29 CEST 2011


Hi all,
I've noticed that the sigma parameter is lost (reset to 10) when the user
clicks in the image to select the first corner of the subimage, in the
NL-means demo.

This can be avoided with a slight modification of the code in params.html:

<%
selected = {2:'', 5:'', 10:'', 15:'', 20:'', 25:'', 30:'', 35:'', 40:''}
try:
   sigmaSel = int(sigma)
except TypeError:
   sigmaSel = 10
selected[int(sigmaSel)] = 'selected'
%>




More information about the discuss mailing list