Deutsch English Français Italiano |
<f8f21be3-b7bd-4948-9af1-47e23983d82fn@googlegroups.com> View for Bookmarking (what is this?) Look up another Usenet article |
X-Received: by 2002:a05:622a:14:: with SMTP id x20mr14056794qtw.671.1640624330992; Mon, 27 Dec 2021 08:58:50 -0800 (PST) X-Received: by 2002:a05:622a:1389:: with SMTP id o9mr15585675qtk.109.1640624330676; Mon, 27 Dec 2021 08:58:50 -0800 (PST) Path: ...!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: fr.comp.os.linux.configuration Date: Mon, 27 Dec 2021 08:58:50 -0800 (PST) Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb1c:f17:900:d55f:acf7:3257:81ec; posting-account=q7TWSwoAAACOGlDiqgPG6hvLEUJmQy4p NNTP-Posting-Host: 2a01:cb1c:f17:900:d55f:acf7:3257:81ec User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <f8f21be3-b7bd-4948-9af1-47e23983d82fn@googlegroups.com> Subject: extraction ? From: ptilou <ptilou@gmail.com> Injection-Date: Mon, 27 Dec 2021 16:58:50 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Bytes: 1757 Lines: 31 slt, quelqu=E2=80=99un la teste, et peut me proposer mieux : 1 2 3 4 5 6 7 8 9 10 11 =20 // 1) on cr=C3=A9e un rectangle qui va s=C3=A9lectionner la partie =C3=A0 d= =C3=A9couper // on le cr=C3=A9e avec un point (x,y), une longueur, une largeur CvRect ROI =3D cvRect(pointX,pointY,img_src->width,img_src->height); img_dest =3D cvCreateImage(cvSize(cvROI.width,cvROI.height), img_src->depth= , 1); // d=C3=A9finit la r=C3=A9gion d'int=C3=A9r=C3=AAt de la source img_src cvSetImageROI(img_src, cvROI); // copier le rect s=C3=A9lectionn=C3=A9 de img_src dans img_dest cvCopy(img_src,img_dest,0); // lib=C3=A9rer la Region Of Interest de l'img source cvResetImageROI(img_src); =F0=9F=A4=A9=20 =E2=80=94=20 ptilou