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

Home » Public Forums » archive » object oriented dilemma
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
object oriented dilemma [message #21927] Mon, 09 October 2000 00:00 Go to previous message
Jason Li is currently offline  Jason Li
Messages: 7
Registered: April 1999
Junior Member
Dear fellow IDL lovers,

If I want to write an image processing software using OOP method, I would
normally define a structure in __define module:

PRO myProgram__define
struct = {imagePointer:Ptr_New()}
END

Traditionally, a pointer is used to take care of variable image size. Then
load an image to self.imagePointer in the myProgram__init module.

hugeImage = bytarr(huge, huge)
self.imagePointer = Ptr_New(hugeImage, /no_copy)


Now in my METHOD modules, I have to perform an operation on line by line
basis. I don't know how to get a line data out of this self.imagePointer
without making a copy (dereferencing) of it first. My image size is rather
large. I don't how to be more memory efficient.

Question: What is the solution to this?


thanks

Jason
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cylindrical Equidistant.
Next Topic: IDL 5.4. Neato.

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

Current Time: Wed Oct 08 19:15:15 PDT 2025

Total time taken to generate the page: 0.00599 seconds