Fw: "Doubt regarding data structures"

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

Fw: "Doubt regarding data structures"

opencv-users mailing list
Dear Sir,



I have to split the color image of size 512X512 into 8X8 blocks in which each block contain r g b color channels . After splitting we get 4096 blocks and each block has r g b color channels of 8X8. I need to store those 8X8 matrices in the array. In the sense we get around 4096X3 matrices of the order 8X8. I did it in matlab. Please help me in getting this solution in c++ soon. I have attached a figure which I got result in matlab.
Thanks and regardsDeepak AcharTumkur.

   

sac.jpg (159K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fw: "Doubt regarding data structures"

opencv-users mailing list
HI
    Use Eigen libraray in C/C++, it will wolsve your problem







   Thanks & Regards
  Somnath Mukherjee
[hidden email]

On Mon, May 11, 2015 at 9:34 AM, Deepak Achar [hidden email]
[OpenCV] <[hidden email]> wrote:

>
>
> Dear Sir,
>
>
>
> I have to split the color image of size 512X512 into 8X8 blocks in which
> each block contain r g b color channels . After splitting we get 4096
> blocks and each block has r g b color channels of 8X8. I need to store
> those 8X8 matrices in the array. In the sense we get around 4096X3 matrices
> of the order 8X8. I did it in matlab. Please help me in getting this
> solution in c++ soon. I have attached a figure which I got result in matlab.
>
> Thanks and regards
> Deepak Achar
> Tumkur.
>
>
>    
>
Reply | Threaded
Open this post in threaded view
|

Re: Fw: "Doubt regarding data structures"

opencv-users mailing list
In reply to this post by opencv-users mailing list
 So you wand to display a window with an array of selection of stored images, and then imshow the image
when selected with the mouse?
Reply | Threaded
Open this post in threaded view
|

Re: Fw: "Doubt regarding data structures"

opencv-users mailing list
Yes but not need to show the images.  Need to store matrices


     On Tuesday, 12 May 2015 4:14 AM, "[hidden email] [OpenCV]" <[hidden email]> wrote:
   

      So you wand to display a window with an array of selection of stored images, and then imshow the image
when selected with the mouse?
  #yiv2153323899 #yiv2153323899 -- #yiv2153323899ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv2153323899 #yiv2153323899ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv2153323899 #yiv2153323899ygrp-mkp #yiv2153323899hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv2153323899 #yiv2153323899ygrp-mkp #yiv2153323899ads {margin-bottom:10px;}#yiv2153323899 #yiv2153323899ygrp-mkp .yiv2153323899ad {padding:0 0;}#yiv2153323899 #yiv2153323899ygrp-mkp .yiv2153323899ad p {margin:0;}#yiv2153323899 #yiv2153323899ygrp-mkp .yiv2153323899ad a {color:#0000ff;text-decoration:none;}#yiv2153323899 #yiv2153323899ygrp-sponsor #yiv2153323899ygrp-lc {font-family:Arial;}#yiv2153323899 #yiv2153323899ygrp-sponsor #yiv2153323899ygrp-lc #yiv2153323899hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv2153323899 #yiv2153323899ygrp-sponsor #yiv2153323899ygrp-lc .yiv2153323899ad {margin-bottom:10px;padding:0 0;}#yiv2153323899 #yiv2153323899actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv2153323899 #yiv2153323899activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv2153323899 #yiv2153323899activity span {font-weight:700;}#yiv2153323899 #yiv2153323899activity span:first-child {text-transform:uppercase;}#yiv2153323899 #yiv2153323899activity span a {color:#5085b6;text-decoration:none;}#yiv2153323899 #yiv2153323899activity span span {color:#ff7900;}#yiv2153323899 #yiv2153323899activity span .yiv2153323899underline {text-decoration:underline;}#yiv2153323899 .yiv2153323899attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv2153323899 .yiv2153323899attach div a {text-decoration:none;}#yiv2153323899 .yiv2153323899attach img {border:none;padding-right:5px;}#yiv2153323899 .yiv2153323899attach label {display:block;margin-bottom:5px;}#yiv2153323899 .yiv2153323899attach label a {text-decoration:none;}#yiv2153323899 blockquote {margin:0 0 0 4px;}#yiv2153323899 .yiv2153323899bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv2153323899 .yiv2153323899bold a {text-decoration:none;}#yiv2153323899 dd.yiv2153323899last p a {font-family:Verdana;font-weight:700;}#yiv2153323899 dd.yiv2153323899last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv2153323899 dd.yiv2153323899last p span.yiv2153323899yshortcuts {margin-right:0;}#yiv2153323899 div.yiv2153323899attach-table div div a {text-decoration:none;}#yiv2153323899 div.yiv2153323899attach-table {width:400px;}#yiv2153323899 div.yiv2153323899file-title a, #yiv2153323899 div.yiv2153323899file-title a:active, #yiv2153323899 div.yiv2153323899file-title a:hover, #yiv2153323899 div.yiv2153323899file-title a:visited {text-decoration:none;}#yiv2153323899 div.yiv2153323899photo-title a, #yiv2153323899 div.yiv2153323899photo-title a:active, #yiv2153323899 div.yiv2153323899photo-title a:hover, #yiv2153323899 div.yiv2153323899photo-title a:visited {text-decoration:none;}#yiv2153323899 div#yiv2153323899ygrp-mlmsg #yiv2153323899ygrp-msg p a span.yiv2153323899yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv2153323899 .yiv2153323899green {color:#628c2a;}#yiv2153323899 .yiv2153323899MsoNormal {margin:0 0 0 0;}#yiv2153323899 o {font-size:0;}#yiv2153323899 #yiv2153323899photos div {float:left;width:72px;}#yiv2153323899 #yiv2153323899photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv2153323899 #yiv2153323899photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv2153323899 #yiv2153323899reco-category {font-size:77%;}#yiv2153323899 #yiv2153323899reco-desc {font-size:77%;}#yiv2153323899 .yiv2153323899replbq {margin:4px;}#yiv2153323899 #yiv2153323899ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv2153323899 #yiv2153323899ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv2153323899 #yiv2153323899ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv2153323899 #yiv2153323899ygrp-mlmsg select, #yiv2153323899 input, #yiv2153323899 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv2153323899 #yiv2153323899ygrp-mlmsg pre, #yiv2153323899 code {font:115% monospace;}#yiv2153323899 #yiv2153323899ygrp-mlmsg * {line-height:1.22em;}#yiv2153323899 #yiv2153323899ygrp-mlmsg #yiv2153323899logo {padding-bottom:10px;}#yiv2153323899 #yiv2153323899ygrp-msg p a {font-family:Verdana;}#yiv2153323899 #yiv2153323899ygrp-msg p#yiv2153323899attach-count span {color:#1E66AE;font-weight:700;}#yiv2153323899 #yiv2153323899ygrp-reco #yiv2153323899reco-head {color:#ff7900;font-weight:700;}#yiv2153323899 #yiv2153323899ygrp-reco {margin-bottom:20px;padding:0px;}#yiv2153323899 #yiv2153323899ygrp-sponsor #yiv2153323899ov li a {font-size:130%;text-decoration:none;}#yiv2153323899 #yiv2153323899ygrp-sponsor #yiv2153323899ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv2153323899 #yiv2153323899ygrp-sponsor #yiv2153323899ov ul {margin:0;padding:0 0 0 8px;}#yiv2153323899 #yiv2153323899ygrp-text {font-family:Georgia;}#yiv2153323899 #yiv2153323899ygrp-text p {margin:0 0 1em 0;}#yiv2153323899 #yiv2153323899ygrp-text tt {font-size:120%;}#yiv2153323899 #yiv2153323899ygrp-vital ul li:last-child {border-right:none !important;}#yiv2153323899

 
Reply | Threaded
Open this post in threaded view
|

Re: Fw: "Doubt regarding data structures"

opencv-users mailing list
Please anyone got the solution.?


     On Tuesday, 12 May 2015 8:36 AM, "Deepak Achar [hidden email] [OpenCV]" <[hidden email]> wrote:
   

     Yes but not need to show the images.  Need to store matrices


     On Tuesday, 12 May 2015 4:14 AM, "[hidden email] [OpenCV]" <[hidden email]> wrote:
   

      So you wand to display a window with an array of selection of stored images, and then imshow the image
when selected with the mouse?
 

     #yiv2705874964 #yiv2705874964 -- #yiv2705874964ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv2705874964 #yiv2705874964ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv2705874964 #yiv2705874964ygrp-mkp #yiv2705874964hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv2705874964 #yiv2705874964ygrp-mkp #yiv2705874964ads {margin-bottom:10px;}#yiv2705874964 #yiv2705874964ygrp-mkp .yiv2705874964ad {padding:0 0;}#yiv2705874964 #yiv2705874964ygrp-mkp .yiv2705874964ad p {margin:0;}#yiv2705874964 #yiv2705874964ygrp-mkp .yiv2705874964ad a {color:#0000ff;text-decoration:none;}#yiv2705874964 #yiv2705874964ygrp-sponsor #yiv2705874964ygrp-lc {font-family:Arial;}#yiv2705874964 #yiv2705874964ygrp-sponsor #yiv2705874964ygrp-lc #yiv2705874964hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv2705874964 #yiv2705874964ygrp-sponsor #yiv2705874964ygrp-lc .yiv2705874964ad {margin-bottom:10px;padding:0 0;}#yiv2705874964 #yiv2705874964actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv2705874964 #yiv2705874964activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv2705874964 #yiv2705874964activity span {font-weight:700;}#yiv2705874964 #yiv2705874964activity span:first-child {text-transform:uppercase;}#yiv2705874964 #yiv2705874964activity span a {color:#5085b6;text-decoration:none;}#yiv2705874964 #yiv2705874964activity span span {color:#ff7900;}#yiv2705874964 #yiv2705874964activity span .yiv2705874964underline {text-decoration:underline;}#yiv2705874964 .yiv2705874964attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv2705874964 .yiv2705874964attach div a {text-decoration:none;}#yiv2705874964 .yiv2705874964attach img {border:none;padding-right:5px;}#yiv2705874964 .yiv2705874964attach label {display:block;margin-bottom:5px;}#yiv2705874964 .yiv2705874964attach label a {text-decoration:none;}#yiv2705874964 blockquote {margin:0 0 0 4px;}#yiv2705874964 .yiv2705874964bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv2705874964 .yiv2705874964bold a {text-decoration:none;}#yiv2705874964 dd.yiv2705874964last p a {font-family:Verdana;font-weight:700;}#yiv2705874964 dd.yiv2705874964last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv2705874964 dd.yiv2705874964last p span.yiv2705874964yshortcuts {margin-right:0;}#yiv2705874964 div.yiv2705874964attach-table div div a {text-decoration:none;}#yiv2705874964 div.yiv2705874964attach-table {width:400px;}#yiv2705874964 div.yiv2705874964file-title a, #yiv2705874964 div.yiv2705874964file-title a:active, #yiv2705874964 div.yiv2705874964file-title a:hover, #yiv2705874964 div.yiv2705874964file-title a:visited {text-decoration:none;}#yiv2705874964 div.yiv2705874964photo-title a, #yiv2705874964 div.yiv2705874964photo-title a:active, #yiv2705874964 div.yiv2705874964photo-title a:hover, #yiv2705874964 div.yiv2705874964photo-title a:visited {text-decoration:none;}#yiv2705874964 div#yiv2705874964ygrp-mlmsg #yiv2705874964ygrp-msg p a span.yiv2705874964yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv2705874964 .yiv2705874964green {color:#628c2a;}#yiv2705874964 .yiv2705874964MsoNormal {margin:0 0 0 0;}#yiv2705874964 o {font-size:0;}#yiv2705874964 #yiv2705874964photos div {float:left;width:72px;}#yiv2705874964 #yiv2705874964photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv2705874964 #yiv2705874964photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv2705874964 #yiv2705874964reco-category {font-size:77%;}#yiv2705874964 #yiv2705874964reco-desc {font-size:77%;}#yiv2705874964 .yiv2705874964replbq {margin:4px;}#yiv2705874964 #yiv2705874964ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv2705874964 #yiv2705874964ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv2705874964 #yiv2705874964ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv2705874964 #yiv2705874964ygrp-mlmsg select, #yiv2705874964 input, #yiv2705874964 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv2705874964 #yiv2705874964ygrp-mlmsg pre, #yiv2705874964 code {font:115% monospace;}#yiv2705874964 #yiv2705874964ygrp-mlmsg * {line-height:1.22em;}#yiv2705874964 #yiv2705874964ygrp-mlmsg #yiv2705874964logo {padding-bottom:10px;}#yiv2705874964 #yiv2705874964ygrp-msg p a {font-family:Verdana;}#yiv2705874964 #yiv2705874964ygrp-msg p#yiv2705874964attach-count span {color:#1E66AE;font-weight:700;}#yiv2705874964 #yiv2705874964ygrp-reco #yiv2705874964reco-head {color:#ff7900;font-weight:700;}#yiv2705874964 #yiv2705874964ygrp-reco {margin-bottom:20px;padding:0px;}#yiv2705874964 #yiv2705874964ygrp-sponsor #yiv2705874964ov li a {font-size:130%;text-decoration:none;}#yiv2705874964 #yiv2705874964ygrp-sponsor #yiv2705874964ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv2705874964 #yiv2705874964ygrp-sponsor #yiv2705874964ov ul {margin:0;padding:0 0 0 8px;}#yiv2705874964 #yiv2705874964ygrp-text {font-family:Georgia;}#yiv2705874964 #yiv2705874964ygrp-text p {margin:0 0 1em 0;}#yiv2705874964 #yiv2705874964ygrp-text tt {font-size:120%;}#yiv2705874964 #yiv2705874964ygrp-vital ul li:last-child {border-right:none !important;}#yiv2705874964

 
Reply | Threaded
Open this post in threaded view
|

Re: Fw: "Doubt regarding data structures"

opencv-users mailing list
In reply to this post by opencv-users mailing list