Skip to content

Convert DynamicImage to Image a in Pixel class? #175

Open

Description

@Zemyla

I think the Pixel class should have a pair of functions to convert to and from a DynamicImage:

class (Storable (PixelBaseComponent a), Num (PixelBaseComponent a), Eq a) => Pixel a where
  ...

  toDynamicImage :: Image a -> DynamicImage

  fromDynamicImage :: DynamicImage -> Maybe (Image a)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions