

from cva import destroyAllWindows, imread, imshow, waitKey


def        __lowerCAmelCase    (       _UpperCamelCase		:  Optional[Any]	)		->							List[str]:
 '''simple docstring'''


 SCREAMING_SNAKE_CASE						,	SCREAMING_SNAKE_CASE								=			img.shape[0], img.shape[1]

 # converting each pixel's color to its negative
 for i in range(_UpperCamelCase	):
  for j in range(_UpperCamelCase	):
   SCREAMING_SNAKE_CASE								=			[2_55, 2_55, 2_55] - img[i][j]

 return img


if __name__ == "__main__":
      # read original image
      a_    :						Any    		=      imread("image_data/lena.jpg", 1)

      # convert to its negative
      a_    :						Dict    		=      convert_to_negative(img)

      # show result image
      imshow("negative of original image", img)
      waitKey(0)
      destroyAllWindows()




# limitations under the License.

# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works

from .pipelines import DiffusionPipeline, ImagePipelineOutput  # noqa: F401
from .utils import deprecate


deprecate(
    "pipelines_utils",
    "0.22.0",
    "Importing `DiffusionPipeline` or `ImagePipelineOutput` from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead.",
    standard_warn=False,
    stacklevel=3,
)

