comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » gauss_smooth with integers
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: gauss_smooth with integers [message #88881 is a reply to message #88878] Tue, 01 July 2014 03:04 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
Hi,

if you check the code from gauss_smooth you can see where the problem
occurs. Gauss_smooth generates internally a normalized kernel and then
fixes it to integer.

Based on this code you can do your own cuisine using convol:

a=intarr(800,800)
a[*,400]=1000 & a[400,*]=1000

; this call is necessary to compile "create_gaussian"
tvscl, gauss_smooth(a, 20)

; parameters are arbitrary, be careful
k = FIX(create_gaussian(20, 100, 2) * 100)
tvscl, convol(a, k, total(k))

Cheers,

Fabien
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: trying to pass parameter
Next Topic: CPU usage

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:20:03 PDT 2025

Total time taken to generate the page: 0.01215 seconds