943,580 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 5836
  • C++ RSS
Oct 2nd, 2008
0

Gaussian Noise function for images

Expand Post »
How for me to create gaussian noise to be put into images where the gaussian noise have several level of noise. Eg) i can select 10% until 100% for the level of gaussian noise to be inserted into the images.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
happy8899 is offline Offline
24 posts
since Aug 2006
Oct 2nd, 2008
0

Re: Gaussian Noise function for images

The easy way would be to use the OpenCV library which has special function for this.
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Nick Evan is offline Offline
4,132 posts
since Oct 2006
Oct 2nd, 2008
0

Re: Gaussian Noise function for images

Click to Expand / Collapse  Quote originally posted by niek_e ...
The easy way would be to use the OpenCV library which has special function for this.
How to use tis OpenCV i had install it but it seems like consist of library file and i had install a OpenCV.exe but i seems like do not knw how to use it. Beside this, is there any others methods
Reputation Points: 10
Solved Threads: 0
Newbie Poster
happy8899 is offline Offline
24 posts
since Aug 2006
Oct 3rd, 2008
0

Re: Gaussian Noise function for images

Click to Expand / Collapse  Quote originally posted by happy8899 ...
How to use tis OpenCV i had install it but it seems like consist of library file and i had install a OpenCV.exe but i seems like do not knw how to use it.
You install the file and then you read the documentation, or open one of the many example files that came with it.

Click to Expand / Collapse  Quote originally posted by happy8899 ...
Beside this, is there any others methods
Yes there are. But if you don't understand how to install OpenCV, I wouldn't start on them...
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Nick Evan is offline Offline
4,132 posts
since Oct 2006
Oct 3rd, 2008
0

Re: Gaussian Noise function for images

Click to Expand / Collapse  Quote originally posted by niek_e ...
You install the file and then you read the documentation, or open one of the many example files that came with it.



Yes there are. But if you don't understand how to install OpenCV, I wouldn't start on them...
I already install the opencv and see the sample but i need to copy paste in the dll files which i downloaded. But when i run the code using visual studio it seems like cannot run. What i need to do to run the code?? I nw just double click the code then open in visual studio. Izzit i need to create a new project and copy paste to code to let it run
Reputation Points: 10
Solved Threads: 0
Newbie Poster
happy8899 is offline Offline
24 posts
since Aug 2006
Oct 3rd, 2008
0

Re: Gaussian Noise function for images

I'm pretty sure there's oodles of freely available guides available to tell you how to use openCV. Try http://www.google.com/search?hl=en&r...+visual-studio

Failing that, I found the following works for me:

Basically what you have to do is set up your project to include the following files:
"c:/Program Files/OpenCV/lib/cv.lib"
"c:/Program Files/OpenCV/lib/cvaux.lib"
"c:/Program Files/OpenCV/lib/cvcam.lib"
"c:/Program Files/OpenCV/lib/cxcore.lib"
"c:/Program Files/OpenCV/lib/cxts.lib"
"c:/Program Files/OpenCV/lib/highgui.lib"
"c:/Program Files/OpenCV/lib/trs.lib"

You'll probably need to specify include file paths:
C:\Program Files\OpenCV\cv\include
C:\Program Files\OpenCV\cvaux\include
C:\Program Files\OpenCV\cxcore\include
C:\Program Files\OpenCV\otherlibs\highgui
C:\Program Files\OpenCV\otherlibs\cvcam\include

You'll may need to specify library file paths:
C:\Program Files\OpenCV\lib

You will need to include some of the following header files:
#include "cv.h"
#include "cvaux.h"
#include "highgui.h"
Last edited by dougy83; Oct 3rd, 2008 at 6:24 am.
Reputation Points: 85
Solved Threads: 45
Posting Whiz in Training
dougy83 is offline Offline
275 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: how to identify which OS I am using
Next Thread in C++ Forum Timeline: Custom class vector iterator error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC