|
Re: How to access pixels - urgent question: msg#01238lib.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: How to access pixels - urgent question: 01238, moezcherif2005 |
|---|---|
| Next by Date: | Re: quation: 01238, moezcherif2005 |
| Previous by Thread: | Re: How to access pixels - urgent questioni: 01238, moezcherif2005 |
| Next by Thread: | cvLoadImage throws exception when used in a .NET Thread: 01238, wesley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |