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

Home » Public Forums » archive » Re: Does the ENVI_SVM_DOIT function have memory leak problem?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Does the ENVI_SVM_DOIT function have memory leak problem? [message #59505 is a reply to message #59485] Fri, 28 March 2008 09:34 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
> Pro test
> ori_data_path = 'D:\bhtmref'
> envi_open_file, ori_data_path, r_fid=ori_img_fid
> envi_file_query, ori_img_fid, dims=ori_img_dims, nb=ori_img_nb
> numFeatures = ori_img_nb
> Feature_Subset = indgen(numFeatures)
> Para_C = 100
> Para_gamma = 1/numFeatures

==> will always be 0
Do 1.0/numFeatures

not sure it would have any effect on the memory though...
you can try to add a heap_gc statement every now and then..

Jean


> out_name = 'D:\clsrst'
> envi_restore_rois,'D:\test.roi'
> tr_roi_ids = envi_get_roi_ids(fid=fid)
> help, /memory
> print, '=================='
> ; Call the svm classification doit routine, using the optimized
> parameters
> envi_doit, 'envi_svm_doit', $
> fid=ori_img_fid, pos=Feature_Subset, dims=ori_img_dims, $
> out_name=out_name, roi_ids=tr_roi_ids , $
> penalty=Para_C, kernel_gamma= Para_gamma
> help, /memory
> ; Remove the original image and training ROI IDS
> envi_file_mng, id=ori_img_fid, /remove
> help, /memory
> envi_delete_rois, tr_roi_ids
>
> End
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: emacs, fedora 8, idlwave and IDL7
Next Topic: How to use IDL to write a large geotiff

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

Current Time: Sat Oct 11 22:38:46 PDT 2025

Total time taken to generate the page: 1.60058 seconds