|
Re: How to access pixels - urgent question: msg#01237lib.opencv
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> |
|---|---|---|
| Previous by Date: | Re: Re: Products using OpenCV: 01237, Alejandro F. Reimondo |
|---|---|
| Next by Date: | Re: How to access pixels - urgent question: 01237, moezcherif2005 |
| Previous by Thread: | Re: Re: How to access pixels - urgent questioni: 01237, Luiz Curado |
| Next by Thread: | Re: How to access pixels - urgent question: 01237, moezcherif2005 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |