-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gaussian Noise Implementation #29
base: master
Are you sure you want to change the base?
Conversation
We first extract some information from the image - width, height etc., convert to luma and compute gradients. Then, for each pixel (x,y), we compute rho = xcos(theta) + ysin(theta). After a few more transformations and finding the bins with highest values, we generate the resulting image.
Preliminary Hough transform implementation
It is used to improve contrast in images and works by performing enhancement on small 'contextual' regions or neighborhood of each pixel in the given image.
Adaptive Histogram Equalization
Laplacian filter
Fix the horizontal kernel of Sobel filter.
* Mean filter version 1
If you look at documentation of makeImageR closely you'll notice that it talks about dimensions |
gaussianNoise image mean sigma g = accBin | ||
where | ||
widthMax, heightMax :: Int | ||
widthMax = ((rows image) - 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
width
/= rows
, as in the comment.
where | ||
widthMax, heightMax :: Int | ||
widthMax = ((rows image) - 1) | ||
heightMax = ((cols image) - 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
height
/= cols
, as in the comment
Also, please try to make sure that the code at least compiles before submitting a PR. Just run |
@lehins Sorry sir but actually, I had a query in a part or two and hence left a couple things deliberately. I had a doubt whether this was the correct way. Secondly, I was not sure what list/array to use for the purpose. As in lines 87-90, I'm unsure how to convert and use the generated values from |
An implementation of adding Gaussian noise to images. A few changes yet to be made before producing sample outputs.