Storing and combining freeline ROIs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Storing and combining freeline ROIs

lechristophe
I posted similar questions last week but no luck - no response.

So I'll try to reformulate and simplify. This applies to macro programming :

1) how to store a "freeline" ROI in a variable = get the ROI coordinates
and store them in an array (problems : getting the coordinates, knowing
the size of the array needed)

2) if 1) is not possible, how to store it on a temporary file ?

3) related to this : how is a freeline ROI stored by the ROI manager ?
(if I open a saved freeline ROI with notepad, I get a cryptic string.
What does it mean ?)
Reply | Threaded
Open this post in threaded view
|

Re: Storing and combining freeline ROIs

Gabriel Landini
On Monday 22 January 2007 17:19, Christophe Leterrier wrote:
> I posted similar questions last week but no luck - no response.
>
> So I'll try to reformulate and simplify. This applies to macro programming
> :
>
> 1) how to store a "freeline" ROI in a variable = get the ROI coordinates
> and store them in an array (problems : getting the coordinates, knowing
> the size of the array needed)

2 ways:
1) store the array in a txt file, then read the whole array first to get the
number of lines, then dimension the array and read it again to load the lines
coordinates.

2) use the Java language Vector instead of an array. Vectors can be resized.

Cheers,

G.