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

Home » Public Forums » archive » defining regions of interest in widget programs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
defining regions of interest in widget programs [message #44346] Fri, 03 June 2005 10:39
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Hi all,

It's the first time I'm trying to define and use ROIs, so I have the
basic question of what's the best way to do it. Basically, I want to
allow the user to define a ROI in a widget program, be able to display
it with some kind of color shading (possibly the original image shining
through) and manipulate the image pixels within the ROI. I checked the
IDL help and the newsgroup archive and drew the following conclusions
(without doing much testing yet):

1. DEFROI is not for widget programs.

2. CW_DEFROI is meant to do what I want, but is kind of clunky.
According to the source code, it's been written 1993 and never updated.

3. XROI would actually work well, but (1) opens the image in its own
window, while I would prefer to define the ROI in my existing draw
widget, and (2) offers tons of options which will confuse the user
(statistics, histogram, multiple ROIs, even loading a new image) and
which I would preferably not offer to him.

4. David recommends to write your own code to define ROIs. As I
understand it, I would include some code to draw a freehand or polygon
path and then use POLYFILLV to get all indices of the ROI.

I'd appreciate any comments and recommendations. Does anyone has
home-made code to do the job?

Thanks,
Benjamin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Georeferencing info in tiff files?
Next Topic: goetiff reading routine for idl 5.1

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

Current Time: Tue Mar 31 00:54:52 PDT 2026

Total time taken to generate the page: 0.16182 seconds