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

Home » Public Forums » archive » Need help with vector processing.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Need help with vector processing. [message #10885] Wed, 11 February 1998 00:00
S Penzes is currently offline  S Penzes
Messages: 4
Registered: February 1998
Junior Member
Hi one and all,
I am looking for a smart solution to a problem that keeps occuring
and that I can't
seem to find a smart solution for.
Bear in mind that the example I am using here is much simplified from
the image
processing I am trying to do. The goal is to find a solution that
minimizes compute time (ie no loops).
Given a vector (lets say vector=[0,0,6,7,8,8,7,0,0,7,8,0,0]) and the
fact that I have a window that is 3 wide, how do I process vector so
that any data that is greater than 5 and stays that way for more than 3
indexes remains and everything else is set to 0.

vector -> process -> [0,0,6,7,8,8,7,0,0,0,0,0,0]

In my case, vector is the processed result generated from a column from
an image and my goal is to remove any spurious signal that isn't at
least N pixels wide.

There has to be a slick way to process vector with shift,>,gt,where,and
etc so that I don't have to iteratively pass a 3 pixels window over
vector using a loop.

Any ideas?

--
Steven Penzes (Steven.nospamPenzes@dres.dnd.ca)
Note: remove "nospam" from Reply-To and .signature
[Message index]
 
Read Message
Previous Topic: IDL: are dynamic arrays supported?
Next Topic: HELP with systime()

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

Current Time: Sat Oct 11 15:16:38 PDT 2025

Total time taken to generate the page: 0.96203 seconds