logo       

Re: How to access pixels - urgent question: msg#01237

lib.opencv

Subject: Re: How to access pixels - urgent question

Pour acceder à un pixel c'est trés facile.
sachant que img0 est le pointeur sur votre image couleur.
((uchar*)(img0->imageData + img0->widthStep*j))[3*i] ;
Cette instruction vous permet d'acceder à la composante bleue
((uchar*)(img0->imageData + img0->widthStep*j))[3*i+1] ;
Cette instruction vous permet d'acceder à la composante verte
((uchar*)(img0->imageData + img0->widthStep*j))[3*i+2];
Cette instruction vous permet d'acceder à la composante rouge






Change settings: http://www.yahoogroups.com/mygroups, select
Get Emails (get all posts)
Daily Digest (one summary email per day)
Read on the web (read posts on the web only)Or Unsubscribe by mailing
OpenCV-unsubscribe@xxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise