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 #81660 is a reply to message #81657] Thu, 11 October 2012 03:31 Go to previous messageGo to previous message
eeaal is currently offline  eeaal
Messages: 4
Registered: October 2012
Junior Member
On Wednesday, October 10, 2012 3:03:59 PM UTC+1, Yngvar Larsen wrote:
> 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

Thanks Yngvar,

I did try dilate but nothing happened; I expect I used it wrong as I didn't really understand it. Cold you give me an example of how it could be used in this case?

Amb
[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 09:37:28 PDT 2025

Total time taken to generate the page: 1.13757 seconds