PANDORE Version 6 GREYC-IMAGE

pcopyborder



Copie les valeurs du bord d'une image dans une autre.



Synopsis

pcopyborder widthl widthr heightu heightd depthf depthb [im_in1|-] [im_in2|-] [im_out|-]

Description

L'opérateur pcopyborder permet de copier les pixels du bords de l'image im_in2 dans l'image im_in1. L'image de sortie im_out est donc une copie de l'image im_in1 sauf le bord qui est une copie de l'image im_in2. La bordure d'une image 3D à une taille de largeur widthl pixels à gauche et widthr pixels à droite, de hauteur heightu pixels en haut et heightd pixels en bas et de profondeur depthf pixels devant et depthb pixels derrière.

Pour une image 2D, les dimensions sont:

    --------------------------------------
    |                 ^                  |
    |                 |                  |
    |               heightu              |
    |                 |                  |
    |                 v                  |
    |           -------------            |
    |           |             |          |
    | <-widthl->|             |<-widthr->|
    |           |             |          |
    |            -------------           |
    |                 ^                  |
    |                 |                  |
    |              heigthd               |
    |                 |                  |
    |                 v                  |
    -------------------------------------

Pour une image couleur ou multispectrale, la bordure est modifée avec la même valeur val sur toutes les bandes.

Paramètres

Entrées

Sorties

Résultat

Retourne SUCCESS ou FAILURE.

Exemples

Sélection des objets d'une sous image de tangram.pan qui ne touchent pas le bord de l'image.

   pextractsubimage  30 30 0 150 150 0 tangram.pan in.pan
   pcopycst 0 ii.pan i1.pan
   pcopyborder 1 1 1 1 1 1 i1.pan in.pan i2.pan
   pdilationreconstruction 8 i2.pan ii.pan i3.pan
   pdif in.pan i3.pan out.pan

Voir aussi

Utilitaire

Prototype C++

Errc PCopyBorder( const Img3duc &im_in1, const Img3duc &im_in2, Img3duc &im_out, Long widthl, Long widthr, Long heightu, Long heigthd, Long depthf, Long depthb);

Auteur: Régis Clouard