Re: That's not the Answer to Your Question
- From: vectorizor <vectorizor@xxxxxxxxxxxxxx>
- Date: 17 Apr 2007 06:40:20 -0700
ooppss, I cliked the wrong button!
// img stored row-wise, i.e. img[row*width + col]
// horizontal pass
for row=0:height
for col=0:width-1
img[row][col] = 0.2f*img[row][col] + 0.2f*img[row][col+1];
// vertical pass
for col=0:width
for row=0:height-1
img[row][col] = 0.2f*img[row][col] + 0.2f*img[row+1][col];
this is plain vanilla C, piece of cake to re-create it.
Also, this is only an excerpt. Some obvious optimisation could be
perfomed, but due to storage requirements, the whole program has to be
written that way. This nevertheless clearly demonstrates the issue.
.
- Follow-Ups:
- Re: That's not the Answer to Your Question
- From: Martin Brown
- Re: That's not the Answer to Your Question
- From: aruzinsky
- Re: That's not the Answer to Your Question
- References:
- Block processing
- From: vectorizor
- Re: That's not the Answer to Your Question
- From: Martin Brown
- Re: That's not the Answer to Your Question
- From: aruzinsky
- Re: That's not the Answer to Your Question
- From: Martin Brown
- Block processing
- Prev by Date: Re: That's not the Answer to Your Question
- Next by Date: Re: That's not the Answer to Your Question
- Previous by thread: Re: That's not the Answer to Your Question
- Next by thread: Re: That's not the Answer to Your Question
- Index(es):