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

Home » Public Forums » archive » best way to save thousands of ROI objects?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
best way to save thousands of ROI objects? [message #68535] Wed, 04 November 2009 09:07 Go to previous message
j.coenia@gmail.com is currently offline  j.coenia@gmail.com
Messages: 36
Registered: December 2008
Member
I'm writing an interactive ROI tool that could have 1000s of ROIGROUP
objects over many frames of image data. I'd like to save all the ROIs
in one file. Here's all I can think of:

(1) I experimented with just saving one idlgrmodel containing all the
ROIGROUPs, but it got too big to load back into memory after a ~4000
groups, although it was nice to just load this back into my view
without any rearrangement.

(2) I could save a folder with separate ROIGROUP .sav files for each
frame, but that's clunky, since that could result in thousands of
files! One file would be preferable.

(3) I could extract the important ROIGROUP instance data like
vertices, color, linestyle, etc, then somehow save into an ASSOC
structure variable, sort of a substructure of the roigroup self
structure. Many potential problems. I think I'd have to create a
default large array field to hold the vertices, since you can't ASSOC
deep into a structure with data in pointer fields, right?

(4) I could save each ROIGROUP object to a separate variable
corresponding to its frame in one .sav file (roigroup1,
roigroup2, ....) and access randomly. I just thought of this now.
Might also be difficult to load into memory.

(5) If only there was some way to ASSOC objects...

Thanks for any suggestions. JC
[Message index]
 
Read Message
Read Message
Previous Topic: Merge polygons using IDL
Next Topic: Re: Programmatic access to IDL filesystem context

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

Current Time: Wed Oct 08 20:04:44 PDT 2025

Total time taken to generate the page: 0.00152 seconds