ImagePro>Re: handle to count structure


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ImagePro>Re: handle to count structure



Title: RE: ImagePro>handle to count structure

The blob handle is just that, a handle. It's not a pointer or anything you can manipulate by itself. All the blob functions in the HAIL library (Blb prefix - see SDK) need to be passed that handle in order to function. Most of the blob functionality contained in the HAIL library is also available in IPP through the interface, and therefore as macro calls. There are a few exceptions which sometimes make it necessary to call a HAIL function directly. I have written a few macros like that. Here is one example below that creates an elliptical shaped AOI based on an object's equivalent ellipse. One word of warning though: Since you're calling low level libraries that could change with new versions of IPP, your macros may not work in the future.

' elliptical AOI from object
Declare Function BlbGetObjectEllipse _
        Lib "HALBLB32.DLL" (ByVal blobhandle%, _
        ByVal Obj%, Pts As POINTAPI, _
        ByVal maxPts%) As Integer

Sub ObjectToEllipseAoi()
        Dim hblob%, numpts%
        ' get blob environment handle
        ret = IpBlbGet(GETHBLOB, 0, 0, hblob)
        If hblob < 1 Then Exit Sub
        ' elliptical outline of object #1
        ' (2nd argument = object number - 1)
        numpts = BlbGetObjectEllipse(hblob, 0, Pts(0), 2000)
        ' create AOI
    ret = IpAoiCreateIrregular(Pts(0), numpts)
End Sub

Jean-Paul Martin

-----Original Message-----
From: erik.mejdal@risoe.dk [mailto:erik.mejdal@risoe.dk]
Sent: Thursday, November 15, 2001 10:28 AM
To: imagepro-users@lists.mediacy.com
Subject: ImagePro>handle to count structure


Hi all

I read in the documentation for IpBlbGet that you can use the parameter
GETHBLOB to get the handle to the active count structure.

Is there any way that you can use this handle to work directly with the
count structure? And how does the count structure actually look like? I have
some experience wiht the IPP SDK, do you need to go to this level to use the
count structure or can you do it directly within IP basic?

Does any body know what the IpBlbGet(GETHBLOB,0,0,outval) is used for?

Regards
Erik Lauridsen
Risoe National Laboratory

***********************************************************
Need an Image-Pro macro or driver? Find it at http://www.Solutions-Zone.com
Got an Image-Pro macro or driver? Add it to http://www.Solutions-Zone.com
***********************************************************

This message is sent to you because you are subscribed to <imagepro-users@lists.mediacy.com>.
To unsubscribe, email to: <imagepro-users-off@lists.mediacy.com>
To switch to the DIGEST mode, email to <imagepro-users-digest@lists.mediacy.com>
To switch to the INDEX mode, email to <imagepro-users-index@lists.mediacy.com>
Send administrative queries to  <imagepro-users-request@lists.mediacy.com>
To subscribe or unsubscribe visit http://www.solutions-zone.com/ipednld/subscriber.asp




Search this Archive