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

Jean-Michel Morel morel at cmla.ens-cachan.fr
Tue May 3 16:54:03 CEST 2011


Thanks, it is important to apply this change to ALL denoising demos.
Best, JM


Miguel Colom a écrit :
> 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'
> %>
> 
> 
> _______________________________________________
> discuss mailing list
> discuss at list.ipol.im
> http://tools.ipol.im/mailman/listinfo/discuss
> 


More information about the discuss mailing list