IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

MFC Discussion :

traitement image cvimage


Sujet :

MFC

  1. #1
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut traitement image IMG
    salut

    Avec visual 6 je recupère des image d'une camera. j'utilise commonvision

    L'image recupéré est un object cvimage.
    Est ce que quelqu'un connait se type d'objet car pour l'affichage ca marche, mais je n'arrive pas a récupéré ou a voir comme faire pour effectué un traitement dessus.
    Car il me faidrais avoir droit a accédé ou a copié les données ...


    Comment puis je faire ? En gros je pense (si c'est pas possible autrement récupé les donnée dans un table de double !!! mais comment qu'on fait ?)

    Merci

  2. #2
    Membre éprouvé
    Avatar de Gabrielly
    Inscrit en
    Juin 2004
    Messages
    722
    Détails du profil
    Informations forums :
    Inscription : Juin 2004
    Messages : 722
    Points : 1 128
    Points
    1 128
    Par défaut
    Cette classe n'a-t-elle pas de fonctions ou données membres?

  3. #3
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    si mais rien ne m'inspire la dedans. Je ne vois pas exactement ou cela pourrait etre.

    les prototype sont :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    See also:
    CVImageGrey, CVImageRGB24, CVImageRGBFloat
    RCSfile
    CVImage.h,v 
    Date
    2004/02/08 23:47:39 
    Revision
    1.1.1.1 
    Author
    mikeellison 
     
    Definition at line 111 of file CVImage.h.
     
    Public Types
    enum CVIMAGE_TYPE { 
      CVIMAGE_DEFAULT = CVIMAGETYPE_DEFAULT, 
      CVIMAGE_RGB24 = CVIMAGETYPE_RGB24, 
      CVIMAGE_RGBFLOAT = CVIMAGETYPE_RGBFLOAT, 
      CVIMAGE_GREY = CVIMAGETYPE_GREY 
    } 
    Public Member Functions
    virtual int GetNumChannels () const=0 
    virtual int GetBytesPerPixel () const=0 
    virtual CVIMAGE_TYPE GetImageType () const=0 
    virtual const char * GetPNMExtension () const=0 
    virtual char GetPNMMagicVal () const=0 
    virtual CVRES GetMaxPixelValue (float &maxValue) const=0 
    virtual CVRES GetPixel (int x, int y, float &r, float &g, float &b) const=0 
    virtual CVRES SetPixel (int x, int y, float r, float g, float b)=0 
    CVRES Clear () 
    CVRES SetSubPosition (int newXOffset, int newYOffset, int newWidth, int newHeight) 
    unsigned char * GetRawDataPtr () const 
    int XOffsetRel () const 
    int YOffsetRel () const 
    int XOffsetAbs () const 
    int YOffsetAbs () const 
    int AbsWidth () const 
    int AbsHeight () const 
    int Width () const 
    int Height () const 
    int Size () const 
    int AbsSize () const 
    bool IsImageRoot () const 
    unsigned long AddRef () 
    unsigned long DecRef () 
    Static Public Member Functions
    CVRES CreateImage (CVIMAGE_TYPE type, CVImage *&image, int width, int height, bool init=true) 
    CVRES ReleaseImage (CVImage *&image) 
    CVRES CreateCompatible (const CVImage *srcImg, CVImage *&dstImg, bool init=true) 
    CVRES CreateCompatible (const CVImage *srcImg, CVImage *&dstImg, int width, int height, bool init=true) 
    CVRES CreateSub (const CVImage *orgImg, CVImage *&dstImg, int xOffset, int yOffset, int width, int height) 
    CVRES CopyImage (const CVImage *srcImg, CVImage *&dstImg) 
    CVRES CopyImage (const CVImage *srcImg, CVImage *&dstImg, int xOffset, int yOffset, int width, int height) 
    CVRES CreateFromWin32Bmp (CVIMAGE_TYPE imageType, CVImage *&dstImage, const BITMAPINFOHEADER *bmih, const unsigned char *data) 
    bool IsBigEndianMachine () 
    CVRES Load (const char *filename, CVImage *&newImage) 
    CVRES Save (const char *filename, const CVImage *outputImage, bool overwrite=true) 
    Protected Member Functions
    virtual CVRES SetFromWin32Bmp (const BITMAPINFOHEADER *bmih, const unsigned char *data) 
    CVImage () 
    virtual ~CVImage () 
    CVImage & operator= (const CVImage &img) 
    CVRES Create (int width, int height, bool init) 
    template<class PixelTypeT> CVRES GetMaxPixel (PixelTypeT &maxVal) const 
    Static Protected Member Functions
    CVRES ReadNonCommentLine (CVFile *file, char *buffer, int maxBufLen) 
    Protected Attributes
    int fWidth 
    int fHeight 
    unsigned char * fData 
    int fXOffset 
    int fYOffset 
    bool fOwnData 
    unsigned long fRefCount 
    CVImage * fParentImage
    je sais pas si quelque chose vous inspire !!!

  4. #4
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    Bon en fait j'ai pas toute ces methode.

  5. #5
    Membre expert
    Avatar de hiko-seijuro
    Profil pro
    Inscrit en
    Mai 2004
    Messages
    2 011
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Mai 2004
    Messages : 2 011
    Points : 3 065
    Points
    3 065
    Par défaut
    tu veux quoi exactement car ta question je la comprends pas :s

    tu effectuer des traitements sur ton image ? tu veux récupérer les donnée ?
    Hiko-seijuro

    n'cha - hoyoyo gang

    espace perso : http://hiko-seijuro.developpez.com
    dernier tuto : Introduction à l'éditeur de texte Emacs sous linux
    consulter les faqs : http://www.developpez.com/faq
    PAS DE QUESTIONS TECHNIQUES PAR MP OU MAIL

  6. #6
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    Oui en fait je voulais récupéré les données qu'il y avais dans l'objet CCVImage. Mais en fait j'ai avancé.

    Car j'ai compris que

    CCVImage est un objet qui dirige vers un fichier et qui gère l'acquisition.
    IMG est un objet qui gère les image (mais sur ca j'ai pas d'info)
    CCVDisplay est un object qui gère l'affichage et des piti truc en plus.


    Donc en fait je cherchais pas dans la bonne classe. Je travaille a présent sur la class IMG (si quelqu'un connait) et je voudrais récupéré un patie de l'image.
    J'ai déja fais ca :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    	m_Img = (IMG) m_cvImg.GetImage();
     
    	m_Img_Modif = m_Img;
     
     
                 /* je travaille ici */
     
     
    	m_cvDisp_Modif.SetImage ((long) m_Img_Modif);
     
    	m_cvDisp.Refresh();
    	m_cvDisp_Modif.Refresh();
    mais la le ne connait pas TArea, et je ne sais pas comment arrivé a remettre les donné dans une (IMG) mais ca je pense qu'un cast sufira ? Non

    Qu'est ce que je fais ? En plus j'ai un doute sur ce que fais TArea (c'est pas juste une sorte de marsque ?)

  7. #7
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    Personne connait la classe IMG ?

    Car sur le net je trouve rien sur elle !!!!
    Et TArea c'est quoi exactement ???

    Merci

  8. #8
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    J'ai trouvé sur le forum des idée sur SDL

    Mais est ce que ca me permettra de récupéré une sous image et d'y faire des traitement personnel dessus.

    Par récupéré une sous image, j'entend copié une partie de cette image dans une autre.
    Par traitement personel, j'entend par exemple faire une dérivé des lignes, des convolutions.

    A ce niveau, il serait peux etre interessant de faire passer l'image en matrice.
    Est ce que la conversion entre image et matrice est facile, et qu'est ce que j'utilise comme type ? Un simple int toto[][] ?

    Merci

  9. #9
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    Personne s'y connait en image?


    Please HELP

  10. #10
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    Est ce que quelqu'un aurait un lien vers un site qui liste beaucoup de class car j'ai du mal a trouvé avec le mot clé IMG (car ca apparait dans le code de tout les site web !!! )

    un truc du type doxygen ou je ne sais quoi !!!


    Merci

  11. #11
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    Meme pour avoir des liste de classe il n'y a personne ...

    Je commence a me sentir seul la ....
    Ca commence a resembler a un blog ce sujet !!!

    Bon ben tant pis merci quant meme.

  12. #12
    Membre éprouvé
    Avatar de Gabrielly
    Inscrit en
    Juin 2004
    Messages
    722
    Détails du profil
    Informations forums :
    Inscription : Juin 2004
    Messages : 722
    Points : 1 128
    Points
    1 128
    Par défaut
    Allo, ne t'en vas pas comme ça.

    Est ce que tu as la documentation sur ta classe CvImage.
    Je crois que ta solution est dans l'étude des fonctions membres de ta classe. Moi par exemple, lorsque je ne connais pas une classe. Je prend mon temps d'inspecter la doc sur chacune des fonctions membres et de voir les samples.
    Je vois des CopyImage(), des Load() des Save() des CreateCompatible().
    Mais la solution se trouve en face de toi.
    Par exemple avec la signature suivante
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    CVRES CopyImage (const CVImage *srcImg, CVImage *&dstImg, int xOffset, int yOffset, int width, int height)
    Je vois qu'on peut copier une porçion de l'image source dans l'image destination et travaillé enfin dessus.

    Ta classe CVImage resemble beaucoup à la classe CImage. Si tu n'as aucune doc alors jette un coup d'oeil dans l'MSDN sur CImage afin de t'inspirer.

    La prog ce n'est pas seulement accouché du code, c'est aussi faire des recherches.

    Allez courage.

  13. #13
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    Merci

    Je vient de tombé sur ca :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    /*************************************************************
                       STEMMER IMAGING GmbH                       
    --------------------------------------------------------------
     
      Filename    : icvcimg.h
      Date        : 12.05.97 15:35:35
      Description : 
      Created by  : Martin Kersting
      Revision    : 1.1
      Revision    : 2.1  Port for CV by RS
     
    *************************************************************/
     
    #ifdef __cplusplus
      #define IMPORT(t) extern "C" t __stdcall  
    #else
      #define IMPORT(t) t __stdcall
    #endif
     
    #ifndef CVCIMAGE_INCLUDE 
      #define CVCIMAGE_INCLUDE
     
     
      // CVC object types
      typedef void *IMG;
      typedef void *OBJ;
      typedef void *PIXELLIST;
      typedef void **PPVOID;
     
      // CVC license info
      #define LI_NOLICENSE         0
      #define LI_COMMONVISIONBLOX  1
      #define LI_CVC               2
      #define LI_VISIONBLOX        3
      #define LI_MINOS             4
      #define LI_HARDWARE          5
     
      // histogramms and normalization
      enum TNormalizeMode
      { 
        Normalize_MeanVariance    = 0,
        Normalize_MinMax          = 1
      };
     
      typedef char    TGray8Table [256]; 
      typedef short   TGray16Table[256];  
      typedef long    TGray32Table[256]; 
      typedef double  TGray64Table[256];    
      typedef long    THistogram  [256]; 
     
      // Image Scan Callbacks
      typedef long ( __stdcall *TFLine)       (void * pPrivate, long LinesToDo);
      typedef long ( __stdcall *TFPixelUnary) (void * pPrivate, void *pPixel, long x, long y);
      typedef long ( __stdcall *TFPixelBinary)(void * pPrivate, void *pPixel1, void *pPixel2, long x, long y);
      typedef void ( __stdcall *TFNonlinear)  (void * pPrivate, double& X, double& Y);
     
      // transformation matrix
      typedef struct  
      {
        double A11;
        double A12;
        double A21;
        double A22;
      } TMatrix;
     
      // coordinate system
      typedef struct  
      {
        double OrgX;
        double OrgY;
        TMatrix Matrix;
      } TCoordinateMap;
     
      typedef TCoordinateMap *LPCOORDINATEMAP;
     
      // is the equivalent of the Windows TRect with double precision scanlines
      typedef struct  
      {
        double Left;
        double Top;
        double Right;
        double Bottom;
      } TDRect;
     
      // general area
      typedef struct  
      {
        double X0;
        double Y0;
        double X1;
        double Y1;
        double X2;
        double Y2;
      } TArea;
     
      // a single VPA entry
      typedef struct tagVPAEntry
      { long XEntry;
        long YEntry;
      } VPAEntry; 
     
      // an array of VPA entries
      typedef VPAEntry *PVPAT;
     
    #endif  // CVCIMAGE_INCLUDE
     
     
     
    IMPORT(long)                    GetSerialNumber           ();
    IMPORT(long)                    GetLicenseInfo            ();
    IMPORT(double)                  Argument                  ( double ADX, double ADY );
    IMPORT(void)                    SetArea                   ( double X0, double Y0, double X1, double Y1, double X2, double Y2, TArea& Area );
    IMPORT(void)                    SetRectArea               ( double L, double T, double R, double B, TArea& Area );
    IMPORT(void)                    SetMatrix                 ( double B11, double B12, double B21, double B22, TMatrix& M );
    IMPORT(double)                  MatrixDeterminant         ( TMatrix M );
    IMPORT(bool)                    InverseMatrix             ( TMatrix A, TMatrix& AInv );
    IMPORT(void)                    RotationMatrix            ( double Angle, TMatrix& M );
    IMPORT(void)                    MatrixRTransform          ( double Xin, double Yin, TMatrix M, double& Xout, double& Yout );
    IMPORT(void)                    MatrixITransform          ( long Xin, long Yin, TMatrix M, long& Xout, long& Yout );
    IMPORT(void)                    MatrixTransformArea       ( TArea AreaIn, TMatrix Matrix, TArea& AreaOut );
    IMPORT(void)                    CoordinateMapTransform    ( double XI, double YI, TCoordinateMap CS, double& XP, double& YP );
    IMPORT(void)                    InitCoordinateMap         ( TCoordinateMap& CM );
    IMPORT(void)                    CoordinateMapTransformArea( TArea AreaIn, TCoordinateMap CS, TArea& AreaOut );
    IMPORT(void)                    ComposeCoordinateMaps     ( TCoordinateMap CS1, TCoordinateMap CS2, TCoordinateMap& CSOut );
    IMPORT(void)                    BoundingRectangle         ( TArea Area, TCoordinateMap CS, TDRect& OutputRect );
    IMPORT(long)                    ImageDatatype             ( IMG I, long index);
    IMPORT(long)                    ImageWidth                ( IMG I );
    IMPORT(long)                    ImageHeight               ( IMG I );
    IMPORT(void)                    PixelToImage              ( IMG I, double XP, double YP, double& XI, double& YI );
    IMPORT(void)                    ImageToPixel              ( IMG I, double XI, double YI, double& XP, double& YP );
    IMPORT(void)                    PixelAreaToImage          ( IMG I, TArea PixelArea, TArea& ImageArea );
    IMPORT(void)                    ImageAreaToPixel          ( IMG I, TArea ImageArea, TArea& PixelArea );
    IMPORT(long)                    PixVal                    ( IMG I, long Index, long X, long Y );
    IMPORT(long)                    RefCount                  ( OBJ P );
    IMPORT(long)                    ReleaseIUnknown           ( OBJ P);
     
    #ifdef _CVDEF
     
    IMPORT(bool)                    CreateMatrixTransformedImage  ( IMG Img, TMatrix Matrix, IMG& ImgOut);
    IMPORT(bool)                    CreateMatrixTransformedImageEx( IMG Img, TMatrix Matrix, IMG& ImgOut);
    IMPORT(bool)                    CreateSubImage            ( IMG Img, TArea Area, IMG& ImgOut );
    IMPORT(bool)                    CreatePolarImage          ( IMG Img, double CX, double CY, double Alpha0, double RMin, double RMax, IMG& ImgOut);
    IMPORT(bool)                    CreatePolarImageEx        ( IMG Img, double CX, double CY, double Alpha0, double AlphaTotal,double RMin, double RMax, IMG& ImgOut);
    IMPORT(bool)                    CoordinateMapIsTranslation( TCoordinateMap CS );
    IMPORT(bool)                    MapTo8Bit                 ( IMG I, BOOL CollectiveNormalization, IMG& ImgOut);
    IMPORT(bool)                    PixelToImageCoordinates   ( IMG I, double XP, double YP, double& XI, double& YI );
    IMPORT(bool)                    ImageToPixelCoordinates   ( IMG I, double XI, double YI, double& XP, double& YP );
    IMPORT(bool)                    GetImageOrigin            ( IMG I, double& OrgX, double& OrgY );
    IMPORT(bool)                    SetImageOrigin            ( IMG I, double OrgX, double OrgY );
    IMPORT(bool)                    GetImageCoordinates       ( IMG I, TCoordinateMap& CS );
    IMPORT(bool)                    SetImageCoordinates       ( IMG I, TCoordinateMap CS );
     
     
    namespace CVB
    {
    // "... you need to set the namespace in oder to use the GetPixel function
    // using namespace CVB;
     
    IMPORT(bool)                    GetPixel                  ( IMG I, long Index, long X, long Y, long& Value );
     
    IMPORT(bool)                    SetPixel                  ( IMG I, long Index, long X, long Y, long& Value );
    };
     
    IMPORT(bool)                    IsIUnknown                ( OBJ P );
    IMPORT(bool)                    IsImage                   ( OBJ P );
    IMPORT(bool)                    IsGrabber                 ( OBJ P );
    IMPORT(bool)                    ReleaseObject             ( OBJ& P );
     
    IMPORT(long)                    ReleaseImage              ( IMG I );
    IMPORT(bool)                    ShareObject               ( OBJ P );
    IMPORT(BOOL)                    HasOverlay                ( IMG I );
    IMPORT(BOOL)                    IsAll8Bit                 ( IMG I );
    IMPORT(BOOL)                    IsOverlayImage            ( IMG I );
    IMPORT(long)                    ShareImage                ( IMG I );
    IMPORT(BOOL)                    MaxImageArea              ( IMG I, TArea& Area );
    IMPORT(bool)                    InverseCoordinateMap      ( TCoordinateMap CSIn, TCoordinateMap &CSOut);
    IMPORT(long)                    ImageDimension            ( IMG I);
    IMPORT(BOOL)                    InitializeImageArea       ( IMG Img, long Index, TArea Area, long Value);
    IMPORT(BOOL)                    CopyImageArea             ( IMG ImgSrc, IMG ImgDst, long SrcIndex, long DstIndex, TArea Area, long TargetX0, long TargetY0);
    IMPORT(BOOL)                    IsPixels                  ( OBJ P);
    IMPORT(BOOL)                    ListPixel                 ( void *Pix, long Index,long &PX, long &PY, long &PZ );
    IMPORT(long)                    PixelListCount            ( PIXELLIST Pixels);
    IMPORT(BOOL)                    SortPixelsByValue         ( PIXELLIST Pixels);
    IMPORT(BOOL)                    SortPixelsByPosition      ( PIXELLIST Pixels, long X, long Y);
    IMPORT(BOOL)                    FindMaxima                ( IMG I, long PlaneIndex, long Left, long Top, long Right, long Bottom, long Locality, long Threshold, PIXELLIST& Maxima);
    IMPORT(BOOL)                    TruncatePixelList         ( PIXELLIST Pixels, long N);
    IMPORT(bool)                    CreateDuplicateImage      ( IMG I, IMG& Image );
    IMPORT(bool)                    CreateOverlayImage        ( IMG I, IMG& Image );
    IMPORT(bool)                    CreateImageInsertList     ( IMG I1, IMG I2, long Index, BOOL Share, BOOL Intersect, IMG& Image );
    IMPORT(bool)                    CreateImageDeleteList     ( IMG I, long Index, long Count, BOOL Share, IMG& Image );
    IMPORT(bool)                    CreateImageSubList        ( IMG I, long Index, long Count, BOOL Share, IMG& Image );
    IMPORT(bool)                    CreateCompatibleImage     ( IMG I, long AWidth, long AHeight, BOOL ForceOverlay, IMG& Image );
    IMPORT(bool)                    CreateGenericImage        ( long ADimension, long AWidth, long AHeight, BOOL ForceOverlay, IMG& Image );
    IMPORT(bool)                    CreateGenericImageDT      ( long ADimension, long AWidth, long AHeight, long Datatype, IMG& Image );
    IMPORT(bool)                    CopyOverlay               ( IMG ISource, IMG ITarget );
    IMPORT(bool)                    ImageHistogram            ( IMG I, long Index, long Density, TArea Area, THistogram& HGram );
    IMPORT(bool)                    CreateNormalizedImage     ( IMG I, TNormalizeMode Mode, double TargetMeanMin, double TargetVarianceMax, IMG& Image );
    IMPORT(bool)                    CreateMeanVarianceImage   ( IMG I, IMG& IMean, IMG& IVariance );
    IMPORT(bool)                    CreateMinMaxImage         ( IMG I, IMG& IMin, IMG& IMax );
    IMPORT(bool)                    CreateLinearCombinationImage  (IMG I, BOOL Reflect, void* Coefficients, IMG& Image );
    IMPORT(bool)                    CreateColorTransform      ( IMG I, long TargetDimension, BOOL Reflect, void* Coefficients, IMG& Image );
    IMPORT(bool)                    CreateTransformedImage    ( IMG Image, long TargetWidth, long TargetHeight, TFNonlinear Transformation, void  *pPrivate,IMG& ImgOut);
     
    #ifdef WIN32
    IMPORT(bool)                    LoadImageFile             ( PCHAR FileName, IMG& Image );
    IMPORT(bool)                    PasteClipboardImage       ( HWND HWindow, IMG& Image );
    IMPORT(bool)                    WriteImageFile            ( IMG I, PCHAR FileName );
    IMPORT(bool)                    CopyImageClipboard        ( IMG I, HWND HWindow );
    #endif //Win32
     
    #else
     
    IMPORT(BOOL)                    CreateMatrixTransformedImage  ( IMG Img, TMatrix Matrix, IMG& ImgOut);
    IMPORT(BOOL)                    CreateMatrixTransformedImageEx( IMG Img, TMatrix Matrix, IMG& ImgOut);
    IMPORT(BOOL)                    CreateSubImage            ( IMG Img, TArea Area, IMG& ImgOut );
    IMPORT(BOOL)                    CreatePolarImage          ( IMG Img, double CX, double CY, double Alpha0, double RMin, double RMax, IMG& ImgOut);
    IMPORT(BOOL)                    CreatePolarImageEx        ( IMG Img, double CX, double CY, double Alpha0, double AlphaTotal,double RMin, double RMax, IMG& ImgOut);
    IMPORT(BOOL)                    CoordinateMapIsTranslation( TCoordinateMap CS );
    IMPORT(BOOL)                    MapTo8Bit                 ( IMG I, BOOL CollectiveNormalization, IMG& ImgOut);
    IMPORT(BOOL)                    PixelToImageCoordinates   ( IMG I, double XP, double YP, double& XI, double& YI );
    IMPORT(BOOL)                    ImageToPixelCoordinates   ( IMG I, double XI, double YI, double& XP, double& YP );
    IMPORT(BOOL)                    GetImageOrigin            ( IMG I, double& OrgX, double& OrgY );
    IMPORT(BOOL)                    SetImageOrigin            ( IMG I, double OrgX, double OrgY );
    IMPORT(BOOL)                    GetImageCoordinates       ( IMG I, TCoordinateMap& CS );
    IMPORT(BOOL)                    SetImageCoordinates       ( IMG I, TCoordinateMap CS );
    IMPORT(BOOL)                    IsIUnknown                ( OBJ P );
    IMPORT(BOOL)                    IsImage                   ( OBJ P );
    IMPORT(BOOL)                    IsGrabber                 ( OBJ P );
    IMPORT(BOOL)                    ReleaseObject             ( OBJ& P );
     
     
    namespace CVB
    {
    // "... you need to set the namespace in oder to use the GetPixel function
    // using namespace CVB;
    ...
    Je n'ai pas encore tout etudié, mais je pense qu'il y a de bon truc dedans. j'ai déjà commencé les test.

    Common Vision est une boite allemande je crois, et leur fichier class ne sont carément pas commenté (a part le nom )

    En fait je pouvais toujours chercher IMG, c'est en fait une redéfinission de pointeur générique

    enfin, j'ai de quoi travailler maintenant



    Merci

  14. #14
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    namespace CVB
    {
    // "... you need to set the namespace in oder to use the GetPixel function
    // using namespace CVB;
     
    IMPORT(bool)                    GetPixel                  ( IMG I, long Index, long X, long Y, long& Value );
     
    IMPORT(bool)                    SetPixel                  ( IMG I, long Index, long X, long Y, long& Value );
    };


    reponse du compilateur
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    --------------------Configuration: projet_2_1 - Win32 Debug--------------------
    Compiling...
    projet_2_1Dlg.cpp
    D:\crocis\PROJET2\projet_2_1\projet_2_1Dlg.cpp(387) : error C2660: 'GetPixel' : function does not take 5 parameters
    Error executing cl.exe.
     
    projet_2_1.exe - 1 error(s), 0 warning(s)
    Il ne trouve pas getpixel (ou pas la bonne fonction.)
    Ca veux dire quoi le namespace CVB ?
    Je ne le trouve pas dans le reste des fichiers ?

  15. #15
    Membre expert
    Avatar de hiko-seijuro
    Profil pro
    Inscrit en
    Mai 2004
    Messages
    2 011
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France

    Informations forums :
    Inscription : Mai 2004
    Messages : 2 011
    Points : 3 065
    Points
    3 065
    Par défaut
    ca veut dire qu'il faut que tu fasses soit :

    soit

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    using namespace CVB;
    ....
    GetPixel(...);
    Hiko-seijuro

    n'cha - hoyoyo gang

    espace perso : http://hiko-seijuro.developpez.com
    dernier tuto : Introduction à l'éditeur de texte Emacs sous linux
    consulter les faqs : http://www.developpez.com/faq
    PAS DE QUESTIONS TECHNIQUES PAR MP OU MAIL

  16. #16
    Membre régulier
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mai 2006
    Messages
    350
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2006
    Messages : 350
    Points : 121
    Points
    121
    Par défaut
    Ok c'etait ca ... Merci

    (Ca voulais donc dire ca ... )

Discussions similaires

  1. [ETUDES] Traitement images ou intelligence artificielle ?
    Par green_castor dans le forum Etudes
    Réponses: 9
    Dernier message: 29/11/2005, 14h01
  2. traitement image
    Par Feanorin dans le forum Algorithmes et structures de données
    Réponses: 4
    Dernier message: 20/06/2005, 18h01
  3. Réponses: 5
    Dernier message: 26/12/2004, 00h17
  4. Matrice de filtrage ?
    Par gimlithedwarf dans le forum Traitement d'images
    Réponses: 2
    Dernier message: 24/08/2002, 10h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo