Click here to Skip to main content
13,705,245 members

C / C++ / MFC

 
QuestionDefault Stack Size Pin
ForNow10-Feb-18 17:02
memberForNow10-Feb-18 17:02 
AnswerRe: Default Stack Size Pin
Richard MacCutchan10-Feb-18 21:23
protectorRichard MacCutchan10-Feb-18 21:23 
GeneralRe: Default Stack Size Pin
ForNow11-Feb-18 3:55
memberForNow11-Feb-18 3:55 
GeneralRe: Default Stack Size Pin
Richard MacCutchan11-Feb-18 6:32
protectorRichard MacCutchan11-Feb-18 6:32 
GeneralRe: Default Stack Size Pin
ForNow11-Feb-18 6:48
memberForNow11-Feb-18 6:48 
GeneralRe: Default Stack Size Pin
Richard MacCutchan11-Feb-18 7:10
protectorRichard MacCutchan11-Feb-18 7:10 
GeneralRe: Default Stack Size Pin
ForNow11-Feb-18 7:13
memberForNow11-Feb-18 7:13 
Questionsmoothing issue Pin
10-Feb-18 1:59
member10-Feb-18 1:59 
Dear Respected friends.

good morning. i hope you are fine.
I need your help. I have a problem with smoothing of output. I have this code ..
it exports stair stepping.

Can you help me.?

 int Imax = 10;
    for ( int I=0; I<Imax; I++ ) {

  for (int iy=0; iy<ny; iy++) {
    for (int ix=0; ix<nx; ix++) {
      float v1 = v[(iy*nx+ix)*nz];
      int k1 =0;
      int k0 =0;
      int jstart = 0;
      while (k1 < nz) {
        int k;
        for (k=k1; k<nz; k++) {
      float v2 = v[(iy*nx+ix)*nz + k];

      if ( 100. * fabs(v2 -v1) / v1 >= sharpeningThreshold_percentage/2. && jstart == 0 ) {
        k0 = k;
        jstart = 1;
      }


      if ( 100. * fabs(v2 -v1) / v1 >= sharpeningThreshold_percentage ) {
        v1     = v2;
        k1     = k;
        jstart = 0;
        for ( int kk=k0; kk<=k; kk++ )
          v[(iy*nx+ix)*nz + kk] = v1;
        k0 = k1;
        break;
      }
      v[(iy*nx+ix)*nz + k] = v1;
        }
        if ( k >= nz-1 )
      break;
      }
    }
  }

  if ( I < Imax-1 )
    smooth(10, 1, v, nx, ny, nz);

    } // sharpening -smoothing I-loop closed

  } // if sharpeningThreshold_percentage  closed

}

AnswerRe: smoothing issue Pin
phil.o10-Feb-18 4:57
professionalphil.o10-Feb-18 4:57 
GeneralRe: smoothing issue Pin
10-Feb-18 5:04
member10-Feb-18 5:04 
QuestionHow do we cast void type Pin
luplup9-Feb-18 14:46
memberluplup9-Feb-18 14:46 
AnswerRe: How do we cast void type Pin
Richard MacCutchan9-Feb-18 21:49
protectorRichard MacCutchan9-Feb-18 21:49 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 7:15
memberluplup10-Feb-18 7:15 
GeneralRe: How do we cast void type Pin
Richard MacCutchan10-Feb-18 9:54
protectorRichard MacCutchan10-Feb-18 9:54 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 11:35
memberluplup10-Feb-18 11:35 
GeneralRe: How do we cast void type Pin
Richard MacCutchan10-Feb-18 21:18
protectorRichard MacCutchan10-Feb-18 21:18 
AnswerRe: How do we cast void type Pin
luplup12-Feb-18 8:00
memberluplup12-Feb-18 8:00 
GeneralRe: How do we cast void type Pin
jeron112-Feb-18 8:06
memberjeron112-Feb-18 8:06 
GeneralRe: How do we cast void type Pin
Richard MacCutchan12-Feb-18 8:24
protectorRichard MacCutchan12-Feb-18 8:24 
GeneralRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 10:01
memberVictor Nijegorodov10-Feb-18 10:01 
AnswerRe: How do we cast void type Pin
jschell10-Feb-18 6:40
memberjschell10-Feb-18 6:40 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 8:03
memberluplup10-Feb-18 8:03 
QuestionRe: How do we cast void type Pin
Victor Nijegorodov10-Feb-18 8:25
memberVictor Nijegorodov10-Feb-18 8:25 
GeneralRe: How do we cast void type Pin
luplup10-Feb-18 8:32
memberluplup10-Feb-18 8:32 
GeneralRe: How do we cast void type Pin
Richard MacCutchan10-Feb-18 9:58
protectorRichard MacCutchan10-Feb-18 9:58 

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.


Advertise | Privacy | Cookies | Terms of Service
Web04-2016 | 2.8.180920.1 | Last Updated 22 Sep 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid