@@ -572,7 +572,7 @@ \section*{Instructions}
572572Write a class named \texttt {ColorFilter } with 6 methods with the following exact signatures:
573573
574574\begin {minted }[bgcolor=darcula-back,formatcom=\color {lightgrey},fontsize=\scriptsize ]{python}
575- def invert(array):
575+ def invert(self, array):
576576 "" "
577577 Inverts the color of the image received as a numpy array.
578578 Args:
@@ -588,7 +588,7 @@ \section*{Instructions}
588588 "" "
589589\end {minted }
590590\begin {minted }[bgcolor=darcula-back,formatcom=\color {lightgrey},fontsize=\scriptsize ]{python}
591- def to_blue(array):
591+ def to_blue(self, array):
592592 "" "
593593 Applies a blue filter to the image received as a numpy array.
594594 Args:
@@ -604,7 +604,7 @@ \section*{Instructions}
604604 "" "
605605\end {minted }
606606\begin {minted }[bgcolor=darcula-back,formatcom=\color {lightgrey},fontsize=\scriptsize ]{python}
607- def to_green(array):
607+ def to_green(self, array):
608608 "" "
609609 Applies a green filter to the image received as a numpy array.
610610 Args:
@@ -620,7 +620,7 @@ \section*{Instructions}
620620 "" "
621621\end {minted }
622622\begin {minted }[bgcolor=darcula-back,formatcom=\color {lightgrey},fontsize=\scriptsize ]{python}
623- def to_red(array):
623+ def to_red(self, array):
624624 "" "
625625 Applies a red filter to the image received as a numpy array.
626626 Args:
@@ -636,7 +636,7 @@ \section*{Instructions}
636636 "" "
637637\end {minted }
638638\begin {minted }[bgcolor=darcula-back,formatcom=\color {lightgrey},fontsize=\scriptsize ]{python}
639- def to_celluloid(array):
639+ def to_celluloid(self, array):
640640 "" "
641641 Applies a celluloid filter to the image received as a numpy array.
642642 Celluloid filter must display at least four thresholds of shades.
@@ -657,7 +657,7 @@ \section*{Instructions}
657657 "" "
658658\end {minted }
659659\begin {minted }[bgcolor=darcula-back,formatcom=\color {lightgrey},fontsize=\scriptsize ]{python}
660- def to_grayscale(array, filter, **kwargs):
660+ def to_grayscale(self, array, filter, **kwargs):
661661 "" "
662662 Applies a grayscale filter to the image received as a numpy array.
663663 For filter = 'mean' /'m': performs the mean of RBG channels.
0 commit comments