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

Home » Public Forums » archive » Mask to ROI
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: Mask to ROI [message #52533 is a reply to message #52405] Mon, 05 February 2007 06:32 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Erik wrote:
> Hi Folks,
>
> A time ago I asked if I could cut a piece out of a ROI. Now I've
> created a mask of the ROI and edited the mask the way I wanted it to.
> This worked good for my analysis results, but I want the user to see
> the cutted ROI so I have to edit the DATA array from the ROI to modify
> the displayed ROI. This leads to the following question;
>
> Is there a way to convert a mask into a ROI Data Array??
>
> For example:
>
> Mask[5,5]
> 00000
> 00100
> 01110
> 00100
> 00000
>
> Needs to become:
> ROIData [ [2,1,0],[3,2,0],[3,3,0],[1,2,0] ]
>
> Please note that the ROI can be drawed when the first coordinate is
> connected with the second and so forth. The centered value in the mask
> should not be saved in the result; I only want the boundary points to
> draw my ROI.
>
> I've tried to figure out a algorithm to trace the border when I got
> the first point, but this takes much time and I wonder if there ain't
> any simpler way to do it...
>
> Help would be really appreciated!!
>


Hi,

Here's a newsgroup thread that might help.

http://tinyurl.com/ytdt35

Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Strange IDL Help probelm 6.3
Next Topic: Re: 'vectorizing functions'

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

Current Time: Wed Oct 08 15:59:45 PDT 2025

Total time taken to generate the page: 0.00193 seconds