Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@khilanravani
Copy link

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.

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.
@khilanravani
Copy link
Author

Sample input/output :
input
ahe

--
-- Usage :
--
-- >>> img <- readImageY VU "yield.jpg"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be "images/yield.jpg"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sir, I'll change it.

-- >>> let neighborhoodFactor = (P.read input2 :: Int)
-- >>> let aheImage :: Image VU RGB Double
-- >>> aheImage = ahe img thetaSz distSz neighborhoodFactor
-- >>> writeImage "test.png" (toImageRGB aheImage)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this should be "images/yield_ahe.png", since that's what it is called in the repo.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sir, very sorry. Will change it.

@lehins
Copy link
Owner

lehins commented Jun 22, 2018

@khilanravani This PR looks great. It seems though that you added another copy of yield.jpg image to the PR by mistake, since it is already in images/yield.jpg.

@khilanravani
Copy link
Author

@lehins Thank u sir! Yes sir, I'm very sorry. I'll correct it.

@lehins lehins merged commit 2d1de1a into lehins:master Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants