Loading...

FxDilate4 sur ROI laisse trait sur image

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

FxDilate4 sur ROI laisse trait sur image

Postby tAkAmAkA » Thu Jul 08, 2010 2:21 pm

Bonjour Loïc,

FxDilate4 me laisse un trait noir sur la zone traitée correspondant au coté droit du rectangle.
Ce n'est pas systématique.

Je joins une image commentée
Le code:
Code: Select all
Private Sub cmdDilate4_Click()

Dim nLeft1 As Long, nTop1 As Long, nWidth1 As Long, nHeight1 As Long

Select Case opgTraiter
    Case 1
        subAfficher (opgImage)
        Imaging1.SetNativeImage (oGdViewer.GetNativeImage)
    Case 2
        Imaging1.SetNativeImage (oGdViewer.GetNativeImage)
        Call oGdViewer.GetRectValues(nLeft1, nTop1, nWidth1, nHeight1)
        If nWidth1 = 0 Or nHeight1 = 0 Then
            MsgBox "Faites une sélection dans l'image.", vbExclamation, "ANAsoft"
            Exit Sub
        End If
        Call Imaging1.SetROI(nLeft1, nTop1, nWidth1, nHeight1)
End Select
Imaging1.FxDilate4
oGdViewer.Redraw
If Me.opgTraiter = 2 Then
    Call oGdViewer.SetRectValues(nLeft1, nTop1, nWidth1, nHeight1)
End If
bModifImage = True
Me.recModif.Visible = bModifImage
Me.cmdEnregistrer.Visible = bModifImage
End Sub

Merci de ton attention
Jissé
Attachments
1982_3_3039_NA_1_FxDilate4.tif
tAkAmAkA
 
Posts: 54
Joined: Mon Oct 27, 2008 6:38 pm

Re: FxDilate4 sur ROI laisse trait sur image

Postby Loïc » Tue Jul 13, 2010 3:18 pm

Salut Jissé,

Je me suis fait une bonne centaine d'essai sans trouver le moindre problème.


Il faudrait tester avec la toute dernière version disponible. Si le problème persiste il me faut une procédure reproduisant le problème que je puisse exécuter avec un simple copier coller, et qui intègre les coordonnées de la région à filtrer.

Ex:
Code: Select all
Imaging1.SetNativeImage (GdViewer1.GetNativeImage)
Call Imaging1.SetROI(10, 10, 100, 100)
Imaging1.FxDilate4
GdViewer1.Redraw



A+
Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests

cron