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

Home » Public Forums » archive » Re: Low pass filter - Problem with kernel
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: Low pass filter - Problem with kernel [message #50534 is a reply to message #50402] Wed, 04 October 2006 02:44 Go to previous message
Vidhya is currently offline  Vidhya
Messages: 6
Registered: October 2006
Junior Member
Dear All,
Sorry for not giving a detailed description of the program. The
following is the program, which tries to apply a low pass filter to an
image of size, 766*374 with 62 bands.

PRO vnoise
filename='image.hdf'
hdfid=hdf_sd_start(filename, /READ)

varid=hdf_sd_select(hdfid, 0)
hdf_sd_getdata, varid, image


varid=hdf_sd_select(hdfid, 1)
hdf_sd_getdata, varid, mask

hdf_sd_end_access, varid


hdf_sd_end, hdfid


column_average=rebin(image, 1, 374, 62)


;applying the log to the average radiance of the image
column_log = alog10(column_average)

ksize = [3,3]


kernel = replicate((1.0/(ksize[0]*ksize[1])), ksize[0], ksize[1])


filtered_image = convol(float(column_log), kernel, /CENTER,
/EDGE_TRUNCATE)

;filtered_image = convol(float(column_log), kernel, /CENTER,
/EDGE_TRUNCATE)
;% CONVOL: Incompatible dimensions for Array and Kernel.
;% Execution halted at: $MAIN$


And this is where I get the error message about the dimensions.

What I am trying to do is to rebin the image column-wise, apply a log
to the average, and then apply the kernel to the image.

Let me know where I go wrong!

Thank you
Vidhya
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: ps file with text
Next Topic: Re: I need a bit of help....Convol and functions

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

Current Time: Sat Oct 11 21:40:00 PDT 2025

Total time taken to generate the page: 0.88147 seconds