calculating the sum of the pixels on an iamge

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

calculating the sum of the pixels on an iamge

opencv-users mailing list
hello freinds i have to calculate the sum of pixels in a cell (8*8 pixels) and save it in an other image until i calculate the sum of all pixels in all the image . how to proceed .and thank you in advance
Reply | Threaded
Open this post in threaded view
|

Re: calculating the sum of the pixels on an iamge

keghn


 8 pixels by eight pixels?

 50 by 50 pixels is a square as wide as my finger on my laptop screen.

 A letter could be done in 8x8.

 In math and programming they call 8x8 a 8x8 matrix. In computer vision programming, it is called a 8 x 8 Mat or image.
 Each pixel can have three colors, blue, green, red.

 The most popular image software is opneCV 3.0 in the year of 2015.
Reply | Threaded
Open this post in threaded view
|

Re: calculating the sum of the pixels on an iamge

opencv-users mailing list
really i can't get what you say can you please send to me a code that contain how can i add the sum of pixels in a cell of 8 by 8 pixls then i calculate the sum of pixels in a blok 16 by 16 pixels
Reply | Threaded
Open this post in threaded view
|

Re: calculating the sum of the pixels on an iamge

keghn
 In c, c++, python, or java, in the OpenCV framework?
Reply | Threaded
Open this post in threaded view
|

Re: calculating the sum of the pixels on an iamge

opencv-users mailing list
in opencv 


     On Wednesday, September 9, 2015 12:30 AM, "keghn [hidden email] [OpenCV]" <[hidden email]> wrote:
   

      In c, c++, python, or java, in the OpenCV framework?

--
View this message in context: http://opencv-users.1802565.n2.nabble.com/calculating-the-sum-of-the-pixels-on-an-iamge-tp7585665p7585669.html
Sent from the opencv-users mailing list archive at Nabble.com.
  #yiv2047481058 #yiv2047481058 -- #yiv2047481058ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv2047481058 #yiv2047481058ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv2047481058 #yiv2047481058ygrp-mkp #yiv2047481058hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv2047481058 #yiv2047481058ygrp-mkp #yiv2047481058ads {margin-bottom:10px;}#yiv2047481058 #yiv2047481058ygrp-mkp .yiv2047481058ad {padding:0 0;}#yiv2047481058 #yiv2047481058ygrp-mkp .yiv2047481058ad p {margin:0;}#yiv2047481058 #yiv2047481058ygrp-mkp .yiv2047481058ad a {color:#0000ff;text-decoration:none;}#yiv2047481058 #yiv2047481058ygrp-sponsor #yiv2047481058ygrp-lc {font-family:Arial;}#yiv2047481058 #yiv2047481058ygrp-sponsor #yiv2047481058ygrp-lc #yiv2047481058hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv2047481058 #yiv2047481058ygrp-sponsor #yiv2047481058ygrp-lc .yiv2047481058ad {margin-bottom:10px;padding:0 0;}#yiv2047481058 #yiv2047481058actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv2047481058 #yiv2047481058activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv2047481058 #yiv2047481058activity span {font-weight:700;}#yiv2047481058 #yiv2047481058activity span:first-child {text-transform:uppercase;}#yiv2047481058 #yiv2047481058activity span a {color:#5085b6;text-decoration:none;}#yiv2047481058 #yiv2047481058activity span span {color:#ff7900;}#yiv2047481058 #yiv2047481058activity span .yiv2047481058underline {text-decoration:underline;}#yiv2047481058 .yiv2047481058attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv2047481058 .yiv2047481058attach div a {text-decoration:none;}#yiv2047481058 .yiv2047481058attach img {border:none;padding-right:5px;}#yiv2047481058 .yiv2047481058attach label {display:block;margin-bottom:5px;}#yiv2047481058 .yiv2047481058attach label a {text-decoration:none;}#yiv2047481058 blockquote {margin:0 0 0 4px;}#yiv2047481058 .yiv2047481058bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv2047481058 .yiv2047481058bold a {text-decoration:none;}#yiv2047481058 dd.yiv2047481058last p a {font-family:Verdana;font-weight:700;}#yiv2047481058 dd.yiv2047481058last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv2047481058 dd.yiv2047481058last p span.yiv2047481058yshortcuts {margin-right:0;}#yiv2047481058 div.yiv2047481058attach-table div div a {text-decoration:none;}#yiv2047481058 div.yiv2047481058attach-table {width:400px;}#yiv2047481058 div.yiv2047481058file-title a, #yiv2047481058 div.yiv2047481058file-title a:active, #yiv2047481058 div.yiv2047481058file-title a:hover, #yiv2047481058 div.yiv2047481058file-title a:visited {text-decoration:none;}#yiv2047481058 div.yiv2047481058photo-title a, #yiv2047481058 div.yiv2047481058photo-title a:active, #yiv2047481058 div.yiv2047481058photo-title a:hover, #yiv2047481058 div.yiv2047481058photo-title a:visited {text-decoration:none;}#yiv2047481058 div#yiv2047481058ygrp-mlmsg #yiv2047481058ygrp-msg p a span.yiv2047481058yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv2047481058 .yiv2047481058green {color:#628c2a;}#yiv2047481058 .yiv2047481058MsoNormal {margin:0 0 0 0;}#yiv2047481058 o {font-size:0;}#yiv2047481058 #yiv2047481058photos div {float:left;width:72px;}#yiv2047481058 #yiv2047481058photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv2047481058 #yiv2047481058photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv2047481058 #yiv2047481058reco-category {font-size:77%;}#yiv2047481058 #yiv2047481058reco-desc {font-size:77%;}#yiv2047481058 .yiv2047481058replbq {margin:4px;}#yiv2047481058 #yiv2047481058ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv2047481058 #yiv2047481058ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv2047481058 #yiv2047481058ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv2047481058 #yiv2047481058ygrp-mlmsg select, #yiv2047481058 input, #yiv2047481058 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv2047481058 #yiv2047481058ygrp-mlmsg pre, #yiv2047481058 code {font:115% monospace;}#yiv2047481058 #yiv2047481058ygrp-mlmsg * {line-height:1.22em;}#yiv2047481058 #yiv2047481058ygrp-mlmsg #yiv2047481058logo {padding-bottom:10px;}#yiv2047481058 #yiv2047481058ygrp-msg p a {font-family:Verdana;}#yiv2047481058 #yiv2047481058ygrp-msg p#yiv2047481058attach-count span {color:#1E66AE;font-weight:700;}#yiv2047481058 #yiv2047481058ygrp-reco #yiv2047481058reco-head {color:#ff7900;font-weight:700;}#yiv2047481058 #yiv2047481058ygrp-reco {margin-bottom:20px;padding:0px;}#yiv2047481058 #yiv2047481058ygrp-sponsor #yiv2047481058ov li a {font-size:130%;text-decoration:none;}#yiv2047481058 #yiv2047481058ygrp-sponsor #yiv2047481058ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv2047481058 #yiv2047481058ygrp-sponsor #yiv2047481058ov ul {margin:0;padding:0 0 0 8px;}#yiv2047481058 #yiv2047481058ygrp-text {font-family:Georgia;}#yiv2047481058 #yiv2047481058ygrp-text p {margin:0 0 1em 0;}#yiv2047481058 #yiv2047481058ygrp-text tt {font-size:120%;}#yiv2047481058 #yiv2047481058ygrp-vital ul li:last-child {border-right:none !important;}#yiv2047481058

 
Reply | Threaded
Open this post in threaded view
|

Re: calculating the sum of the pixels on an iamge

keghn
In reply to this post by keghn
8 x 8 array of pixels is = 64 pixels
16 x 16 = 256 pixels
Reply | Threaded
Open this post in threaded view
|

Re: calculating the sum of the pixels on an iamge

opencv-users mailing list
In reply to this post by opencv-users mailing list
sorry i mean in c /c++ opencv 


     On Wednesday, September 9, 2015 12:32 AM, afif mouna <[hidden email]> wrote:
   

 in opencv 


     On Wednesday, September 9, 2015 12:30 AM, "keghn [hidden email] [OpenCV]" <[hidden email]> wrote:
   

      In c, c++, python, or java, in the OpenCV framework?

--
View this message in context: http://opencv-users.1802565.n2.nabble.com/calculating-the-sum-of-the-pixels-on-an-iamge-tp7585665p7585669.html
Sent from the opencv-users mailing list archive at Nabble.com.
  #yiv6499605323 -- #yiv6499605323ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv6499605323 #yiv6499605323ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv6499605323 #yiv6499605323ygrp-mkp #yiv6499605323hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv6499605323 #yiv6499605323ygrp-mkp #yiv6499605323ads {margin-bottom:10px;}#yiv6499605323 #yiv6499605323ygrp-mkp .yiv6499605323ad {padding:0 0;}#yiv6499605323 #yiv6499605323ygrp-mkp .yiv6499605323ad p {margin:0;}#yiv6499605323 #yiv6499605323ygrp-mkp .yiv6499605323ad a {color:#0000ff;text-decoration:none;}#yiv6499605323 #yiv6499605323ygrp-sponsor #yiv6499605323ygrp-lc {font-family:Arial;}#yiv6499605323 #yiv6499605323ygrp-sponsor #yiv6499605323ygrp-lc #yiv6499605323hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv6499605323 #yiv6499605323ygrp-sponsor #yiv6499605323ygrp-lc .yiv6499605323ad {margin-bottom:10px;padding:0 0;}#yiv6499605323 #yiv6499605323actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv6499605323 #yiv6499605323activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv6499605323 #yiv6499605323activity span {font-weight:700;}#yiv6499605323 #yiv6499605323activity span:first-child {text-transform:uppercase;}#yiv6499605323 #yiv6499605323activity span a {color:#5085b6;text-decoration:none;}#yiv6499605323 #yiv6499605323activity span span {color:#ff7900;}#yiv6499605323 #yiv6499605323activity span .yiv6499605323underline {text-decoration:underline;}#yiv6499605323 .yiv6499605323attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv6499605323 .yiv6499605323attach div a {text-decoration:none;}#yiv6499605323 .yiv6499605323attach img {border:none;padding-right:5px;}#yiv6499605323 .yiv6499605323attach label {display:block;margin-bottom:5px;}#yiv6499605323 .yiv6499605323attach label a {text-decoration:none;}#yiv6499605323 blockquote {margin:0 0 0 4px;}#yiv6499605323 .yiv6499605323bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv6499605323 .yiv6499605323bold a {text-decoration:none;}#yiv6499605323 dd.yiv6499605323last p a {font-family:Verdana;font-weight:700;}#yiv6499605323 dd.yiv6499605323last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv6499605323 dd.yiv6499605323last p span.yiv6499605323yshortcuts {margin-right:0;}#yiv6499605323 div.yiv6499605323attach-table div div a {text-decoration:none;}#yiv6499605323 div.yiv6499605323attach-table {width:400px;}#yiv6499605323 div.yiv6499605323file-title a, #yiv6499605323 div.yiv6499605323file-title a:active, #yiv6499605323 div.yiv6499605323file-title a:hover, #yiv6499605323 div.yiv6499605323file-title a:visited {text-decoration:none;}#yiv6499605323 div.yiv6499605323photo-title a, #yiv6499605323 div.yiv6499605323photo-title a:active, #yiv6499605323 div.yiv6499605323photo-title a:hover, #yiv6499605323 div.yiv6499605323photo-title a:visited {text-decoration:none;}#yiv6499605323 div#yiv6499605323ygrp-mlmsg #yiv6499605323ygrp-msg p a span.yiv6499605323yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv6499605323 .yiv6499605323green {color:#628c2a;}#yiv6499605323 .yiv6499605323MsoNormal {margin:0 0 0 0;}#yiv6499605323 o {font-size:0;}#yiv6499605323 #yiv6499605323photos div {float:left;width:72px;}#yiv6499605323 #yiv6499605323photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv6499605323 #yiv6499605323photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv6499605323  #yiv6499605323reco-category {font-size:77%;}#yiv6499605323 #yiv6499605323reco-desc {font-size:77%;}#yiv6499605323 .yiv6499605323replbq {margin:4px;}#yiv6499605323 #yiv6499605323ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv6499605323 #yiv6499605323ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv6499605323 #yiv6499605323ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv6499605323 #yiv6499605323ygrp-mlmsg select, #yiv6499605323 input, #yiv6499605323 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv6499605323 #yiv6499605323ygrp-mlmsg pre, #yiv6499605323 code {font:115% monospace;}#yiv6499605323 #yiv6499605323ygrp-mlmsg * {line-height:1.22em;}#yiv6499605323 #yiv6499605323ygrp-mlmsg #yiv6499605323logo {padding-bottom:10px;}#yiv6499605323 #yiv6499605323ygrp-msg p a {font-family:Verdana;}#yiv6499605323 #yiv6499605323ygrp-msg p#yiv6499605323attach-count span {color:#1E66AE;font-weight:700;}#yiv6499605323 #yiv6499605323ygrp-reco #yiv6499605323reco-head {color:#ff7900;font-weight:700;}#yiv6499605323 #yiv6499605323ygrp-reco {margin-bottom:20px;padding:0px;}#yiv6499605323 #yiv6499605323ygrp-sponsor #yiv6499605323ov li a {font-size:130%;text-decoration:none;}#yiv6499605323 #yiv6499605323ygrp-sponsor #yiv6499605323ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv6499605323 #yiv6499605323ygrp-sponsor #yiv6499605323ov ul {margin:0;padding:0 0 0 8px;}#yiv6499605323 #yiv6499605323ygrp-text {font-family:Georgia;}#yiv6499605323 #yiv6499605323ygrp-text p {margin:0 0 1em 0;}#yiv6499605323 #yiv6499605323ygrp-text tt {font-size:120%;}#yiv6499605323 #yiv6499605323ygrp-vital ul li:last-child {border-right:none !important;}#yiv6499605323

   

 
Reply | Threaded
Open this post in threaded view
|

Re: calculating the sum of the pixels on an iamge

opencv-users mailing list
have you ever a code that contain how can i get the sum of pixels in  a region of 8 by 8 pixels or 16 by 16 pixels 


     On Wednesday, September 9, 2015 1:47 AM, "afif mouna [hidden email] [OpenCV]" <[hidden email]> wrote:
   

     sorry i mean in c /c++ opencv 


     On Wednesday, September 9, 2015 12:32 AM, afif mouna <[hidden email]> wrote:
   

 in opencv 


     On Wednesday, September 9, 2015 12:30 AM, "keghn [hidden email] [OpenCV]" <[hidden email]> wrote:
   

      In c, c++, python, or java, in the OpenCV framework?

--
View this message in context: http://opencv-users.1802565.n2.nabble.com/calculating-the-sum-of-the-pixels-on-an-iamge-tp7585665p7585669.html
Sent from the opencv-users mailing list archive at Nabble.com.
 

   

     #yiv9666931402 #yiv9666931402 -- #yiv9666931402ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv9666931402 #yiv9666931402ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv9666931402 #yiv9666931402ygrp-mkp #yiv9666931402hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv9666931402 #yiv9666931402ygrp-mkp #yiv9666931402ads {margin-bottom:10px;}#yiv9666931402 #yiv9666931402ygrp-mkp .yiv9666931402ad {padding:0 0;}#yiv9666931402 #yiv9666931402ygrp-mkp .yiv9666931402ad p {margin:0;}#yiv9666931402 #yiv9666931402ygrp-mkp .yiv9666931402ad a {color:#0000ff;text-decoration:none;}#yiv9666931402 #yiv9666931402ygrp-sponsor #yiv9666931402ygrp-lc {font-family:Arial;}#yiv9666931402 #yiv9666931402ygrp-sponsor #yiv9666931402ygrp-lc #yiv9666931402hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv9666931402 #yiv9666931402ygrp-sponsor #yiv9666931402ygrp-lc .yiv9666931402ad {margin-bottom:10px;padding:0 0;}#yiv9666931402 #yiv9666931402actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv9666931402 #yiv9666931402activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv9666931402 #yiv9666931402activity span {font-weight:700;}#yiv9666931402 #yiv9666931402activity span:first-child {text-transform:uppercase;}#yiv9666931402 #yiv9666931402activity span a {color:#5085b6;text-decoration:none;}#yiv9666931402 #yiv9666931402activity span span {color:#ff7900;}#yiv9666931402 #yiv9666931402activity span .yiv9666931402underline {text-decoration:underline;}#yiv9666931402 .yiv9666931402attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv9666931402 .yiv9666931402attach div a {text-decoration:none;}#yiv9666931402 .yiv9666931402attach img {border:none;padding-right:5px;}#yiv9666931402 .yiv9666931402attach label {display:block;margin-bottom:5px;}#yiv9666931402 .yiv9666931402attach label a {text-decoration:none;}#yiv9666931402 blockquote {margin:0 0 0 4px;}#yiv9666931402 .yiv9666931402bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv9666931402 .yiv9666931402bold a {text-decoration:none;}#yiv9666931402 dd.yiv9666931402last p a {font-family:Verdana;font-weight:700;}#yiv9666931402 dd.yiv9666931402last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv9666931402 dd.yiv9666931402last p span.yiv9666931402yshortcuts {margin-right:0;}#yiv9666931402 div.yiv9666931402attach-table div div a {text-decoration:none;}#yiv9666931402 div.yiv9666931402attach-table {width:400px;}#yiv9666931402 div.yiv9666931402file-title a, #yiv9666931402 div.yiv9666931402file-title a:active, #yiv9666931402 div.yiv9666931402file-title a:hover, #yiv9666931402 div.yiv9666931402file-title a:visited {text-decoration:none;}#yiv9666931402 div.yiv9666931402photo-title a, #yiv9666931402 div.yiv9666931402photo-title a:active, #yiv9666931402 div.yiv9666931402photo-title a:hover, #yiv9666931402 div.yiv9666931402photo-title a:visited {text-decoration:none;}#yiv9666931402 div#yiv9666931402ygrp-mlmsg #yiv9666931402ygrp-msg p a span.yiv9666931402yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv9666931402 .yiv9666931402green {color:#628c2a;}#yiv9666931402 .yiv9666931402MsoNormal {margin:0 0 0 0;}#yiv9666931402 o {font-size:0;}#yiv9666931402 #yiv9666931402photos div {float:left;width:72px;}#yiv9666931402 #yiv9666931402photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv9666931402 #yiv9666931402photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv9666931402 #yiv9666931402reco-category {font-size:77%;}#yiv9666931402 #yiv9666931402reco-desc {font-size:77%;}#yiv9666931402 .yiv9666931402replbq {margin:4px;}#yiv9666931402 #yiv9666931402ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv9666931402 #yiv9666931402ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv9666931402 #yiv9666931402ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv9666931402 #yiv9666931402ygrp-mlmsg select, #yiv9666931402 input, #yiv9666931402 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv9666931402 #yiv9666931402ygrp-mlmsg pre, #yiv9666931402 code {font:115% monospace;}#yiv9666931402 #yiv9666931402ygrp-mlmsg * {line-height:1.22em;}#yiv9666931402 #yiv9666931402ygrp-mlmsg #yiv9666931402logo {padding-bottom:10px;}#yiv9666931402 #yiv9666931402ygrp-msg p a {font-family:Verdana;}#yiv9666931402 #yiv9666931402ygrp-msg p#yiv9666931402attach-count span {color:#1E66AE;font-weight:700;}#yiv9666931402 #yiv9666931402ygrp-reco #yiv9666931402reco-head {color:#ff7900;font-weight:700;}#yiv9666931402 #yiv9666931402ygrp-reco {margin-bottom:20px;padding:0px;}#yiv9666931402 #yiv9666931402ygrp-sponsor #yiv9666931402ov li a {font-size:130%;text-decoration:none;}#yiv9666931402 #yiv9666931402ygrp-sponsor #yiv9666931402ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv9666931402 #yiv9666931402ygrp-sponsor #yiv9666931402ov ul {margin:0;padding:0 0 0 8px;}#yiv9666931402 #yiv9666931402ygrp-text {font-family:Georgia;}#yiv9666931402 #yiv9666931402ygrp-text p {margin:0 0 1em 0;}#yiv9666931402 #yiv9666931402ygrp-text tt {font-size:120%;}#yiv9666931402 #yiv9666931402ygrp-vital ul li:last-child {border-right:none !important;}#yiv9666931402