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

Home » Public Forums » archive » Re: Scale many regions in one image without using xroi
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: Scale many regions in one image without using xroi [message #81666 is a reply to message #81661] Wed, 10 October 2012 07:03 Go to previous messageGo to previous message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Monday, 8 October 2012 15:12:52 UTC+2, (unknown) wrote:
> Hi,
>

> I've been searching all morning and can't find an answer to a problem
> I'm having:
>
> I have two 2-D arrays which have clusters of 1s in an array of 0s.
> I'm interested these clusters (shapes). Some of the shapes are
> present in both arrays, some are missing from one or the other and in
> array 2 the shapes are too small. I want to scale up the shapes in
> array 2 so that the coincident shapes are the same size in both
> arrays. I can use label_region to find the shapes and calculate a
> correction factor. I just need a way to scale the shapes, presumably
> by growing them from a central point.
>
> Any ideas?

How about using a morphological operation like "dilate"?

http://www.exelisvis.com/docs/DILATE.html

(Wohooo! Finally a way to link to official documentation!)

--
Yngvar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: contour plots on map with Coyote Graphics System in postscript
Next Topic: Re: Help with WV_CWT

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

Current Time: Fri Oct 10 17:01:29 PDT 2025

Total time taken to generate the page: 0.65075 seconds