Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFile Open failed GetLastError = 3 Pin
yu-jian16-May-12 5:20
yu-jian16-May-12 5:20 
GeneralRe: CFile Open failed GetLastError = 3 Pin
Richard Andrew x6416-May-12 5:54
professionalRichard Andrew x6416-May-12 5:54 
GeneralRe: CFile Open failed GetLastError = 3 Pin
Richard MacCutchan16-May-12 7:54
mveRichard MacCutchan16-May-12 7:54 
GeneralRe: CFile Open failed GetLastError = 3 Pin
yu-jian16-May-12 15:07
yu-jian16-May-12 15:07 
GeneralRe: CFile Open failed GetLastError = 3 Pin
CPallini16-May-12 6:55
mveCPallini16-May-12 6:55 
GeneralRe: CFile Open failed GetLastError = 3 Pin
Richard MacCutchan16-May-12 7:55
mveRichard MacCutchan16-May-12 7:55 
QuestionHow to Define Horizontal profile ? c++ Pin
Pixel8615-May-12 16:35
Pixel8615-May-12 16:35 
AnswerRe: How to Define Horizontal profile ? c++ Pin
enhzflep15-May-12 20:08
enhzflep15-May-12 20:08 
Gday,

There's a page at Wikipedia on Fixed Pattern Noise, see here[^].

I think you are (probably) interested in calculating the DSNU.

If this is the case, I believe it involves the following steps.

1. Initialize totalLuminosity to 0.0
2. Create an array of numToProcess (400) elements - lumArray
 3. Get pixel value
 4. Convert colour(RGB) to HSL (Hus Saturation Luminosity)
 5. Add the Luminosity value to totalLuminosity
 6. Set lumArray[curPixelNum] to Luminosity
 7. If #pixels processed < numToProcess(400) goto #3
8. Divide totalLuminosity by numToProcess(400) - this is your avgLuminosity
9. Create a second array with numToProcess (400) elements - diffArray
10. For each element in array from step 2, set difArray[i] = avgLuminosity - lumArray[i]


This will give you an array that tells you the difference between the brightness of each pixel and the average brightness of all pixels in the line.

Cheers,
S.
Questionunreadable content written by fwrite() Pin
dilipkumarc15-May-12 5:46
dilipkumarc15-May-12 5:46 
AnswerRe: unreadable content written by fwrite() Pin
Richard MacCutchan15-May-12 6:29
mveRichard MacCutchan15-May-12 6:29 
AnswerRe: unreadable content written by fwrite() Pin
David Crow15-May-12 6:34
David Crow15-May-12 6:34 
AnswerRe: unreadable content written by fwrite() Pin
Andy41115-May-12 23:44
Andy41115-May-12 23:44 
QuestionUSB CreateFile() Access is denied Pin
__John_15-May-12 3:58
__John_15-May-12 3:58 
GeneralRe: USB CreateFile() Access is denied Pin
David Crow15-May-12 4:01
David Crow15-May-12 4:01 
GeneralRe: USB CreateFile() Access is denied Pin
__John_15-May-12 4:23
__John_15-May-12 4:23 
QuestionCreate BMP of 8bpp Pin
john563215-May-12 3:41
john563215-May-12 3:41 
AnswerRe: Create BMP of 8bpp Pin
Chris Losinger15-May-12 4:33
professionalChris Losinger15-May-12 4:33 
GeneralMessage Removed Pin
15-May-12 21:41
john563215-May-12 21:41 
GeneralRe: Create BMP of 8bpp Pin
enhzflep15-May-12 23:30
enhzflep15-May-12 23:30 
QuestionRead and Write a same file in FILE Pin
D.Manivelan15-May-12 2:29
D.Manivelan15-May-12 2:29 
AnswerRe: Read and Write a same file in FILE Pin
_Flaviu15-May-12 2:53
_Flaviu15-May-12 2:53 
AnswerRe: Read and Write a same file in FILE Pin
CPallini15-May-12 2:57
mveCPallini15-May-12 2:57 
AnswerRe: Read and Write a same file in FILE Pin
Richard MacCutchan15-May-12 2:59
mveRichard MacCutchan15-May-12 2:59 
AnswerRe: Read and Write a same file in FILE Pin
Aescleal15-May-12 4:38
Aescleal15-May-12 4:38 
QuestionIn C, how to read data from a file Pin
Baddy_Bad_Boy15-May-12 1:25
Baddy_Bad_Boy15-May-12 1:25 

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.