Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Vissual C++ express 2008 Pin
Richard MacCutchan29-Jun-10 1:45
mveRichard MacCutchan29-Jun-10 1:45 
QuestionImage Matrix Pin
Harish Makaram28-Jun-10 3:34
Harish Makaram28-Jun-10 3:34 
AnswerRe: Image Matrix Pin
chandu00428-Jun-10 20:16
chandu00428-Jun-10 20:16 
GeneralRe: Image Matrix Pin
Harish Makaram28-Jun-10 23:01
Harish Makaram28-Jun-10 23:01 
GeneralRe: Image Matrix Pin
chandu00429-Jun-10 0:39
chandu00429-Jun-10 0:39 
GeneralRe: Image Matrix Pin
Maximilien29-Jun-10 0:47
Maximilien29-Jun-10 0:47 
GeneralRe: Image Matrix Pin
Harish Makaram29-Jun-10 1:52
Harish Makaram29-Jun-10 1:52 
GeneralRe: Image Matrix Pin
chandu00429-Jun-10 2:54
chandu00429-Jun-10 2:54 
1.if your original matrix of size 128/128 is say "M",
2.write a function as follows
ComputeSubMatrix(int row,int col)
{
    int avg=0;
    for(int i=row;i'<'row+4;i++)
    {
        for(int j=col;j'<'col+4;j++)
        {
            avg+=M[j][i];
        }
    }
    for(i=row;i'<'row+4;i++)
    {
        for(int j=col;j'<'col+4;j++)
        {
            M[j][i]=avg-m[j][i];
        }
    }
}
//Note:please understand '<' as less than symbol .(there is some display problem)

3.now, you call this function in nested loops, by passing the start row and column of each sub matrix.
4.and this should solve your problem.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.

GeneralRe: Image Matrix Pin
Harish Makaram29-Jun-10 3:21
Harish Makaram29-Jun-10 3:21 
GeneralRe: Image Matrix Pin
chandu00429-Jun-10 4:14
chandu00429-Jun-10 4:14 
GeneralRe: Image Matrix Pin
chandu00429-Jun-10 16:22
chandu00429-Jun-10 16:22 
QuestionRedrawWindow + ListControl Pin
MsmVc28-Jun-10 1:21
MsmVc28-Jun-10 1:21 
AnswerRe: RedrawWindow + ListControl Pin
Niklas L28-Jun-10 1:34
Niklas L28-Jun-10 1:34 
AnswerRe: RedrawWindow + ListControl Pin
Mohan Ramachandra28-Jun-10 2:56
Mohan Ramachandra28-Jun-10 2:56 
QuestionReply for ComboBox Sorting Alphabetically Pin
raju_shiva27-Jun-10 23:40
raju_shiva27-Jun-10 23:40 
AnswerRe: Reply for ComboBox Sorting Alphabetically Pin
Niklas L28-Jun-10 1:03
Niklas L28-Jun-10 1:03 
GeneralRe: Reply for ComboBox Sorting Alphabetically [modified] Pin
raju_shiva28-Jun-10 18:10
raju_shiva28-Jun-10 18:10 
QuestionFullScrean listbox Pin
aangerma27-Jun-10 22:34
aangerma27-Jun-10 22:34 
AnswerRe: FullScrean listbox Pin
Mohan Ramachandra27-Jun-10 22:48
Mohan Ramachandra27-Jun-10 22:48 
GeneralRe: FullScrean listbox Pin
aangerma27-Jun-10 23:21
aangerma27-Jun-10 23:21 
GeneralRe: FullScrean listbox Pin
Mohan Ramachandra28-Jun-10 1:25
Mohan Ramachandra28-Jun-10 1:25 
AnswerRe: FullScrean listbox Pin
Niklas L27-Jun-10 22:49
Niklas L27-Jun-10 22:49 
GeneralRe: FullScrean listbox Pin
aangerma28-Jun-10 1:24
aangerma28-Jun-10 1:24 
GeneralRe: FullScrean listbox Pin
Niklas L28-Jun-10 1:36
Niklas L28-Jun-10 1:36 
GeneralRe: FullScrean listbox Pin
aangerma28-Jun-10 1:42
aangerma28-Jun-10 1:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.