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

Home » Public Forums » archive » Re: Blanking all 5x5 windows with less than X 'on' pixels in them
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: Blanking all 5x5 windows with less than X 'on' pixels in them [message #74548 is a reply to message #74544] Thu, 20 January 2011 12:03 Go to previous messageGo to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On 1/20/11 2:35 PM, Robin Wilson wrote:
> Hi Ben
>
>> Have you looked at MORPH_OPEN? I think it would be a good place to start.
>
> I have investigated this, but I don't think it'll do what I want as it
> will affect the other pixels in the image too. I'm hoping just to
> operate on pixels that have a lot of space around them (for example,
> maybe with a 9x9 window, and only having three pixels turned on). Can
> MORPH_OPEN do this?
>
> Robin
>

Hmmm. So, it isn't just a matter of the size of the speck but also the
amount of white space around it.

Filtering by size isn't such a big issue - you could even use histogram
operating on a labeled version of your image. You could also use
Morph_HitOrMiss for this.

The Morph_TopHat function might also be worth checking out. You can
control the amount of "brim-width" to allow when you specify the
structure.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FSC_contour & NaN
Next Topic: Making a 64 bit DLM

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

Current Time: Thu Oct 09 23:55:14 PDT 2025

Total time taken to generate the page: 0.00250 seconds