o
    oi                  
   @   sB   d dl mZmZ d dlmZmZ dededededef
dd	Zd
S )    )Tensorstack)KORNIA_CHECK_IS_COLORKORNIA_CHECK_IS_TENSORimager_shiftg_shiftb_shiftreturnc                 C   sT   t |  t| d| j  |||g}| t|dddddd|  jddd}|S )zShift rgb channels.

    Shift each image's channel by either r_shift for red, g_shift for green and b_shift for blue channels.
    zwith shape    )dim   r   )minmax)r   r   shaper   viewtoclamp_)r   r   r   r	   shiftsshifted r   L/home/ubuntu/.local/lib/python3.10/site-packages/kornia/enhance/shift_rgb.py	shift_rgb   s
   
,r   N)kornia.corer   r   kornia.core.checkr   r   r   r   r   r   r   <module>   s   "