ImagePro>Re: Ferret (min) vs. Size (width) Why do these give me differe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ImagePro>Re: Ferret (min) vs. Size (width) Why do these give me different results?
- To: <imagepro-users[at]lists.mediacy.com> (Image-Pro Plus Users Email List)
- Subject: ImagePro>Re: Ferret (min) vs. Size (width) Why do these give me different results?
- From: "Kevin Ryan" <kevin[at]mediacy.com>
- Date: Fri, 21 Dec 2001 11:39:38 -0500
- List-Archive: <http://lists.mediacy.com:80/Lists/imagepro-users/List.html>
- List-Unsubscribe: <mailto:imagepro-users-off@lists.mediacy.com>
- Reply-To: <imagepro-users[at]lists.mediacy.com> (Image-Pro Plus Users Email List)
- Sender: <imagepro-users[at]lists.mediacy.com> (Image-Pro Plus Users Email List)
Minor note: the default number of ferets is 32, with a maximum of 90. This
is set or retrieved using BLBCMD_SETNUMANGLES, as in the following example.
-- Kevin Ryan
kevin@mediacy.com
' First, declare the BlbControl Hail function.
Declare Function BlbControl Lib "HALBLB32.DLL" (ByVal hbl As Integer, ByVal
Command As Integer, ByVal sparam As Integer, ByVal lparam As Long, pparam As
Any) As Long
' These constants are also defined in Hail.Bas, part of the SDK.
' If you include Hail.bas, these constants and the BlbControl definition
will be duplicated.
Const BLBCMD_GETNUMANGLES = 26
Const BLBCMD_SETNUMANGLES = 27
' Set or get the number of ferrets
Function BlbFerret(ferret As Integer, bSet As Integer) As Integer
Dim hbl As Integer
Dim lRet As Long
Dim testResult As Integer
ret = IpBlbGet(GETHBLOB,0,0,hbl)
If bSet = 0 Then
' Obtain the range
lRet = BlbControl(hbl, BLBCMD_GETNUMANGLES, 0, 0, ferret)
Else
' Set the number of ferrets, valid values are 1-90
lRet = BlbControl(hbl, BLBCMD_SETNUMANGLES, ferret, 0, IPNULL)
End If
If lRet <> 0 Then
BlbFerret = lRet
Else
BlbFerret = ferret
End If
End Function
Sub testFerret()
Dim ferCount As Integer
ferCount = 0
Debug.Print BlbFerret(ferCount, 0)
ferCount = 75
Debug.Print BlbFerret(ferCount, 1)
End Sub
> -----Original Message-----
> From: Image-Pro Plus Users Email List
> [mailto:imagepro-users@lists.mediacy.com]On Behalf Of Kevin Ryan
> Sent: Thursday, December 20, 2001 4:41 PM
> To: Image-Pro Plus Users Email List
> Subject: ImagePro>Re: Ferret (min) vs. Size (width) Why do these give me
> different results?
>
>
> Size (width) is the feret along the axis of the equivalent ellipse, while
> Feret (min) is the minimum feret at any angle.
>
> These will, in general, not be identical unless the object is symmetric
> around the major and minor axes. Generally the Feret (min) will
> be smaller -
> however, since the Size (width) causes an additional feret to be
> calculated
> at the minor axis angle (over and above the up to 90 calculated
> in the Feret
> (min) calculation), it may find one _slightly_ smaller.
>
> -- Kevin Ryan
> kevin@mediacy.com
>
> > -----Original Message-----
> > From: Image-Pro Plus Users Email List
> > [mailto:imagepro-users@lists.mediacy.com]On Behalf Of Simons, Nancy
> > Sent: Thursday, December 20, 2001 4:16 PM
> > To: Image-Pro Plus Users Email List
> > Subject: ImagePro>Ferret (min) vs. Size (width) Why do these give me
> > different results?
> >
> >
> > Can someone explain to me why Ferret (min) vs. Size (width)
> don't give the
> > same results?
> > Nancy Simons
> > Molecular Interventions
> > Boston Scientific Corp.
> > One Boston Scientific Place 4A
> > Natick, MA 01760-1537
***********************************************************
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