Skip to content

Commit

Permalink
Minor documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelJ committed Feb 5, 2015
1 parent e8f9db0 commit 4ecf055
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
-*-change-log-*-

v0.2.0.2 February 2014
* Minor documentation improvements.

v0.2.0.1 January 2014
* Setup.hs script.

Expand Down
2 changes: 1 addition & 1 deletion friday.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: friday
-- +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 0.2.0.1
version: 0.2.0.2
synopsis: A functional image processing library for Haskell.
homepage: https://github.com/RaphaelJ/friday
license: LGPL-3
Expand Down
8 changes: 8 additions & 0 deletions src/Vision/Image/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Pixel p where
type PixelChannel p

-- | Returns the number of channels of the pixel.
--
-- Must not consume 'p' (could be 'undefined').
pixNChannels :: p -> Int

Expand Down Expand Up @@ -124,6 +125,7 @@ class Storable (ImagePixel i) => MaskedImage i where
type ImageChannel i = PixelChannel (ImagePixel i)

-- | Provides an abstraction over the internal representation of an image.
--
-- Image origin is located in the lower left corner.
class MaskedImage i => Image i where
-- | Returns the pixel value at 'Z :. y :. x'.
Expand Down Expand Up @@ -155,8 +157,10 @@ class FromFunction i where

-- | Generates an image by calling the last function for each pixel of the
-- constructed image.
--
-- The first function is called for each line, generating a line invariant
-- value.
--
-- This function is faster for some image representations as some recurring
-- computation can be cached.
fromFunctionLine :: Size -> (Int -> a)
Expand All @@ -167,8 +171,10 @@ class FromFunction i where

-- | Generates an image by calling the last function for each pixel of the
-- constructed image.
--
-- The first function is called for each column, generating a column
-- invariant value.
--
-- This function *can* be faster for some image representations as some
-- recurring computations can be cached. However, it may requires a vector
-- allocation for these values. If the column invariant is cheap to
Expand All @@ -181,8 +187,10 @@ class FromFunction i where

-- | Generates an image by calling the last function for each pixel of the
-- constructed image.
--
-- The two first functions are called for each line and for each column,
-- respectively, generating common line and column invariant values.
--
-- This function is faster for some image representations as some recurring
-- computation can be cached. However, it may requires a vector
-- allocation for column values. If the column invariant is cheap to
Expand Down

0 comments on commit 4ecf055

Please sign in to comment.