access to the pixels of an image

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

access to the pixels of an image

opencv-users mailing list
plase i need your help , i work with c and open cv and i want to get access to all the pixels of the image and calculate the sum of pixels in region of 8by 8 pixels then of 16 by 16 pixels and then all the image . con you help me and thank you in advance
 

Reply | Threaded
Open this post in threaded view
|

Re: access to the pixels of an image

opencv-users mailing list
 

Hi,
If you only want the sum of the píxels in a square zone you can use the integral imagen
cv::Mat img;
cv::Mar sum;
cv::integral ( img, sum);
int value= integral<float>.at (x,y) - integral<float>.at (x+16, y+16)

Sorry if i made any mistakes, im answering from muy phone

El 09/09/2015 11:01, "[hidden email] [OpenCV]" <[hidden email]> escribió:
 

plase i need your help , i work with c and open cv and i want to get access to all the pixels of the image and calculate the sum of pixels in region of 8by 8 pixels then of 16 by 16 pixels and then all the image . con you help me and thank you in advance 


__._,_.___

Posted by: Francisco Parada <[hidden email]>
Reply via web post [hidden email] [hidden email] Start a New Topic Messages in this topic (2)
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 [hidden email]

.

__,_._,___
Reply | Threaded
Open this post in threaded view
|

Re: access to the pixels of an image

opencv-users mailing list
thank you i'm new in opencv is there an other method but in iplimage 


     On Wednesday, September 9, 2015 2:32 PM, "Francisco Parada [hidden email] [OpenCV]" <[hidden email]> wrote:
   

     Hi,
If you only want the sum of the píxels in a square zone you can use the integral imagen
cv::Mat img;
cv::Mar sum;
cv::integral ( img, sum);
int value= integral<float>.at (x,y) - integral<float>.at (x+16, y+16)Sorry if i made any mistakes, im answering from muy phone
El 09/09/2015 11:01, "[hidden email] [OpenCV]" <[hidden email]> escribió:

    plase i need your help , i work with c and open cv and i want to get access to all the pixels of the image and calculate the sum of pixels in region of 8by 8 pixels then of 16 by 16 pixels and then all the image . con you help me and thank you in advance 
 
  #yiv2035586990 #yiv2035586990 -- #yiv2035586990ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv2035586990 #yiv2035586990ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv2035586990 #yiv2035586990ygrp-mkp #yiv2035586990hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv2035586990 #yiv2035586990ygrp-mkp #yiv2035586990ads {margin-bottom:10px;}#yiv2035586990 #yiv2035586990ygrp-mkp .yiv2035586990ad {padding:0 0;}#yiv2035586990 #yiv2035586990ygrp-mkp .yiv2035586990ad p {margin:0;}#yiv2035586990 #yiv2035586990ygrp-mkp .yiv2035586990ad a {color:#0000ff;text-decoration:none;}#yiv2035586990 #yiv2035586990ygrp-sponsor #yiv2035586990ygrp-lc {font-family:Arial;}#yiv2035586990 #yiv2035586990ygrp-sponsor #yiv2035586990ygrp-lc #yiv2035586990hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv2035586990 #yiv2035586990ygrp-sponsor #yiv2035586990ygrp-lc .yiv2035586990ad {margin-bottom:10px;padding:0 0;}#yiv2035586990 #yiv2035586990actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv2035586990 #yiv2035586990activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv2035586990 #yiv2035586990activity span {font-weight:700;}#yiv2035586990 #yiv2035586990activity span:first-child {text-transform:uppercase;}#yiv2035586990 #yiv2035586990activity span a {color:#5085b6;text-decoration:none;}#yiv2035586990 #yiv2035586990activity span span {color:#ff7900;}#yiv2035586990 #yiv2035586990activity span .yiv2035586990underline {text-decoration:underline;}#yiv2035586990 .yiv2035586990attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv2035586990 .yiv2035586990attach div a {text-decoration:none;}#yiv2035586990 .yiv2035586990attach img {border:none;padding-right:5px;}#yiv2035586990 .yiv2035586990attach label {display:block;margin-bottom:5px;}#yiv2035586990 .yiv2035586990attach label a {text-decoration:none;}#yiv2035586990 blockquote {margin:0 0 0 4px;}#yiv2035586990 .yiv2035586990bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv2035586990 .yiv2035586990bold a {text-decoration:none;}#yiv2035586990 dd.yiv2035586990last p a {font-family:Verdana;font-weight:700;}#yiv2035586990 dd.yiv2035586990last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv2035586990 dd.yiv2035586990last p span.yiv2035586990yshortcuts {margin-right:0;}#yiv2035586990 div.yiv2035586990attach-table div div a {text-decoration:none;}#yiv2035586990 div.yiv2035586990attach-table {width:400px;}#yiv2035586990 div.yiv2035586990file-title a, #yiv2035586990 div.yiv2035586990file-title a:active, #yiv2035586990 div.yiv2035586990file-title a:hover, #yiv2035586990 div.yiv2035586990file-title a:visited {text-decoration:none;}#yiv2035586990 div.yiv2035586990photo-title a, #yiv2035586990 div.yiv2035586990photo-title a:active, #yiv2035586990 div.yiv2035586990photo-title a:hover, #yiv2035586990 div.yiv2035586990photo-title a:visited {text-decoration:none;}#yiv2035586990 div#yiv2035586990ygrp-mlmsg #yiv2035586990ygrp-msg p a span.yiv2035586990yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv2035586990 .yiv2035586990green {color:#628c2a;}#yiv2035586990 .yiv2035586990MsoNormal {margin:0 0 0 0;}#yiv2035586990 o {font-size:0;}#yiv2035586990 #yiv2035586990photos div {float:left;width:72px;}#yiv2035586990 #yiv2035586990photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv2035586990 #yiv2035586990photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv2035586990 #yiv2035586990reco-category {font-size:77%;}#yiv2035586990 #yiv2035586990reco-desc {font-size:77%;}#yiv2035586990 .yiv2035586990replbq {margin:4px;}#yiv2035586990 #yiv2035586990ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv2035586990 #yiv2035586990ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv2035586990 #yiv2035586990ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv2035586990 #yiv2035586990ygrp-mlmsg select, #yiv2035586990 input, #yiv2035586990 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv2035586990 #yiv2035586990ygrp-mlmsg pre, #yiv2035586990 code {font:115% monospace;}#yiv2035586990 #yiv2035586990ygrp-mlmsg * {line-height:1.22em;}#yiv2035586990 #yiv2035586990ygrp-mlmsg #yiv2035586990logo {padding-bottom:10px;}#yiv2035586990 #yiv2035586990ygrp-msg p a {font-family:Verdana;}#yiv2035586990 #yiv2035586990ygrp-msg p#yiv2035586990attach-count span {color:#1E66AE;font-weight:700;}#yiv2035586990 #yiv2035586990ygrp-reco #yiv2035586990reco-head {color:#ff7900;font-weight:700;}#yiv2035586990 #yiv2035586990ygrp-reco {margin-bottom:20px;padding:0px;}#yiv2035586990 #yiv2035586990ygrp-sponsor #yiv2035586990ov li a {font-size:130%;text-decoration:none;}#yiv2035586990 #yiv2035586990ygrp-sponsor #yiv2035586990ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv2035586990 #yiv2035586990ygrp-sponsor #yiv2035586990ov ul {margin:0;padding:0 0 0 8px;}#yiv2035586990 #yiv2035586990ygrp-text {font-family:Georgia;}#yiv2035586990 #yiv2035586990ygrp-text p {margin:0 0 1em 0;}#yiv2035586990 #yiv2035586990ygrp-text tt {font-size:120%;}#yiv2035586990 #yiv2035586990ygrp-vital ul li:last-child {border-right:none !important;}#yiv2035586990