+
    Ai                     .    R t ^ RIt^ RIt^ RItR tR tR# )a)  Analytical transformations from raw image moments to central moments.

The expressions for the 2D central moments of order <=2 are often given in
textbooks. Expressions for higher orders and dimensions were generated in SymPy
using ``tools/precompute/moments_sympy.py`` in the GitHub repository.

Nc                   V P                   pV P                  ^ ,          ^,
          pV P                  pV P                  \        P
                  RR7      p \        P                  ! V 4      pV^8  g   VR9  d   \        R4      hT pV^8X  Ed   VR,          VR,          ,          pVR,          VR,          ,          pVR,          VR&   V^8  da   VR,          WeR,          ,          ,
          VR&   VR	,          WeR,          ,          ,
          VR	&   VR
,          WuR,          ,          ,
          VR
&   V^8  Edi   VR,          ^V,          VR,          ,          ,
          WuR	,          ,          ,
          V^,          VR,          ,          ,           Wv,          VR,          ,          ,           VR&   VR,          ^V,          VR,          ,          ,
          WeR
,          ,          ,
          ^V,          V,          VR,          ,          ,           VR&   VR,          ^V,          VR	,          ,          ,
          ^V^,          ,          VR,          ,          ,           VR&   VR,          ^V,          VR
,          ,          ,
          ^V^,          ,          VR,          ,          ,           VR&   EMVR,          VR,          ,          pVR,          VR,          ,          pVR,          VR,          ,          pVR,          VR&   V^8  d   V) VR,          ,          VR,          ,           VR&   V) VR,          ,          VR,          ,           VR&   V) VR,          ,          VR,          ,           VR&   V) VR,          ,          VR,          ,           VR&   V) VR,          ,          VR,          ,           VR&   V) VR,          ,          VR,          ,           VR&   V^8  Ed   ^V^,          ,          VR,          ,          ^V,          VR,          ,          ,
          VR,          ,           VR&   V) VR,          ,          ^V,          WuR,          ,          VR,          ,
          ,          ,           VR,          ,           VR&   V^,          VR,          ,          ^V,          VR,          ,          ,
          WVR,          ,          VR,          ,
          ,          ,           VR,          ,           VR&   ^V^,          ,          VR,          ,          ^V,          VR,          ,          ,
          VR,          ,           VR&   V) VR,          ,          ^V,          WeR,          ,          VR,          ,
          ,          ,           VR,          ,           VR&   V) VR,          ,          WvVR,          ,          VR,          ,
          ,          ,           WVR,          ,          VR,          ,
          ,          ,           VR,          ,           VR&   V) VR,          ,          ^V,          V) VR,          ,          VR,          ,           ,          ,
          VR,          ,           VR&   V^,          VR,          ,          ^V,          VR,          ,          ,
          WVR,          ,          VR,          ,
          ,          ,           VR ,          ,           VR &   V^,          VR,          ,          ^V,          VR,          ,          ,
          WvVR,          ,          VR,          ,
          ,          ,           VR!,          ,           VR!&   ^V^,          ,          VR,          ,          ^V,          VR,          ,          ,
          VR",          ,           VR"&   VP                  VRR7      # )#a#  Analytical formulae for 2D and 3D central moments of order < 4.

`moments_raw_to_central` will automatically call this function when
ndim < 4 and order < 4.

Parameters
----------
moments_raw : ndarray
    The raw moments.

Returns
-------
moments_central : ndarray
    The central moments.
F)copyz:This function only supports 2D or 3D moments of order < 4.      )       )r   r   )r   r   )r   r   )r   r   )r   r   )r   r   )r   r   )r   r   )r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )ndimshapedtypeastypenpfloat64
zeros_like
ValueError)	moments_rawr	   orderfloat_dtypemoments_centralmcxcyczs	   &        a/var/www/html/photoedit/myenv/lib/python3.14/site-packages/skimage/measure/_moments_analytical.py_moments_raw_to_central_fastr      s%     Da 1$E##K$$RZZe$<KmmK0OzT'UVVAqytWqwtWqw !$19$%dGbT7l$:OD!$%dGbT7l$:OD!$%dGbT7l$:OD!19 $b&1T7"#w, a%!D'/" 'AdG#	$ D! $!b&1T7**RD'\9AFRK!D'<QQ D! %&dGa"fqw.>$>RUQtWAT$TOD!$%dGa"fqw.>$>RUQtWAT$TOD! wZ!G*$wZ!G*$wZ!G*$#$W: 19(*sQwZ'7!G*'DOG$(*sQwZ'7!G*'DOG$(*sQwZ'7!G*'DOG$(*sQwZ'7!G*'DOG$(*sQwZ'7!G*'DOG$(*sQwZ'7!G*'DOG$19 BE	AgJ&R!G*)<<qzI G$ aj 1r6RG*_qz-I#JJQwZW G$ A'
"b&1W:%&QwZ!G*456 G* G$ BE	AgJ&R!G*)<<qzI G$ aj 1r6RG*_qz-I#JJQwZW G$ aj QwZ!G*456QwZ!G*456 G* G$ aj 1r6bS1W:-='
-J#KKaPWjX G$ A'
"b&1W:%&QwZ!G*456 G* G$ A'
"b&1W:%&QwZ!G*456 G* G$ BE	AgJ&R!G*)<<qzI G$ !!+E!::    c                 @   V P                   pV P                  ^ ,          ^,
          pVR9   d   V^8  d   \        V 4      # \        P                  ! V 4      pT p\        V\        \        P                  ! V\        R7      4      ,          VRV,          ,          ,          4      pV^8X  Ed   \        V^,           4       F  p\        V^,           4       F  pWg,           V8  d   K  \        V^,           4       F  p\        P                  ! Wh4      p	W^ ,          ) Wh,
          ,          ,          p	\        V^,           4       Fa  p
\        P                  ! Wz4      pW^,          ) Wz,
          ,          ,          pW6V3;;,          W,          WHV
3,          ,          ,          uu&   Kc  	  K  	  K  	  K  	  V# \        P                  ! \        V^,           4      3V,          !   F  p\        V4      V8  d   K  \        P                  ! V Uu. uF  p\        V^,           4      NK  	  up!   Fl  pWN,          p\        WV4       F=  w  pppV\        P                  ! VV4      ,          pVV) VV,
          ,          ,          pK?  	  W<;;,          V,          uu&   Kn  	  K  	  V# u upi )r   )r   r   )r   )r	   r
   r   r   r   tupleeyeintrangemathcomb	itertoolsproductsumzip)r   r	   r   r   r   centerspqiterm1jterm2ordersoidxsvali_ordercidxs   &                  r   moments_raw_to_centralr5      s   Da 1$Ev~%!)+K88mmK0OAAeBFF4s345$+FGGqy uqy!A519%55=q1uA IIaOEqzkqu55E"1q5\ $		!1:+15!99'1-a41HH- * & & "  ##uUQY'7&9D&@Bv;%%f'Efa!ef'EFD'C#&v#=Ctyy#..#.. $> #s*# G C  (Fs   J
)__doc__r#   r!   numpyr   r   r5    r   r   <module>r9      s!      m;`,r   