/ *   
 
   *   P R O J E C T :   N y A R T o o l k i t C S ( E x t e n s i o n ) 
 
   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   *   T h e   N y A R T o o l k i t C S   i s   C #   e d i t i o n   A R T o o l K i t   c l a s s   l i b r a r y . 
 
   *   C o p y r i g h t   ( C ) 2 0 0 8 - 2 0 0 9   R y o   I i z u k a 
 
   * 
 
   *   T h i s   p r o g r a m   i s   f r e e   s o f t w a r e :   y o u   c a n   r e d i s t r i b u t e   i t   a n d / o r   m o d i f y 
 
   *   i t   u n d e r   t h e   t e r m s   o f   t h e   G N U   G e n e r a l   P u b l i c   L i c e n s e   a s   p u b l i s h e d   b y 
 
   *   t h e   F r e e   S o f t w a r e   F o u n d a t i o n ,   e i t h e r   v e r s i o n   3   o f   t h e   L i c e n s e ,   o r 
 
   *   ( a t   y o u r   o p t i o n )   a n y   l a t e r   v e r s i o n . 
 
   *   
 
   *   T h i s   p r o g r a m   i s   d i s t r i b u t e d   i n   t h e   h o p e   t h a t   i t   w i l l   b e   u s e f u l , 
 
   *   b u t   W I T H O U T   A N Y   W A R R A N T Y ;   w i t h o u t   e v e n   t h e   i m p l i e d   w a r r a n t y   o f 
 
   *   M E R C H A N T A B I L I T Y   o r   F I T N E S S   F O R   A   P A R T I C U L A R   P U R P O S E .     S e e   t h e 
 
   *   G N U   G e n e r a l   P u b l i c   L i c e n s e   f o r   m o r e   d e t a i l s . 
 
   * 
 
   *   Y o u   s h o u l d   h a v e   r e c e i v e d   a   c o p y   o f   t h e   G N U   G e n e r a l   P u b l i c   L i c e n s e 
 
   *   a l o n g   w i t h   t h i s   p r o g r a m .     I f   n o t ,   s e e   < h t t p : / / w w w . g n u . o r g / l i c e n s e s / > . 
 
   *   
 
   *   F o r   f u r t h e r   i n f o r m a t i o n   p l e a s e   c o n t a c t . 
 
   * 	 h t t p : / / n y a t l a . j p / n y a t o o l k i t / 
 
   * 	 < a i r m a i l ( a t ) e b o n y . p l a l a . o r . j p >   o r   < n y a t l a ( a t ) n y a t l a . j p > 
 
   *   
 
   * / 
 
 u s i n g   S y s t e m ; 
 
 u s i n g   S y s t e m . D i a g n o s t i c s ; 
 
 u s i n g   j p . n y a t l a . n y a r t o o l k i t . c s . c o r e ; 
 
 
 
 n a m e s p a c e   j p . n y a t l a . n y a r t o o l k i t . c s . r p f 
 
 { 
 
 
 
         / * * 
 
           *   S0n0000o00V҉b_n0000000000g0Y00;ubQk0B00pen0wb_0000000h0W0f0X%RW0f00W0~0Y00
 
           *   @ a u t h o r   n y a t l a 
 
           * 
 
           * / 
 
         p u b l i c   c l a s s   N y A R T r a c k e r 
 
         { 
 
 	         p r i v a t e   D i s t M a p   _ m a p ; 
 
 	         p r o t e c t e d   i n t [ ]   _ i n d e x ; 
 
 
 
 	         p r i v a t e   N y A R N e w T a r g e t S t a t u s P o o l   n e w s t _ p o o l ; 
 
 	         p r i v a t e   N y A R C o n t o u r T a r g e t S t a t u s P o o l   c o n t o u r s t _ p o o l ; 
 
 	         p r i v a t e   N y A R R e c t T a r g e t S t a t u s P o o l   r e c t _ p o o l ; 
 
 
 
 	         p r i v a t e   N y A R T a r g e t P o o l   t a r g e t _ p o o l ; 
 
 	         / * * 
 
 	           *   00000000g0Y00S0n000000o0QTQ0g0Y00
 
 	           *   r e f T r a c k T a r g e t pe0NW0f00000W0f0O0`0U0D00
 
 	           * / 
 
 	         p u b l i c   N y A R T a r g e t L i s t   _ t a r g e t s ; 
 
 
 
 
 
 	         / / tX[pe
 
 	         p r i v a t e   i n t   M A X _ N U M B E R _ O F _ N E W ; 
 
 	         p r i v a t e   i n t   M A X _ N U M B E R _ O F _ C O N T U R E ; 
 
 	         p r i v a t e   i n t   M A X _ N U M B E R _ O F _ R E C T ; 
 
 	         p r i v a t e   i n t   M A X _ N U M B E R _ O F _ T A R G E T ; 
 
         	 
 
 	         p r i v a t e   S a m p l e S t a c k   _ n e w s o u r c e ; 
 
 	         p r i v a t e   S a m p l e S t a c k   _ i g s o u r c e ; 
 
 	         p r i v a t e   S a m p l e S t a c k   _ c o o r d s o u r c e ; 
 
 	         p r i v a t e   S a m p l e S t a c k   _ r e c t s o u r c e ; 	 
 
 	         p u b l i c   N y A R T a r g e t L i s t [ ]   _ t e m p _ t a r g e t s ; 
 
 
 
 	         p r i v a t e   i n t   _ n u m b e r _ o f _ n e w ; 
 
 	         p r i v a t e   i n t   _ n u m b e r _ o f _ i g n o r e ; 
 
 	         p r i v a t e   i n t   _ n u m b e r _ o f _ c o n t o u r e ; 
 
 	         p r i v a t e   i n t   _ n u m b e r _ o f _ r e c t ; 	 
 
         	 
 
 	         / * * 
 
 	           *   n e w 00000n0pe0ԏW0~0Y00
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p u b l i c   i n t   g e t N u m b e r O f N e w ( ) 
 
 	         { 
 
 	 	         r e t u r n   t h i s . _ n u m b e r _ o f _ n e w ; 	 	 
 
 	         } 
 
 	         / * * 
 
 	           *   i g n o r e 00000n0pe0ԏW0~0Y00
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p u b l i c   i n t   g e t N u m b e r O f I g n o r e ( ) 
 
 	         { 
 
 	 	         r e t u r n   t h i s . _ n u m b e r _ o f _ i g n o r e ; 	 	 
 
 	         } 
 
 	         / * * 
 
 	           *   c o n t o u r 00000n0pe0ԏW0~0Y00
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p u b l i c   i n t   g e t N u m b e r O f C o n t u r ( ) 
 
 	         { 
 
 	 	         r e t u r n   t h i s . _ n u m b e r _ o f _ c o n t o u r e ; 	 	 
 
 	         } 
 
 	         / * * 
 
 	           *   r e c t 00000n0pe0ԏW0~0Y00
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p u b l i c   i n t   g e t N u m b e r O f R e c t ( ) 
 
 	         { 
 
 	 	         r e t u r n   t h i s . _ n u m b e r _ o f _ r e c t ; 	 	 
 
 	         } 
 
 	         / * * 
 
 	           *   00000000n0Sgq$P0ԏW0~0Y00
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p u b l i c   N y A R T a r g e t L i s t   r e f T r a c k T a r g e t ( ) 
 
 	         { 
 
 	 	         r e t u r n   t h i s . _ t a r g e t s ; 
 
 	         } 
 
 	         / * * 
 
 	           *   0000000g0Y00
 
 	           *   @ p a r a m   i _ m a x _ n e w 
 
 	           *   N e w 000000000n0 g'Ype0c[W0~0Y00
 
 	           *   @ p a r a m   i _ m a x _ c o n t 
 
 	           *   C o n t o u r 000000000n0 g'Ype0c[W0~0Y00
 
 	           *   @ p a r a m   i _ m a x _ r e c t 
 
 	           *   R e c t 000000000n0 g'Ype0c[W0~0Y00
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           * / 
 
 	         p u b l i c   N y A R T r a c k e r ( i n t   i _ m a x _ n e w , i n t   i _ m a x _ c o n t , i n t   i _ m a x _ r e c t ) 
 
 	         { 
 
 	 	         / / tX[pen0-[
 
 	 	         t h i s . M A X _ N U M B E R _ O F _ N E W = i _ m a x _ n e w ; 
 
 	 	         t h i s . M A X _ N U M B E R _ O F _ C O N T U R E = i _ m a x _ c o n t ; 
 
 	 	         t h i s . M A X _ N U M B E R _ O F _ R E C T = i _ m a x _ r e c t ; 	 	 
 
 	 	         t h i s . M A X _ N U M B E R _ O F _ T A R G E T = ( i _ m a x _ n e w + i _ m a x _ c o n t + i _ m a x _ r e c t ) * 5 ; 	 	 
 
 
 
 
 
 	 	         / / 00000000(un0MRh000000S0n0peo0N y A R T a r g e t S t a t u s n0I D h0a}0g00n0g00l0d0Q0f0
 
 	 	         t h i s . _ t e m p _ t a r g e t s = n e w   N y A R T a r g e t L i s t [ N y A R T a r g e t S t a t u s . M A X _ O F _ S T _ K I N D + 1 ] ; 
 
 	 	         t h i s . _ t e m p _ t a r g e t s [ N y A R T a r g e t S t a t u s . S T _ N E W ]         = n e w   N y A R T a r g e t L i s t ( i _ m a x _ n e w ) ; 
 
 	 	         t h i s . _ t e m p _ t a r g e t s [ N y A R T a r g e t S t a t u s . S T _ I G N O R E ]   = n e w   N y A R T a r g e t L i s t ( t h i s . M A X _ N U M B E R _ O F _ T A R G E T ) ; 
 
 	 	         t h i s . _ t e m p _ t a r g e t s [ N y A R T a r g e t S t a t u s . S T _ C O N T U R E ] = n e w   N y A R T a r g e t L i s t ( i _ m a x _ c o n t ) ; 
 
 	 	         t h i s . _ t e m p _ t a r g e t s [ N y A R T a r g e t S t a t u s . S T _ R E C T ]       = n e w   N y A R R e c t T a r g e t L i s t ( i _ m a x _ r e c t ) ; 
 
 
 
 	 	         / / 000000
 
 	 	         t h i s . _ n e w s o u r c e = n e w   S a m p l e S t a c k ( i _ m a x _ n e w ) ; 
 
 	 	         t h i s . _ i g s o u r c e = n e w   S a m p l e S t a c k ( t h i s . M A X _ N U M B E R _ O F _ T A R G E T ) ; 
 
 	 	         t h i s . _ c o o r d s o u r c e = n e w   S a m p l e S t a c k ( i _ m a x _ c o n t ) ; 
 
 	 	         t h i s . _ r e c t s o u r c e = n e w   S a m p l e S t a c k ( i _ m a x _ r e c t ) ; 
 
 
 
 	 	         / / 00000000
 
 	 	         t h i s . n e w s t _ p o o l = n e w   N y A R N e w T a r g e t S t a t u s P o o l ( i _ m a x _ n e w * 2 ) ; 
 
 	 	         t h i s . c o n t o u r s t _ p o o l = n e w   N y A R C o n t o u r T a r g e t S t a t u s P o o l ( i _ m a x _ r e c t + i _ m a x _ c o n t * 2 ) ; 
 
 	 	         t h i s . r e c t _ p o o l = n e w   N y A R R e c t T a r g e t S t a t u s P o o l ( i _ m a x _ r e c t * 2 ) ; 
 
 	 	         / / 00000000
 
 	 	         t h i s . t a r g e t _ p o o l = n e w   N y A R T a r g e t P o o l ( t h i s . M A X _ N U M B E R _ O F _ T A R G E T ) ; 
 
 	 	         / / 00000
 
 	 	         t h i s . _ t a r g e t s = n e w   N y A R T a r g e t L i s t ( t h i s . M A X _ N U M B E R _ O F _ T A R G E T ) ; 	 	 
 
         	 	 
 
 	 	         / / S0S0la000n0 g'Y$Po000000000n0Ppe00J0J0M0D0S0h0
 
 	 	         t h i s . _ m a p = n e w   D i s t M a p ( t h i s . M A X _ N U M B E R _ O F _ T A R G E T , t h i s . M A X _ N U M B E R _ O F _ T A R G E T ) ; 
 
 	 	         t h i s . _ i n d e x = n e w   i n t [ t h i s . M A X _ N U M B E R _ O F _ T A R G E T ] ; 
 
         	 	 
 
 	 	         / / [peRgS
 
 	 	         t h i s . _ n u m b e r _ o f _ n e w = t h i s . _ n u m b e r _ o f _ i g n o r e = t h i s . _ n u m b e r _ o f _ c o n t o u r e = t h i s . _ n u m b e r _ o f _ r e c t = 0 ; 
 
 	         } 
 
 
 
 	         / * * 
 
 	           *   T r a c k e r n0rKa0feW0~0Y00
 
 	           *   @ p a r a m   i _ s o u r c e 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           * / 
 
 	         p u b l i c   v o i d   p r o g r e s s ( N y A R T r a c k e r S o u r c e   i _ s ) 
 
 	         { 
 
 	 	         / / S a m p l e O u t 0VS
 
 	 	         L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t   s a m p l e _ o u t = i _ s . m a k e S a m p l e O u t ( ) ; 
 
         	 	 
 
 	 	         N y A R T a r g e t L i s t [ ]   t a r g e t s = t h i s . _ t e m p _ t a r g e t s ; 
 
 	 	         N y A R T a r g e t L i s t   n e w t r = t a r g e t s [ N y A R T a r g e t S t a t u s . S T _ N E W ] ; 
 
 	 	         N y A R T a r g e t L i s t   i g t r = t a r g e t s [ N y A R T a r g e t S t a t u s . S T _ I G N O R E ] ; 
 
 	 	         N y A R T a r g e t L i s t   c o t r = t a r g e t s [ N y A R T a r g e t S t a t u s . S T _ C O N T U R E ] ; 
 
 	 	         N y A R T a r g e t L i s t   r e t w = t a r g e t s [ N y A R T a r g e t S t a t u s . S T _ R E C T ] ; 
 
 
 
 	 	         I N y A R V e c t o r R e a d e r   v e c r e a d e r = i _ s . g e t B a s e V e c t o r R e a d e r ( ) ; 
 
 	 	         / / 00000000n0/c0RQ0
 
 	 	         N y A R T a r g e t [ ]   t a r g e t _ a r r a y = t h i s . _ t a r g e t s . g e t A r r a y ( ) ; 
 
 	 	         n e w t r . c l e a r ( ) ; 
 
 	 	         i g t r . c l e a r ( ) ; 
 
 	 	         c o t r . c l e a r ( ) ; 
 
 	 	         r e t w . c l e a r ( ) ; 
 
 	 	         f o r ( i n t   i = t h i s . _ t a r g e t s . g e t L e n g t h ( ) - 1 ; i > = 0 ; i - - ) { 
 
 	 	 	         t a r g e t s [ t a r g e t _ a r r a y [ i ] . _ s t _ t y p e ] . p u s h A s s e r t ( t a r g e t _ a r r a y [ i ] ) ; 
 
 	 	         } 	 	 
 
 	 	         i n t [ ]   i n d e x = t h i s . _ i n d e x ; 
 
 	 	         / / 0000000000kk0/c0RQ0
 
 	 	         s a m p l e M a p p e r ( s a m p l e _ o u t , n e w t r , i g t r , c o t r , r e t w , t h i s . _ n e w s o u r c e , t h i s . _ i g s o u r c e , t h i s . _ c o o r d s o u r c e , t h i s . _ r e c t s o u r c e ) ; 
 
         	 	 
 
 	 	         / / 00000n0fe	 	 
 
 	 	         t h i s . _ m a p . m a k e P a i r I n d e x e s ( t h i s . _ i g s o u r c e , i g t r , i n d e x ) ; 
 
 	 	         u p d a t e I g n o r e S t a t u s ( i g t r , t h i s . _ i g s o u r c e . g e t A r r a y ( ) , i n d e x ) ; 
 
         	 	 
 
 	 	         t h i s . _ m a p . m a k e P a i r I n d e x e s ( t h i s . _ n e w s o u r c e , n e w t r , i n d e x ) ; 
 
 	 	         u p d a t e N e w S t a t u s ( n e w t r , t h i s . n e w s t _ p o o l ,   t h i s . _ n e w s o u r c e . g e t A r r a y ( ) , i n d e x ) ; 
 
 
 
 	 	         t h i s . _ m a p . m a k e P a i r I n d e x e s ( t h i s . _ r e c t s o u r c e , r e t w , i n d e x ) ; 
 
 	 	         u p d a t e R e c t S t a t u s ( r e t w ,   v e c r e a d e r ,   t h i s . r e c t _ p o o l ,   t h i s . _ r e c t s o u r c e . g e t A r r a y ( ) , i n d e x ) ; 
 
         	 	 
 
 	 	         t h i s . _ m a p . m a k e P a i r I n d e x e s ( t h i s . _ c o o r d s o u r c e , c o t r , i n d e x ) ; 
 
 	 	         u p d a t e C o n t u r e S t a t u s ( c o t r ,   v e c r e a d e r , t h i s . c o n t o u r s t _ p o o l , t h i s . _ c o o r d s o u r c e . g e t A r r a y ( ) , i n d e x ) ; 
 
 
 
 	 	         / / 00000n00000000
 
 	 	         f o r ( i n t   i = t h i s . _ t a r g e t s . g e t L e n g t h ( ) - 1 ; i > = 0 ; i - - ) { 
 
 	 	 	         s w i t c h ( t a r g e t _ a r r a y [ i ] . _ s t _ t y p e ) { 
 
 	 	 	         c a s e   N y A R T a r g e t S t a t u s . S T _ I G N O R E : 
 
 	 	 	 	         u p g r a d e I g n o r e T a r g e t ( i ) ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         c a s e   N y A R T a r g e t S t a t u s . S T _ N E W : 
 
 	 	 	 	         u p g r a d e N e w T a r g e t ( t a r g e t _ a r r a y [ i ] , v e c r e a d e r ) ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         c a s e   N y A R T a r g e t S t a t u s . S T _ R E C T : 
 
 	 	 	 	         u p g r a d e R e c t T a r g e t ( t a r g e t _ a r r a y [ i ] ) ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         c a s e   N y A R T a r g e t S t a t u s . S T _ C O N T U R E : 	 	 
 
 	 	 	 	         u p g r a d e C o n t o u r T a r g e t ( t a r g e t _ a r r a y [ i ] ) ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	         } 
 
 	 	         r e t u r n ; 
 
 	         } 
 
         	 
 
 
 
         	 
 
 	         p r i v a t e   c o n s t   i n t   L I F E _ O F _ N E W = 1 0 ; 
 
 	         p r i v a t e   c o n s t   i n t   L I F E _ O F _ I G N O R E _ F R O M _ N E W = 1 0 ; 
 
 	         p r i v a t e   c o n s t   i n t   L I F E _ O F _ I G N O R E _ F R O M _ C O N T O U R = 5 0 ; 
 
 	         p r i v a t e   c o n s t   i n t   L I F E _ O F _ I G N O R E _ F R O M _ R E C T = 2 0 ; 
 
 	         p r i v a t e   c o n s t   i n t   L I F E _ O F _ R E C T _ F R O M _ C O N T O U R = i n t . M a x V a l u e ; 
 
 	         p r i v a t e   c o n s t   i n t   L I F E _ O F _ C O N T U R E _ F R O M _ N E W = 2 ; 
 
         	 
 
 	         / * * 
 
 	           *   i _ n e w _ t a r g e t n000000000fLW0~0Y00
 
 	           *   0000000n0.z^o0NNn0k0h0J00g0Y001 .  N[gL}N_n04xh000( I g n o r e x0wy) 2 . ck8^X000( C o n t o u r x0wy) 
 
 	           *   @ p a r a m   i _ n e w _ t a r g e t 
 
 	           *   @ p a r a m   i _ b a s e _ r a s t e r 
 
 	           *   @ r e t u r n 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           * / 
 
 	         p r i v a t e   v o i d   u p g r a d e N e w T a r g e t ( N y A R T a r g e t   i _ n e w _ t a r g e t , I N y A R V e c t o r R e a d e r   i _ v e c r e a d e r ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( i _ n e w _ t a r g e t . _ s t _ t y p e   = =   N y A R T a r g e t S t a t u s . S T _ N E W ) ; 
 
 
 
 	 	         / / [}T0H0_00i g n o r e x0wy
 
 	 	         i f ( i _ n e w _ t a r g e t . _ s t a t u s _ l i f e < = 0 ) 
 
 	 	         { 
 
 	 	 	         t h i s . c h a n g e S t a t u s T o I g n o r e ( i _ n e w _ t a r g e t , L I F E _ O F _ I G N O R E _ F R O M _ N E W ) ; 
 
 	 	 	         r e t u r n ; 
 
 	 	         } 
 
 	 	         N y A R N e w T a r g e t S t a t u s   s t = ( N y A R N e w T a r g e t S t a t u s ) i _ n e w _ t a r g e t . _ r e f _ s t a t u s ; 
 
 	 	         / / S0n00000000000000g0M00K0x
 
 	 	         i f ( s t . c u r r e n t _ s a m p l e o u t = = n u l l ) { 
 
 	 	 	         / / vяn0s a m p l e o u t L0!qD00- > j0k00g0M0j0D00
 
 	 	 	         r e t u r n ; 
 
 	 	         } 
 
 	 	         / / c o o r d 000000ub
 
 	 	         N y A R C o n t o u r T a r g e t S t a t u s   c = t h i s . c o n t o u r s t _ p o o l . n e w O b j e c t ( ) ; 
 
 	 	         i f ( c = = n u l l ) { 
 
 	 	 	         / / 00000L0D0c0q0D00( 1YWeW0f0UO0W0j0D0) 
 
 / / 	 	 	         S y s t e m . o u t . p r i n t l n ( " u p g r a d e N e w T a r g e t : s t a t u s   p o o l   f u l l " ) ; 
 
 	 	 	         r e t u r n ; 
 
 	 	         } 
 
 	 	         / / 00000n0$P0000
 
 	 	         i f ( ! c . s e t V a l u e ( i _ v e c r e a d e r , s t . c u r r e n t _ s a m p l e o u t ) ) 
 
 	 	         { 
 
 	 	 	         / / $Pn0000k01YWeW0_0n0g00I g n o r e x0wy( S0n0[ao0*퐍Xg0M0j0D0) 
 
 	 	 	         t h i s . c h a n g e S t a t u s T o I g n o r e ( i _ n e w _ t a r g e t , L I F E _ O F _ I G N O R E _ F R O M _ N E W ) ; 
 
 	 	 	         / / S y s t e m . o u t . p r i n t l n ( " d r o p : n e w - > i g n o r e [ c o n t o u r e   f a i l e d . ] " + t . s e r i a l + " : " + t . l a s t _ u p d a t e ) ; 
 
 	 	 	         c . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	         r e t u r n ; / / 1YWeW00F0L0bRW00F0L0B}N
 
 	 	         } 
 
 	 	         i f ( t h i s . c h a n g e S t a t u s T o C n t o u r e ( i _ n e w _ t a r g e t , c ) = = n u l l ) { 
 
 	 	 	         c . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	         r e t u r n ; 
 
 	 	         } 
 
 	 	         r e t u r n ; 
 
 	         } 
 
         	 
 
 	         / * * 
 
 	           *   c[W0_0i _ i g _ t a r g e t 0000K00JRdW0~0Y00
 
 	           *   000o0p000~0Y0L00]0n0000o0d e l e a t T a r g e t OX[g0Y00
 
 	           *   @ p a r a m   i _ i g _ i n d e x 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           * / 
 
 	         p r i v a t e   v o i d   u p g r a d e I g n o r e T a r g e t ( i n t   i _ i g _ i n d e x ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( t h i s . _ t a r g e t s . g e t I t e m ( i _ i g _ i n d e x ) . _ s t _ t y p e   = =   N y A R T a r g e t S t a t u s . S T _ I G N O R E ) ; 
 
 	 	         i f ( t h i s . _ t a r g e t s . g e t I t e m ( i _ i g _ i n d e x ) . _ s t a t u s _ l i f e < = 0 ) 
 
 	 	         { 
 
 	 	 	         / / 000000n00000
 
         / / S y s t e m . o u t . p r i n t l n ( " l o s t : i g n o r e : " + t . s e r i a l + " : " + t . l a s t _ u p d a t e ) ; 
 
 	 	 	         t h i s . d e l e a t T a r g e t ( i _ i g _ i n d e x ) ; 
 
 	 	         } 
 
 	         } 
 
         	 
 
 	         / * * 
 
 	           *   N y A R T r a c k e r O u t n0C O n t o u r T a r g e t k0d0D0f000000000Qt0W0~0Y00
 
 	           *   0000000n0.z^o0NNn0k0h0J00g0Y001 .  N[gL}N_n04xh000( I g n o r e x0wy) 2 . ck8^X000( R e c t x0wy) 
 
 	           *   @ p a r a m   i _ b a s e _ r a s t e r 
 
 	           *   @ p a r a m   i _ t r a c k d a t a 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           * / 
 
 	         p r i v a t e   v o i d   u p g r a d e C o n t o u r T a r g e t ( N y A R T a r g e t   i _ c o n t o u r e _ t a r g e t ) 
 
 	         { 
 
 	 	         D e b u g . A s s e r t ( i _ c o n t o u r e _ t a r g e t . _ s t _ t y p e = = N y A R T a r g e t S t a t u s . S T _ C O N T U R E ) ; 
 
 	 	         i f ( i _ c o n t o u r e _ t a r g e t . _ s t a t u s _ l i f e < = 0 ) 
 
 	 	         { 
 
 	 	 	         / /  N[n0gL0L}NW0_000i g n o r e x0wy
 
 	 	 	         t h i s . c h a n g e S t a t u s T o I g n o r e ( i _ c o n t o u r e _ t a r g e t , L I F E _ O F _ I G N O R E _ F R O M _ C O N T O U R ) ; 
 
 	 	 	         r e t u r n ; 
 
 	 	         } 
 
 	 	         i f ( i _ c o n t o u r e _ t a r g e t . _ d e l a y _ t i c k > 2 0 ) 
 
 	 	         { 
 
 	 	 	         t h i s . c h a n g e S t a t u s T o I g n o r e ( i _ c o n t o u r e _ t a r g e t , L I F E _ O F _ I G N O R E _ F R O M _ C O N T O U R ) ; 
 
 	 	 	         r e t u r n ; 
 
 	 	 	         / /  N[n0gu p d a t e L0g0M0j0Q00p00i g n o r e x0wy
 
 	 	         } 
 
 
 
 	 	         N y A R C o n t o u r T a r g e t S t a t u s   s t = ( N y A R C o n t o u r T a r g e t S t a t u s ) i _ c o n t o u r e _ t a r g e t . _ r e f _ s t a t u s ; 
 
 	 	         / / c o o r d 000000ub
 
 	 	         N y A R R e c t T a r g e t S t a t u s   c = t h i s . r e c t _ p o o l . n e w O b j e c t ( ) ; 
 
 	 	         i f ( c = = n u l l ) { 
 
 	 	 	         / / 00000L0D0c0q0D00
 
 	 	 	         r e t u r n ; 
 
 	 	         } 
 
 	 	         / / 00000n0$P0000
 
 	 	         i f ( ! c . s e t V a l u e W i t h I n i t i a l C h e c k ( s t , i _ c o n t o u r e _ t a r g e t . _ s a m p l e _ a r e a ) ) { 
 
 	 	 	         / / $Pn0000k01YWeW0_00
 
 	 	 	         c . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	         r e t u r n ; 
 
 	 	         } 
 
 	 	         i f ( t h i s . c h a n g e S t a t u s T o R e c t ( i _ c o n t o u r e _ t a r g e t , c ) = = n u l l ) { 
 
 	 	 	         / / 00000D0c0q0D0
 
 	 	 	         c . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	         r e t u r n ; 
 
 	 	         } 	 	 
 
 	 	         r e t u r n ; 
 
 	         } 	 
 
 	         p r i v a t e   v o i d   u p g r a d e R e c t T a r g e t ( N y A R T a r g e t   i _ r e c t _ t a r g e t ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( i _ r e c t _ t a r g e t . _ s t _ t y p e   = =   N y A R T a r g e t S t a t u s . S T _ R E C T ) ; 
 
 	 	         i f ( i _ r e c t _ t a r g e t . _ d e l a y _ t i c k > 2 0 ) 
 
 	 	         { 
 
 	 	 	         t h i s . c h a n g e S t a t u s T o I g n o r e ( i _ r e c t _ t a r g e t , L I F E _ O F _ I G N O R E _ F R O M _ R E C T ) ; 
 
 	 	 	         / /  N[n0gu p d a t e L0g0M0j0Q00p00i g n o r e x0wy
 
 	 	         } 
 
 	         } 	 
 
         	 
 
 	         / / 
 
 	         / / u p d a t e 
 
 	         / / 
 
 	         p r i v a t e   s t a t i c   v o i d   u p d a t e I g n o r e S t a t u s ( N y A R T a r g e t L i s t   i _ i g l i e t , L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m [ ]   s o u r c e , i n t [ ]   i n d e x ) 
 
 	         { 
 
 	 	         N y A R T a r g e t   d _ p t r ; 
 
 	 	         / / 000Y000
 
 	 	         N y A R T a r g e t [ ]   i _ i g n o r e _ t a r g e t = i _ i g l i e t . g e t A r r a y ( ) ; 
 
 	 	         / / 00000n0fe
 
 	 	         f o r ( i n t   i = i _ i g l i e t . g e t L e n g t h ( ) - 1 ; i > = 0 ; i - - ) { 
 
 	 	 	         d _ p t r = i _ i g n o r e _ t a r g e t [ i ] ; 
 
 	 	 	         i n t   s a m p l e _ i n d e x = i n d e x [ i ] ; 
 
 	 	 	         / / t^b0R{
 
 	 	 	         d _ p t r . _ s t a t u s _ l i f e - - ; 
 
 	 	 	         i f ( s a m p l e _ i n d e x < 0 ) { 
 
 	 	 	 	         / / S0n000000k0TY000000o0!qD00
 
 	 	 	 	         d _ p t r . _ d e l a y _ t i c k + + ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         d _ p t r . s e t S a m p l e A r e a ( s o u r c e [ s a m p l e _ i n d e x ] ) ; 
 
 	 	 	         d _ p t r . _ d e l a y _ t i c k = 0 ; 
 
 	 	         } 
 
 	         } 	 
 
         	 	 
 
 	         / * * 
 
 	           *   N e w T a r g e t n0000000feW0~0Y00
 
 	           *   @ p a r a m   i _ s a m p l e 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n   
 
 	           * / 
 
 	         p u b l i c   s t a t i c   v o i d   u p d a t e N e w S t a t u s ( N y A R T a r g e t L i s t   i _ l i s t , N y A R N e w T a r g e t S t a t u s P o o l   i _ p o o l , L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m [ ]   s o u r c e , i n t [ ]   i n d e x ) 
 
 	         { 
 
 	 	         N y A R T a r g e t   d _ p t r ; 
 
 	 	         N y A R T a r g e t [ ]   i _ n e s = i _ l i s t . g e t A r r a y ( ) ; 	 	 
 
 	 	         / / 00000n0fe
 
 	 	         f o r ( i n t   i = i _ l i s t . g e t L e n g t h ( ) - 1 ; i > = 0 ; i - - ) { 
 
 	 	 	         d _ p t r = i _ n e s [ i ] ; 
 
 	 	 	         i n t   s a m p l e _ i n d e x = i n d e x [ i ] ; 
 
 	 	 	         / / t^b0R{
 
 	 	 	         d _ p t r . _ s t a t u s _ l i f e - - ; 
 
 	 	 	         i f ( s a m p l e _ i n d e x < 0 ) { 
 
 	 	 	 	         / / S0n000000k0TY000000o0!qD00
 
 	 	 	 	         ( ( N y A R N e w T a r g e t S t a t u s ) d _ p t r . _ r e f _ s t a t u s ) . s e t V a l u e ( n u l l ) ; 
 
 	 	 	 	         d _ p t r . _ d e l a y _ t i c k + + ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m   s = s o u r c e [ s a m p l e _ i n d e x ] ; 
 
 	 	 	         / / HQk0000000\ObW0f0J0O0
 
 	 	 	         N y A R N e w T a r g e t S t a t u s   s t = i _ p o o l . n e w O b j e c t ( ) ; 
 
 	 	 	         i f ( s t = = n u l l ) { 
 
 	 	 	 	         / / 00000n0ubk01YWe
 
 	 	 	 	         d _ p t r . _ d e l a y _ t i c k + + ; 
 
         / / S y s t e m . o u t . p r i n t l n ( " u p d a t e N e w S t a t u s : s t a t u s   p o o l   f u l l " ) ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         / / eW0D000000$Pn0000
 
 	 	 	         s t . s e t V a l u e ( s ) ; 
 
         	 	 	 
 
 	 	 	         / / 00000n0fe
 
 	 	 	         d _ p t r . s e t S a m p l e A r e a ( s ) ; 
 
 	 	 	         d _ p t r . _ d e l a y _ t i c k = 0 ; 
 
 
 
 	 	 	         / / r e f _ s t a t u s n0000h0R0fH0( 1YWeBfn0
NfM02bkn0_00k00000000S) 
 
 	 	 	         d _ p t r . _ r e f _ s t a t u s . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	         d _ p t r . _ r e f _ s t a t u s = s t ; 
 
 	 	         } 
 
 	         } 
 
 	         / * * 
 
 	           *   C o n t o u r e T a r g e t n0000000feW0~0Y00
 
 	           *   @ p a r a m   i _ l i s t 
 
 	           *   @ p a r a m   i _ v e c r e a d e r 
 
 	           *   @ p a r a m   i _ s t p o o l 
 
 	           *   @ p a r a m   s o u r c e 
 
 	           *   @ p a r a m   i n d e x 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           * / 
 
 	         p u b l i c   s t a t i c   v o i d   u p d a t e C o n t u r e S t a t u s ( N y A R T a r g e t L i s t   i _ l i s t , I N y A R V e c t o r R e a d e r   i _ v e c r e a d e r , N y A R C o n t o u r T a r g e t S t a t u s P o o l   i _ s t p o o l , L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m [ ]   s o u r c e , i n t [ ]   i n d e x ) 
 
 	         { 
 
 	 	         N y A R T a r g e t [ ]   c r d = i _ l i s t . g e t A r r a y ( ) ; 	 	 
 
 	 	         N y A R T a r g e t   d _ p t r ; 
 
 	 	         / / 00000n0fe
 
 	 	         f o r ( i n t   i = i _ l i s t . g e t L e n g t h ( ) - 1 ; i > = 0 ; i - - ) { 
 
 	 	 	         d _ p t r = c r d [ i ] ; 
 
 	 	 	         i n t   s a m p l e _ i n d e x = i n d e x [ i ] ; 
 
 	 	 	         / / t^b0R{
 
 	 	 	         d _ p t r . _ s t a t u s _ l i f e - - ; 
 
 	 	 	         i f ( s a m p l e _ i n d e x < 0 ) { 
 
 	 	 	 	         / / S0n000000k0TY000000o0!qD00
 
 	 	 	 	         d _ p t r . _ d e l a y _ t i c k + + ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m   s = s o u r c e [ s a m p l e _ i n d e x ] ; 
 
 	 	 	         / / 1YWen0S'`0naW0f00S t a t u s 0HQk0ubW0f0J0O0
 
 	 	 	         N y A R C o n t o u r T a r g e t S t a t u s   s t = i _ s t p o o l . n e w O b j e c t ( ) ; 
 
 	 	 	         i f ( s t = = n u l l ) { 
 
 	 	 	 	         / / 1YWe\O0j0K0c0_0	
 
 	 	 	 	         d _ p t r . _ d e l a y _ t i c k + + ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         i f ( ! s t . s e t V a l u e ( i _ v e c r e a d e r , s ) ) { 
 
 	 	 	 	         / / eW0D000000n0000k01YWe
 
 	 	 	 	         s t . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	 	         d _ p t r . _ d e l a y _ t i c k + + ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         d _ p t r . s e t S a m p l e A r e a ( s ) ; 
 
 	 	 	         d _ p t r . _ d e l a y _ t i c k = 0 ; 
 
 	 	 	         / / r e f _ s t a t u s n0R0fH0
 
 	 	 	         d _ p t r . _ r e f _ s t a t u s . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	         d _ p t r . _ r e f _ s t a t u s = s t ; 
 
 	 	         } 
 
 	         } 
 
 	         p u b l i c   s t a t i c   v o i d   u p d a t e R e c t S t a t u s ( N y A R T a r g e t L i s t   i _ l i s t , I N y A R V e c t o r R e a d e r   i _ v e c r e a d e r , N y A R R e c t T a r g e t S t a t u s P o o l   i _ s t p o o l , L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m [ ]   s o u r c e , i n t [ ]   i n d e x ) 
 
 	         { 	 
 
 	 	         N y A R T a r g e t [ ]   r c t = i _ l i s t . g e t A r r a y ( ) ; 
 
 	 	         N y A R T a r g e t   d _ p t r ; 
 
 	 	         / / 00000n0fe
 
 	 	         f o r ( i n t   i = i _ l i s t . g e t L e n g t h ( ) - 1 ; i > = 0 ; i - - ) { 
 
 	 	 	         d _ p t r = r c t [ i ] ; 
 
 	 	 	         / / t^b0R{
 
 	 	 	         d _ p t r . _ s t a t u s _ l i f e - - ; 
 
 	 	 	         / / eW0D000000n0\Ob
 
 	 	 	         N y A R R e c t T a r g e t S t a t u s   s t = i _ s t p o o l . n e w O b j e c t ( ) ; 
 
 	 	 	         i f ( s t = = n u l l ) { 
 
 	 	 	 	         / / 1YWe\O0j0K0c0_0	
 
 	 	 	 	         d _ p t r . _ d e l a y _ t i c k + + ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         i n t   s a m p l e _ i n d e x = i n d e x [ i ] ; 
 
 	 	 	         L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m   s = s a m p l e _ i n d e x < 0 ? n u l l : s o u r c e [ s a m p l e _ i n d e x ] ; 	 	 
 
 	 	 	         i f ( ! s t . s e t V a l u e B y A u t o S e l e c t ( i _ v e c r e a d e r ,   s ,   ( N y A R R e c t T a r g e t S t a t u s ) d _ p t r . _ r e f _ s t a t u s ) ) { 
 
 	 	 	 	         s t . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	 	         d _ p t r . _ d e l a y _ t i c k + + ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } e l s e { 
 
 	 	 	 	         i f ( s ! = n u l l ) { 
 
 	 	 	 	 	         d _ p t r . s e t S a m p l e A r e a ( s ) ; 
 
 	 	 	 	         } 
 
 	 	 	         } 
 
 	 	 	         d _ p t r . _ r e f _ s t a t u s . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	         d _ p t r . _ r e f _ s t a t u s = s t ; 
 
 	 	 	         d _ p t r . _ d e l a y _ t i c k = 0 ; 
 
 	 	         } 	 	 
 
 	         } 
 
 
 
 	         / * * 
 
 	           *   000000000Sk00s a m p l e 0/c0Rf0000000000k0<h
}W0~0Y00
 
 	           *   00000o00r e c t > c o o r d > n e w > i g n o r e n0k0*QHQW0f0/c0RQ000~0Y00
 
 	           *   @ p a r a m   i _ s n a p s h o t 
 
 	           *   @ p a r a m   i _ s o u r c e 
 
 	           *   @ p a r a m   i _ n e w 
 
 	           *   @ p a r a m   i _ i g 
 
 	           *   @ p a r a m   i _ c o o d 
 
 	           *   @ p a r a m   i _ r e c t 
 
 	           *   @ p a r a m   i _ n e w s r c 
 
 	           *   @ p a r a m   i _ i g s r c 
 
 	           *   @ p a r a m   i _ c o o d s r c 
 
 	           *   @ p a r a m   i _ r e c t s r c 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           * / 
 
 	         p r i v a t e   v o i d   s a m p l e M a p p e r ( 
 
 	 	         L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t   i _ s o u r c e , 
 
 	 	         N y A R T a r g e t L i s t   i _ n e w , N y A R T a r g e t L i s t   i _ i g , N y A R T a r g e t L i s t   i _ c o o d , N y A R T a r g e t L i s t   i _ r e c t , 
 
 	 	         S a m p l e S t a c k   i _ n e w s r c , S a m p l e S t a c k   i _ i g s r c , S a m p l e S t a c k   i _ c o o d s r c , S a m p l e S t a c k   i _ r e c t s r c ) 
 
 	         { 
 
 	 	         / / 00000RgS
 
 	 	         i _ n e w s r c . c l e a r ( ) ; 
 
 	 	         i _ c o o d s r c . c l e a r ( ) ; 
 
 	 	         i _ i g s r c . c l e a r ( ) ; 
 
 	 	         i _ r e c t s r c . c l e a r ( ) ; 
 
 	 	         / / 
 
 	 	         L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m [ ]   s a m p l e _ i t e m s = i _ s o u r c e . g e t A r r a y ( ) ; 
 
 	 	         f o r ( i n t   i = i _ s o u r c e . g e t L e n g t h ( ) - 1 ; i > = 0 ; i - - ) 
 
 	 	         { 
 
 	 	 	         / / 0000K00n0$P0vQ0n000000n0000x0RM
 
 	 	 	         L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m   s a m p l e _ i t e m = s a m p l e _ i t e m s [ i ] ; 
 
 	 	 	         i n t   i d ; 
 
 	 	 	         i d = i _ r e c t . g e t M a t c h T a r g e t I n d e x ( s a m p l e _ i t e m ) ; 
 
 	 	 	         i f ( i d > = 0 ) { 
 
 	 	 	 	         i _ r e c t s r c . p u s h ( s a m p l e _ i t e m ) ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         / / c o o r d 
 
 	 	 	         i d = i _ c o o d . g e t M a t c h T a r g e t I n d e x ( s a m p l e _ i t e m ) ; 
 
 	 	 	         i f ( i d > = 0 ) { 
 
 	 	 	 	         i _ c o o d s r c . p u s h ( s a m p l e _ i t e m ) ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         / / n e w t a r g e t 
 
 	 	 	         i d = i _ n e w . g e t M a t c h T a r g e t I n d e x ( s a m p l e _ i t e m ) ; 
 
 	 	 	         i f ( i d > = 0 ) { 
 
 	 	 	 	         i _ n e w s r c . p u s h ( s a m p l e _ i t e m ) ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         / / i g n o r e   t a r g e t 
 
 	 	 	         i d = i _ i g . g e t M a t c h T a r g e t I n d e x ( s a m p l e _ i t e m ) ; 
 
 	 	 	         i f ( i d > = 0 ) { 
 
 	 	 	 	         i _ i g s r c . p u s h ( s a m p l e _ i t e m ) ; 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         / / 000g0M0j0K0c0_00n0o00N e w T r a g e t x0{v2( .z^%Rn0L i s t k0o0S fW0j0D0) 
 
 	 	 	         N y A R T a r g e t   t = t h i s . a d d N e w T a r g e t ( s a m p l e _ i t e m ) ; 
 
 	 	 	         i f ( t = = n u l l ) { 
 
 	 	 	 	         c o n t i n u e ; 
 
 	 	 	         } 
 
 	 	 	         i _ n e w s r c . p u s h ( s a m p l e _ i t e m ) ; 
 
 	 	         } 
 
 	 	         r e t u r n ; 
 
 	         } 
 
 	         / / 00000d\O|pe
 
         	 
 
 	         / / I g n o r e T a r g e t n0peo00N U M B E R _ O F _ T A R G E T h0TX0g0Y00
 
 
 
 
 
 
 
 
 
 
 
         	 
 
 	         / * * 
 
 	           *   eW0D0N e w T a r g e t 0RW0~0Y00
 
 	           *   @ p a r a m   i _ c l o c k 
 
 	           *   @ p a r a m   i _ s a m p l e 
 
 	           *   @ r e t u r n 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           * / 
 
 	         p r i v a t e   N y A R T a r g e t   a d d N e w T a r g e t ( L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m   i _ s a m p l e ) 
 
 	         { 
 
 	 	         / / Ppe6RP
 
 	 	         i f ( t h i s . _ n u m b e r _ o f _ n e w > = t h i s . M A X _ N U M B E R _ O F _ N E W ) { 
 
 	 	 	         r e t u r n   n u l l ; 
 
 	 	         } 
 
 	 	         / / 0000ub
 
 	 	         N y A R T a r g e t   t = t h i s . t a r g e t _ p o o l . n e w N e w T a r g e t ( ) ; 
 
 	 	         i f ( t = = n u l l ) { 
 
 	 	 	         r e t u r n   n u l l ; 
 
 	 	         } 
 
 	 	         t . _ s t a t u s _ l i f e = L I F E _ O F _ N E W ; 
 
 	 	         t . _ s t _ t y p e = N y A R T a r g e t S t a t u s . S T _ N E W ; 
 
 	 	         t . _ d e l a y _ t i c k = 0 ; 
 
 	 	         t . s e t S a m p l e A r e a ( i _ s a m p l e ) ; 
 
 	 	         t . _ r e f _ s t a t u s = t h i s . n e w s t _ p o o l . n e w O b j e c t ( ) ; 
 
 	 	         i f ( t . _ r e f _ s t a t u s = = n u l l ) { 
 
 	 	 	         t . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	         r e t u r n   n u l l ; 
 
 	 	         } 
 
 	 	         ( ( N y A R N e w T a r g e t S t a t u s ) t . _ r e f _ s t a t u s ) . s e t V a l u e ( i _ s a m p l e ) ; 
 
 	 	         / / 00000000x0R
 
 	 	         t h i s . _ t a r g e t s . p u s h A s s e r t ( t ) ; 
 
 	 	         t h i s . _ n u m b e r _ o f _ n e w + + ; 
 
 	 	         r e t u r n   t ; 
 
 	         } 
 
 	         / * * 
 
 	           *   c[W0_000000n0000000000K00JRdW0~0Y00
 
 	           *   00000`0Q00YK00SgqW0f0D004XTj0i0000000n0i n d e x L0
Nfj04XTo00
 
 	           *   000000i g n o r e 00000k0-[W0f00t r a c k e r n0p r o g r e s s 0L}1uW0f0d e l e a t e 0[LW0~0Y00
 
 	           *   @ p a r a m   i _ i n d e x 
 
 	           *   @ r e t u r n 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           * / 
 
 	         p r i v a t e   v o i d   d e l e a t T a r g e t ( i n t   i _ i n d e x ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( t h i s . _ t a r g e t s . g e t I t e m ( i _ i n d e x ) . _ s t _ t y p e   = =   N y A R T a r g e t S t a t u s . S T _ I G N O R E ) ; 
 
 	 	         N y A R T a r g e t   t r = t h i s . _ t a r g e t s . g e t I t e m ( i _ i n d e x ) ; 
 
 	 	         t h i s . _ t a r g e t s . r e m o v e I g n o r e O r d e r ( i _ i n d e x ) ; 
 
 	 	         t r . r e l e a s e O b j e c t ( ) ; 
 
 	 	         t h i s . _ n u m b e r _ o f _ i g n o r e - - ; 
 
 	 	         r e t u r n ; 
 
 	         } 
 
         	 
 
 	         / * * 
 
 	           *   S0n000000n00000000I g n o r e S t a t u s x0	YfW0~0Y00
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n   
 
 	           * / 
 
 	         p u b l i c   v o i d   c h a n g e S t a t u s T o I g n o r e ( N y A R T a r g e t   i _ t a r g e t , i n t   i _ l i f e ) 
 
 	         { 
 
 	 	         / / wyCQn00000006RPY00S0h0
 
                         D e b u g . A s s e r t ( ( i _ t a r g e t . _ s t _ t y p e   = =   N y A R T a r g e t S t a t u s . S T _ N E W )   | |   
 
 	 	 	 	         ( i _ t a r g e t . _ s t _ t y p e = = N y A R T a r g e t S t a t u s . S T _ C O N T U R E )   | |   
 
 	 	 	 	         ( i _ t a r g e t . _ s t _ t y p e = = N y A R T a r g e t S t a t u s . S T _ R E C T ) ) ; 
 
 
 
 	 	         / / 0000fe
 
 	 	         s w i t c h ( i _ t a r g e t . _ s t _ t y p e ) 
 
 	 	         { 
 
 	 	         c a s e   N y A R T a r g e t S t a t u s . S T _ N E W : 
 
 	 	 	         t h i s . _ n u m b e r _ o f _ n e w - - ; 
 
 	 	 	         b r e a k ; 
 
 	 	         c a s e   N y A R T a r g e t S t a t u s . S T _ R E C T : 
 
 	 	 	         t h i s . _ n u m b e r _ o f _ r e c t - - ; 
 
 	 	 	         b r e a k ; 
 
 	 	         c a s e   N y A R T a r g e t S t a t u s . S T _ C O N T U R E : 
 
 	 	 	         t h i s . _ n u m b e r _ o f _ c o n t o u r e - - ; 
 
 	 	 	         b r e a k ; 
 
 	 	         d e f a u l t : 
 
 	 	 	         r e t u r n ; 
 
 	 	         } 
 
 	 	         i _ t a r g e t . _ s t _ t y p e = N y A R T a r g e t S t a t u s . S T _ I G N O R E ; 
 
 	 	         i _ t a r g e t . _ r e f _ s t a t u s . r e l e a s e O b j e c t ( ) ; 
 
 	 	         i _ t a r g e t . _ s t a t u s _ l i f e = i _ l i f e ; 
 
 	 	         i _ t a r g e t . _ r e f _ s t a t u s = n u l l ; 
 
 	 	         t h i s . _ n u m b e r _ o f _ i g n o r e + + ; 
 
 	 	         r e t u r n ; 
 
 	         } 
 
 	         / * * 
 
 	           *   S0n000000n00000000C n t o u r e S t a t u s x0wyU0[0~0Y00
 
 	           *   @ p a r a m   i _ c 
 
 	           * / 
 
 	         p r i v a t e   N y A R T a r g e t   c h a n g e S t a t u s T o C n t o u r e ( N y A R T a r g e t   i _ t a r g e t , N y A R C o n t o u r T a r g e t S t a t u s   i _ c ) 
 
 	         { 
 
 	 	         / / wyCQn00000006RP
 
                         D e b u g . A s s e r t ( i _ c   ! =   n u l l ) ; 
 
                         D e b u g . A s s e r t ( i _ t a r g e t . _ s t _ t y p e   = =   N y A R T a r g e t S t a t u s . S T _ N E W ) ; 
 
 	 	         / / Ppe6RP
 
 	 	         i f ( t h i s . _ n u m b e r _ o f _ c o n t o u r e > = t h i s . M A X _ N U M B E R _ O F _ C O N T U R E ) { 
 
 	 	 	         r e t u r n   n u l l ; 
 
 	 	         } 
 
 	 	         i _ t a r g e t . _ s t _ t y p e = N y A R T a r g e t S t a t u s . S T _ C O N T U R E ; 
 
 	 	         i _ t a r g e t . _ r e f _ s t a t u s . r e l e a s e O b j e c t ( ) ; 
 
 	 	         i _ t a r g e t . _ s t a t u s _ l i f e = L I F E _ O F _ C O N T U R E _ F R O M _ N E W ; 
 
 	 	         i _ t a r g e t . _ r e f _ s t a t u s = i _ c ; 
 
 	 	         / / 0000fe
 
 	 	         t h i s . _ n u m b e r _ o f _ n e w - - ; 
 
 	 	         t h i s . _ n u m b e r _ o f _ c o n t o u r e + + ; 
 
 	 	         r e t u r n   i _ t a r g e t ; 
 
 	         } 
 
 	         / * * 
 
 	           *   S0n0000000R e c t 00000k0wyU0[0~0Y00
 
 	           *   @ p a r a m   i _ t a r g e t 
 
 	           *   @ p a r a m   i _ c 
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p r i v a t e   N y A R T a r g e t   c h a n g e S t a t u s T o R e c t ( N y A R T a r g e t   i _ t a r g e t , N y A R R e c t T a r g e t S t a t u s   i _ c ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( i _ t a r g e t . _ s t _ t y p e   = =   N y A R T a r g e t S t a t u s . S T _ C O N T U R E ) ; 
 
 	 	         i f ( t h i s . _ n u m b e r _ o f _ r e c t > = t h i s . M A X _ N U M B E R _ O F _ R E C T ) { 
 
 	 	 	         r e t u r n   n u l l ; 
 
 	 	         } 
 
 	 	         i _ t a r g e t . _ s t _ t y p e = N y A R T a r g e t S t a t u s . S T _ R E C T ; 
 
 	 	         i _ t a r g e t . _ r e f _ s t a t u s . r e l e a s e O b j e c t ( ) ; 
 
 	 	         i _ t a r g e t . _ s t a t u s _ l i f e = L I F E _ O F _ R E C T _ F R O M _ C O N T O U R ; 
 
 	 	         i _ t a r g e t . _ r e f _ s t a t u s = i _ c ; 
 
 	 	         / / 0000fe
 
 	 	         t h i s . _ n u m b e r _ o f _ c o n t o u r e - - ; 
 
 	 	         t h i s . _ n u m b e r _ o f _ r e c t + + ; 
 
 	 	         r e t u r n   i _ t a r g e t ; 
 
 	         } 
 
 
 
         	 
 
         } 
 
 
 
         / * * 
 
           *   00000<h
}Y000000g0Y00S0n0000o00 NBfvj00000\O0_00k0OD0~0Y00
 
           * / 
 
         c l a s s   S a m p l e S t a c k   :   N y A R P o i n t e r S t a c k < L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m > 
 
         { 
 
                 p u b l i c   S a m p l e S t a c k ( i n t   i _ s i z e ) 
 
                         :   b a s e ( ) 
 
 	         { 
 
 	 	         t h i s . i n i t I n s t a n c e ( i _ s i z e ) ; 
 
 	         } 
 
         } 
 
 
 
 
 
         / * * 
 
           *   N y A R T a r g e t h0S a m p l e S t a c k . I t e m n00pݍ0000\OY00000g0Y00
 
           *   0000000K000s e t P o i n t D i s t s pe0000000W0~0Y00
 
           * 
 
           * / 
 
         s e a l e d   c l a s s   D i s t M a p   :   N y A R D i s t M a p 
 
         { 
 
                 p u b l i c   D i s t M a p ( i n t   i _ m a x _ c o l ,   i n t   i _ m a x _ r o w ) 
 
                         :   b a s e ( i _ m a x _ c o l ,   i _ m a x _ r o w ) 
 
 	         { 
 
 	         } 
 
 	         p u b l i c   v o i d   m a k e P a i r I n d e x e s ( S a m p l e S t a c k   i g s o u r c e ,   N y A R T a r g e t L i s t   i g t r , i n t [ ]   i n d e x ) 
 
 	         { 
 
 	 	         t h i s . s e t P o i n t D i s t s ( i g s o u r c e . g e t A r r a y ( ) , i g s o u r c e . g e t L e n g t h ( ) , i g t r . g e t A r r a y ( ) , i g t r . g e t L e n g t h ( ) ) ; 
 
 	 	         t h i s . g e t M i n i m u m P a i r ( i n d e x ) ; 
 
 	 	         r e t u r n ; 
 
 	         } 
 
 	         / * * 
 
 	           *   00n0pݍ▒0{W0~0Y00
 
 	           *   g e t M i n i m u m P a i r g0Bl~0000000o00N y A R T a r g e t k0 g0 NY00L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m n0000000k0j00~0Y00
 
 	           *   @ p a r a m   i _ s a m p l e 
 
 	           *   @ p a r a m   i _ s m p _ l e n 
 
 	           *   @ p a r a m   i _ t a r g e t 
 
 	           *   @ p a r a m   i _ t a r g e t _ l e n 
 
 	           * / 
 
 	         p u b l i c   v o i d   s e t P o i n t D i s t s ( L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t . I t e m [ ]   i _ s a m p l e , i n t   i _ s m p _ l e n , N y A R T a r g e t [ ]   i _ t a r g e t , i n t   i _ t a r g e t _ l e n ) 
 
 	         { 
 
 	 	         N y A R D i s t M a p . D i s t I t e m [ ]   m a p = t h i s . _ m a p ; 
 
 	 	         / / d i s t o r t i o n M a p 0\Ob0d0D0g0k0 g\$Pn0000000S_
 
 	 	         i n t   m i n _ i n d e x = 0 ; 
 
 	 	         i n t   m i n _ d i s t   = i n t . M a x V a l u e ; 
 
 	 	         i n t   i d x = 0 ; 
 
 	 	         f o r ( i n t   r = 0 ; r < i _ s m p _ l e n ; r + + ) { 
 
 	 	 	         f o r ( i n t   c = 0 ; c < i _ t a r g e t _ l e n ; c + + ) { 
 
 	 	 	 	         m a p [ i d x ] . c o l = c ; 
 
 	 	 	 	         m a p [ i d x ] . r o w = r ; 
 
 	 	 	 	         / / -N.Y^jn0ݍ
 
 	 	 	 	         i n t   d = i _ t a r g e t [ c ] . _ s a m p l e _ a r e a . s q D i a g o n a l P o i n t D i f f ( i _ s a m p l e [ r ] . b a s e _ a r e a ) ; 
 
 	 	 	 	         m a p [ i d x ] . d i s t = d ; 
 
 	 	 	 	         i f ( m i n _ d i s t > d ) { 
 
 	 	 	 	 	         m i n _ i n d e x = i d x ; 
 
 	 	 	 	 	         m i n _ d i s t = d ; 
 
 	 	 	 	         } 
 
 	 	 	 	         i d x + + ; 
 
 	 	 	         } 
 
 	 	         } 
 
 	 	         t h i s . _ m i n _ d i s t = m i n _ d i s t ; 
 
 	 	         t h i s . _ m i n _ d i s t _ i n d e x = m i n _ i n d e x ; 
 
 	 	         t h i s . _ s i z e _ c o l = i _ s m p _ l e n ; 
 
 	 	         t h i s . _ s i z e _ r o w = i _ t a r g e t _ l e n ; 
 
 	 	         r e t u r n ; 
 
 	         } 	 	 	 
 
         } 
 
 } 