Project

General

Profile

Anomalie #31

ImMorphoGradient avec voisinage/SE de taille >1

Added by Romaric Audigier over 15 years ago. Updated over 15 years ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
old plone Bugs
Start date:
Due date:
% Done:

50%

Estimated time:

Description

ImMorphoGradient avec voisinage/SE de taille >1
---------------------------------------------------------------------------

Description:
----------------------------------------
Je n'arrive pas à utiliser ImMorphoGradient avec des voisinages supérieurs aux
éléments structurants élémentaires. Pourtant, en passant par ImDilate et
ImErode, ça marche. Est-ce normal? Merci.
---
Ci-dessous le script correspondant avec le message d'erreur:

nl = SquareSE
mySE = HomotheticSE(nl,2)
imout = ImCreateSame(im)
ImDilate(im,mySE,imout)
ImErode(im,mySE,imout)
ImMorphoGradient(im,mySE,imout)

Traceback (most recent call last):
File "<pyshell#103>", line 1, in toplevel
ImMorphoGradient(im,mySE,imout)
ArgumentError: Python argument types in
MorpheePython.ImMorphoGradient(IMorpheeImage, HomotheticSE, IMorpheeImage)
did not match C++ signature:
ImMorphoGradient(class morphee::ImageInterface const * imIn, class
morphee::selement::NeighborList nl, class morphee::ImageInterface * imOut)
---

#2 12/11/2007 09:48 (Tibs)
---------------------------------------------------------------------------
Change: status: "pending" > "accepted"
Comment:
Ok ton bug était passé inaperçu, je l'accepte.
Première explication: c'est un bug d'"interface".
La généricité n'est assurée en général que pour la partie 'template' de Morph-M
(c'est quasiment un totologisme quand on y pense). Ici le problème est que la
fonction ImMorphoGradient n'est pas exportée pour des éléments structurants de
type HomotheticSE.
A corriger donc puisque cela semble utile. -
> C'est un bon exercice pour ceux
qui voudraient se fair la main sur les questions d'interface Morph-M... enfin
moi j'dis ça...

#1 09/11/2007 14:45 (romaric)
---------------------------------------------------------------------------
Change: topic: "" -> "UI"
Change: title: "" -> "ImMorphoGradient avec voisinage/SE de taille >1"
Change: description: "" -> "Je n'arrive pas à utiliser ImMorphoGradient avec des voisinages supérieurs aux éléments structurants élémentaires. Pourtant, en passant par ImDilate et ImErode, ça marche. Est-ce normal? Merci.

---
Ci-dessous le script correspondant avec le message d'erreur:

nl = SquareSE
mySE = HomotheticSE(nl,2)
imout = ImCreateSame(im)
ImDilate(im,mySE,imout)
ImErode(im,mySE,imout)
ImMorphoGradient(im,mySE,imout)

Traceback (most recent call last):
File "<pyshell#103>", line 1, in toplevel
ImMorphoGradient(im,mySE,imout)
ArgumentError: Python argument types in
MorpheePython.ImMorphoGradient(IMorpheeImage, HomotheticSE, IMorpheeImage)
did not match C++ signature:
ImMorphoGradient(class morphee::ImageInterface const * imIn, class morphee::selement::NeighborList nl, class morphee::ImageInterface * imOut)
---"

#1

Updated by Serge Koudoro over 15 years ago

  • Category set to old plone Bugs
  • % Done changed from 0 to 50

Also available in: Atom PDF