Skip to content

Commit

Permalink
docs: added channel amount info to convert_to_grayscale methods in …
Browse files Browse the repository at this point in the history
…`Image` and `ImageList` (#834)

Closes #833 

### Summary of Changes

docs: added channel amount info to `convert_to_grayscale` methods in
`Image` and `ImageList`
  • Loading branch information
Marsmaennchen221 authored Jun 14, 2024
1 parent 487854c commit e831401
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/safeds/data/image/containers/_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ def convert_to_grayscale(self) -> Image:
"""
Return a new `Image` that is converted to grayscale.
The new image will have the same amount of channels as the original image.
If you want to change the amount of channels used, please use the method [change_channel][safeds.data.image.containers._image.Image.change_channel].
The original image is not modified.
Returns
Expand Down
3 changes: 3 additions & 0 deletions src/safeds/data/image/containers/_image_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,9 @@ def convert_to_grayscale(self) -> ImageList:
"""
Return a new `ImageList` with all images converted to grayscale.
The new image list will have the same amount of channels as the original image list.
If you want to change the amount of channels used, please use the method [change_channel][safeds.data.image.containers._image_list.ImageList.change_channel].
The original image list is not modified.
Returns
Expand Down

0 comments on commit e831401

Please sign in to comment.