Skip to content

Commit

Permalink
chore: remove help from objects
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay "XA" Mestry <[email protected]>
  • Loading branch information
xames3 committed Dec 2, 2023
1 parent 9074200 commit 88571d0
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions pixel_craft/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def __getattribute__(cls, __name: str) -> t.Any | _MatLike:
class Image(metaclass=ImageMeta):
"""Primary image class for loading, saving and displaying the image."""

_help: str
__supported_operations: _SupportedOperations = {}

def __init_subclass__(cls) -> None:
Expand Down Expand Up @@ -210,12 +209,6 @@ class Grayscale(Image):
information lost.
"""

_help: str = (
"Convert the source image from its current color space to grayscale. "
"In case of a transformation to-from RGB color space, the order of "
"the channels should be specified explicitly (RGB or BGR)."
)

@classmethod
def __call__(cls, **kwargs: t.Any) -> type[Image]:
"""Convert source image to grayscale."""
Expand All @@ -227,8 +220,6 @@ def __call__(cls, **kwargs: t.Any) -> type[Image]:
class Invert(Image):
"""Class for inverting the image."""

_help: str = "Create a digital negative of the source image."

@classmethod
def __call__(cls, **kwargs) -> type[t.Self]:
"""Invert source image to a digital negative."""
Expand All @@ -241,8 +232,6 @@ def __call__(cls, **kwargs) -> type[t.Self]:
class StandardBlur(Image):
"""Class for blurring image using normalized box filter."""

_help: str = "Blur the source image using normalized box filter."

@classmethod
def __call__(cls, **kwargs: t.Any) -> type[Image]:
"""Blurs the source image using the normalized box filter.
Expand All @@ -264,8 +253,6 @@ def __call__(cls, **kwargs: t.Any) -> type[Image]:
class GaussianBlur(Image):
"""Class for blurring image using Gaussian filter."""

_help: str = "Blur the source image using a Gaussian filter."

@classmethod
def __call__(cls, **kwargs: t.Any) -> type[Image]:
"""Blurs the source image using a Gaussian filter.
Expand All @@ -291,8 +278,6 @@ def __call__(cls, **kwargs: t.Any) -> type[Image]:
class Canny(Image):
"""Class for detecting edges using Canny Edge Detection."""

_help: str = "Finds edges in an image using the Canny algorithm."

@classmethod
def __call__(cls, **kwargs: t.Any) -> type[Image]:
"""Finds edges in an image using the Canny algorithm.
Expand Down Expand Up @@ -332,8 +317,6 @@ def __call__(cls, **kwargs: t.Any) -> type[Image]:
class Sobel(Image):
"""Class for detecting edges using Sobel operator/filter."""

_help: str = "Finds edges in an image using Sobel operator."

@classmethod
def __call__(cls, **kwargs: t.Any) -> type[Image]:
"""Finds edges in an image using Sobel operator.
Expand Down Expand Up @@ -399,8 +382,6 @@ def __call__(cls, **kwargs: t.Any) -> type[Image]:
class Prewitt(Image):
"""Class for detecting edges using Prewitt operator/filter."""

_help: str = "Finds edges in an image using Prewitt operator."

@classmethod
def __call__(cls, **kwargs: t.Any) -> type[Image]:
"""Finds edges in an image using Prewitt operator.
Expand Down Expand Up @@ -451,8 +432,6 @@ def __call__(cls, **kwargs: t.Any) -> type[Image]:
class Histogram(Image):
"""Class for representing image as Histogram."""

_help: str = "Represent image as histogram."

@classmethod
def __call__(cls, **kwargs: t.Any) -> type[Image]:
"""Show histogram plot using Matplotlib."""
Expand Down

0 comments on commit 88571d0

Please sign in to comment.