+
    ŽÓk¢  ã                   ó¤   € R t ^ RIt]P                  ! ]! R4       U u. uF  q P                  4       NK  	  up ]P                  R7      tR tR# u up i )a  Exact greedy mask suppression with inexpensive geometric prechecks.

This retains the same order-dependent behavior as ordinary greedy IoU NMS;
it is not an overlap-safe instance-separation algorithm. Callers should keep
all original masks and suppression aliases for later review.
Né   )Údtypec           	     ó:  € \         P                  ! V4      '       d   ^ Tu;8:  d   ^8:  g   M \        R4      h. p. p. p. p. pRpV  EFÎ  pVR,          p	\        V	\         P                  4      '       dF   V	P
                  ^8w  g5   V	P                  \         P                  8w  g   Ve   V	P                  V8w  d   \        R4      hV	P                  p\         P                  ! V	4      w  r«\        V4      p\         P                  ! V	P                  4       4      qÜ'       dc   \        VP                  4       4      \        V
P                  4       4      \        VP                  4       4      \        V
P                  4       4      3MRpRp\!        \#        WEV4      4       EF  w  pw  pppV^ 8”  d‹   V'       d+   V'       d#   \        VV4      \        VV4      ,          V8  d   KF  V^,          V^ ,          8  g@   V^,          V^ ,          8  g+   V^,          V^,          8  g   V^,          V^,          8  d   Kœ  \        \$        \         P&                  ! VV4      ,          P)                  4       4      pVV,           V,
          pV'       d
   VV,          MRpVV8¼  g   EK  Tp M	  VfH   VP+                  V4       VP+                  V4       VP+                  V4       VP+                  V4       EK¥  VP+                  RVR,          RW/,          R,          /4       EKÑ  	  W#3# )	aG  Return (kept, aliases) for same-shaped 2-D boolean masks in input order.

A mask is suppressed by the first previously kept mask with IoU greater
than or equal to threshold. Empty-mask IoU is defined as zero. No masks are
mutated or deleted. Exact full-resolution masks, not resized proxies, are
used for the final comparison.
zExpected threshold in [0,1]NÚmaskz&Expected equal-shaped 2D boolean masksg        Ú	candidateÚidÚkept)ÚnpÚisfiniteÚ
ValueErrorÚ
isinstanceÚndarrayÚndimr   Úbool_ÚshapeÚnonzeroÚlenÚpackbitsÚravelÚintÚminÚmaxÚ	enumerateÚzipÚ	_BITCOUNTÚbitwise_andÚsumÚappend)ÚitemsÚ	thresholdr   ÚaliasesÚpacksÚareasÚboundsr   Úitemr   ÚysÚxsÚareaÚpackedÚboundÚhitÚjÚotherÚ
other_areaÚother_boundÚinterÚunionÚious   &&                     ÚF/home/mchadwick/src/ansp/diatom-research/diatom_pilot/fast_mask_nms.pyÚgreedy_mask_nmsr3      sº  € ô �;Š;�y×!Ò!¨¨I®°q®ÜÐ6Ó7Ð7Ø	€D�BˆG˜R�u b °¨¸°5ÜˆØ�&�\ˆÜ˜$œrŸz™z×*Ò*¨d¯i©i¸¬l¸d¿j¹jÌ"Ï(É(Ô>RÐW\ÒWhÐmq×mwÑmwÐy~Ôm~ÜÐEÓFÐFØ�j‰jˆœrŸzšz¨$Ó/™˜´S¸³W°ÄBÇKÂKÐPT×PZÑPZÓP\ÓD]¸Vö  bfÔehÐik×ioÑioÓiqÓerÔsvÐwy×w}Ñw}Ówó  tAô  BEð  FH÷  FLñ  FLó  FNó  BOô  PSð  TV÷  TZñ  TZó  T\ó  P]ñ  e^ð  lpÐ^cØˆÜ09¼#¸eÈ&Ó:Q×0RÑ,ˆAÑ,ˆu�Z Ø˜Œ{ß§:´°T¸*Ó1EÄcÈ$ÈzÓFZÕ1ZÐ[dÔ1dÙØ˜•8˜K¨�NÔ*¨k¸!­n¸UÀ1½XÔ.EÈÈqÍÐR]Ð^_ÕR`ÔI`ÐdoÐpqÕdrÐsxÐyzÕs{Ôd{ÙÜ”i¤§¢¨v°eÓ <Õ=×AÑAÓCÓDˆEÈ4ÐPZÍ?Ð[`ÕK`ÀU×tyÐejÐkpÖepð  @BÐadØ�I�~Ø�‘eñ 1Sð Š;Ø�K‰K˜Ô˜eŸl™l¨6Ô2°5·<±<ÀÔ3EÀfÇmÁmÐTY×FZà�N‰N˜K¨¨T­
°6¸$½)ÀD½/ÐJ×Kñ% ð& ˆ<Ðó    )	Ú__doc__Únumpyr	   ÚarrayÚrangeÚ	bit_countÚuint8r   r3   )Úis   0r2   Ú<module>r<      sD   ðñó à
�(Š(©5°¬:Ó6©: a—K‘K–M©:Ñ6¸R¿X¹XÔ
F€	ôùò 7s   �A