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
Mask to ROI [message #52405] Fri, 02 February 2007 06:28 Go to previous message
Erik[1] is currently offline  Erik[1]
Messages: 23
Registered: December 2006
Junior Member
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!!
[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 13:42:08 PDT 2025

Total time taken to generate the page: 0.00422 seconds