How to get info about ROI from iTools IIMage? [message #38335] |
Wed, 03 March 2004 15:42  |
mvukovic
Messages: 63 Registered: July 1998
|
Member |
|
|
Hi,
In analyzing an image, I would like to display it using iTools and
draw several rectangular ROI's in it.
I would then like to query the IImage for the location and dimension
of the ROIs. Any clues on how to do that?
Thanks,
Mirko
|
|
|
Re: How to get info about ROI from iTools IIMage? [message #38450 is a reply to message #38335] |
Fri, 05 March 2004 12:34  |
mvukovic
Messages: 63 Registered: July 1998
|
Member |
|
|
mvukovic@taz.telusa.com (Mirko Vukovic) wrote in message news:<d96c8f7c.0403031542.6020b330@posting.google.com>...
> Hi,
>
> In analyzing an image, I would like to display it using iTools and
> draw several rectangular ROI's in it.
>
> I would then like to query the IImage for the location and dimension
> of the ROIs. Any clues on how to do that?
>
> Thanks,
>
> Mirko
Hey Mirko,
I know that some may consider it funny to talk to myself, but for
future reference here is a somewhat unsatisfactory way of extracting
ROI vertices from an iImage:
oSys = _IDLitSys_GetSystem()
oVertices = oSys -> GetByIdentifier('/DATA MANAGER/VERTICES')
fSuccess = oVertices -> GetData(mVertices)
The problem with this method is that if there are multiple VERTICES
objects in the Data Manager, it retrieves only the first one. I could
not figure out how to get the other ones. But this method will have
to do for now.
bye
Mirko
|
|
|