I nte rna t io na l J o urna l o f   I nfo r m a t ics a nd   Co mm u n ica t io n T ec hn o lo g y   ( I J - I CT )   Vo l.   5 ,   No .   1 A p r il   201 6 ,   p p .   3 6 ~ 44   I SS N:  2252 - 8776           36       J o ur na l ho m ep a g e h ttp : //ia e s jo u r n a l.c o m/o n lin e/in d ex . p h p /I J I C T   Perf o r m  M ea suring   b y  using  I m a g P ro cess ing       Su nd us   K ha leel  E bra hee m     De p a rtme n o f   Co m p u ter S c ien c e s,  Co ll e g e   o f   Co m p u ter S c ien c e s an d   M a t h e m a ti c s,  M o su Un iv e rsity ,   Ira q       Art icle  I nfo     AB ST RAC T     A r ticle  his to r y:   R ec eiv ed   Dec   12 ,   2 0 1 5   R ev i s ed   Mar   20 , 2 01 6   A cc ep ted   Mar   26 ,   2 0 1 6       T h e   d e v e lo p m e n o f   a b il it y   o f   th e   c o m p u ter  lea d to   im p ro v e   th e   a b il it ies   o f   d ig it a im a g e   p ro c e ss in g ,   b e c a u s e   o f   th e   trad it io n a m e a su rin g   wo rk   n e e d m u c h   e ff o rt  in   t h e   site  f o d if f e r e n f ield s,  a n d   h a it d if f ic u lt ies   a n d   sh o rtco m in g   p o in ts;  t h e re f o re   t h is  p a p e in tro d u c e im p ro v e m e n f o th e   m e th o d   to   so lv e   th e   m e a su rin g   p ro b lem ,   b y   u sin g   d ig it a im a g e   p ro c e ss in g .   T h is  p a p e i m p ro v e d   th e   s y ste m   o f   p e r f o r m   m e a su rin g   o f   m a teria f o b u il d in g b y   c a lcu latin g   th e   v o lu m e   f u rth e rm o re   th e   a re a   a n d   d im e n sio n f o a n y   p o siti o n   w a p o in ted   b y   th e   u se r.   T h e   i m p ro v e m e n in v o lv e d   in   a d d it i o n   to   th a c o rre c ti o n   th e   p o siti o n   o f   p o in ted   p o i n in   c a se   o f   z o o m in g .   T h e   s y ste m   w a s   d e sig n e d   b y   u sin g   M ATLA R2 0 1 2 b   lan g u a g e .   T h e   s y ste m   h a s   im p le m e n ted   o n   d if fe re n im a g e a n d   d if fe re n d im e n sio n a w e ll   a o n   v id e o ,   it   s h o w e d   a c c u ra te  re su lt in   c a lcu latin g   sp e c if ic  d im e n sio n s,  a re a a n d   v o l u m e   w h ich   d e f in e d   b y   th e   u se in   t h e   im a g e   K ey w o r d :   A r ea   m ea s u r in g     C iv il e n g i n ee r in g   m ea s u r in g   Di m e n s io n   m ea s u r i n g   I m ag p r o ce s s i n g   Me asu r i n g   a m o u n o f   m ater ial s   Ob j ec r ec o g n itio n   Vo lu m m ea s u r i n g   Co p y rig h ©   2 0 1 6   In stit u te o A d v a n c e d   E n g i n e e rin g   a n d   S c ien c e   Al rig h ts  re se rv e d .   C o r r e s p o nd ing   A uth o r :   Su n d u s   K h alee l E b r ah ee m     De p a rtme n o f   Co m p u ter S c ie n c e s,    Co ll e g e   o f   Co m p u ter S c ien c e s an d   M a th e m a ti c s,    M o su l   Un iv e rsity ,   Ira q       1.   I NT RO D UCT I O N     T h h u g d ev elo p m e n i n   th co m p u ter   tech n iq u e s   an d   d ig it al  i m ag p r o ce s s i n g   h elp s   to   g et  i m ag e s   w it h o u c h e m ica tr ea t m en ts   [ 1 ] .   A n d   T h r ev o l u tio n   o f   th e   in f o r m atic s   c h an g es   th e   w o r k   i n   v ar io u s   f ie ld s   an d   th d ig ital  i m ag b ec o m e s   u s ed   i n   w id r ag [ 2 ] .   T h o p er atio n s   ap p lied   o n   th d ig it al  i m a g es  ar m u c h   ac co r d in g   to   r eq u ir ed   tr ea tm e n ts   [ 3 ] .     T h d ig ital  i m a g p r o ce s s in g   is   u s ed   i n   m a n y   ap p licatio n   o f   co m p u ter   v is io n   w h ic h   i n s p i r ed   b y   th e   r ea l b io lo g ical  s y s te m s   [ 4 ] .   W h er T h i m ag i s   co n v er ted   to   m atr i x   o f   d ata ,   it is   ca lled   d i g ital i m a g [ 5 ] .     No w ad a y s ,   s ea r c h in g   in   t h d atab ase  ab o u d i g ital  i m a g e s   o r   o n   t h i n ter n e b y   u s i n g   s ea r ch in g   en g i n to   g et  s i m ilar   i m a g i s   u s ed   w id el y   [ 6 ] .   T h d ig ital  i m a g p r o ce s s i n g   g iv e s   ab ili t y   to   ad j u s t,  r e f i n e,   m an ip u late   an d   f o r g er y   t h i m a g e s   [ 7 ] .   T h d ev elo p m e n o f   ab ilit y   o f   th c o m p u ter   lead s   to   i m p r o v th e   ab ilit ies  o f   d ig ital   i m a g p r o ce s s i n g ,   a n d   t h is   in   i ts   r o le  en co u r ag ed   t h r esear c h er s   i n   t h co m p u ter   v is io n   f ie ld   to   in n o v at e   n e alg o r ith m s ,   m et h o d s   an d   tec h n iq u e s   f o r   i m ag a n al y s i s   an d   p atter n   r ec o g n itio n .   So ,   m a n y   n e w   s tu d ie s   an d   id ea s   in tr o d u ce d   to   ap p ly   i m a g p r o ce s s in g   i n   m a n y   f ield s ,   th f o llo w i n g   ar s o m r ec en r esear ch es  i n   th i s   f ield :   I n   2 0 1 0   A b d u l lah   u s ed   co u n t o u r let  tr an s f o r m atio n   co ef f ici en ts   to   d eter m in e   t h ed g e s   i n   th e   i m ag e   an d   th e n   to   u s it   i n   s e g m e n tatio n   p r o ce s s   [ 3 ] .   A ls o ,   E b r ah ee m   p r o p o s ed   m et h o d   to   f i n d   t h o b j ec d i m en s io n s   in   t h d ig ital  i m ag es  b y   u s in g   t w o   i n d ex   p o in li g h t s   ap p lied   o n   th o b j ec b y   t w o   p ar allel  s o u r ce s   f i x ed   w ith   th ca m er to   f in d   th s ca le  [ 8 ] .   I n   2 0 1 1 ,   E te w i n tr o d u ce d   m et h o d   f o r   tr af f i s ig n s   r ec o g n it io n   b ased   o n   th co lo r   an d   s h ap p r o p er ties   [ 7 ] .   I n   2 0 1 2 ,   U s m a n   p r e s en t s   n o v el  au to m ated   ap p r o ac h   f o r   p r ep r o ce s s in g   o f   co lo r ed   r etin al  i m a g e s .   T h p r o p o s ed   tech n iq u e   i m p r o v e d   t h q u alit y   o f   in p u r eti n al  i m a g e   b y   s ep ar atin g   t h b ac k g r o u n d   an d   n o i s y   ar ea   f r o m   th e   o v e r all  i m a g [ 9 ] .   W h ile  I n   2 0 1 3 ,   A lb as h u s ed   t h e   co u n to r   tr an s f o r m at io n   to   i m p r o v th i m ag co lo r   [ 1 0 ] .   T h r ee   d if f er e n co lo r   m o d els  ( R GB ,   HI S,  YC b C r )   f o r   ex tr ac ti n g   t h d a m a g ed   i m ag e   f r o m   co tto n   lea f   i m a g e s   w er i m p le m en ted   b y   Qin g h ai  a n d   et   a l .   i n   t h e   s a m e   y ea r .   T h r atio   o f   d a m a g w a s   c h o s en   as  f ea t u r to   m ea s u r t h d eg r ee   o f   d a m ag w h ic h   ca u s ed   b y   Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - I C T     I SS N:  2252 - 8776       P erfo r Mea s u r i n g   b u s in g   I ma g p r o ce s s in g   ( S u n d u s   K h a leel  E b r a h ee m)   37   d is ea s es  o r   p ests   [ 1 1 ] .     I n   2 0 1 4 ,   E b r ah ee m   an d   et  al .   w er d esig n ed   s y s te m   to   p er f o r m   m e asu r i n g   o f   m ater ial   f o r   b u ild in g s   i n   t h civ i l e n g i n ee r in g   f ield   [ 1 2 ]   b y   u s in g   d ig it al  i m a g es,  t h is   s y s te m   is   im p r o v ed   in   th i s   p ap er .   T h m ea s u r in g   w o r k   n ee d s   m u c h   e f f o r i n   t h s i te  i n   t h e   v ar io u s   f ield s .   I n ee d s   s o m e   p er s o n s ,   m ea s u r in g   tap es,  r ef lecto r s ,   a n d   th ab il it y   to   r ea ch   h i g h   an d   d i f f icu lt  p o s itio n s   s u ch   a s   h i g h   tr ee s   o r   t h ele v atio n   o f   t h b u ild in g .   T h m ea s u r i n g   t ea m   s h o u ld   b at   th e   s ite  f o r   lo n g   ti m d u r in g   m ea s u r in g   a n d   r e_ v is it  t h s ite  m an y   ti m e s   to   co llect  th d ata  th at  n ee d ed   f o r   ca lcu latin g   th d i m e n s io n s   a n d   a m o u n ts   i n   t h n e x t step .     B ec au s o f   th at  t h ex i s ted   m ea s u r in g   p r o g r a m s   n ee d   to   co llect  th in p u t   d ata  f r o m   th s ite  o r   f r o m   o th er   d r a w in g   p r o g r a m   f o r   ea ch   le n g t h ,   th er e f o r th is   p ap er   in t r o d u ce s   i m p r o v e m e n f o r   m e th o d   to   s o lv th m ea s u r in g   p r o b le m ,   b y   u s in g   d ig ital  i m a g p r o ce s s i n g ,   wh er th m eth o d   in tr o d u ce d   in   [ 8 ] [ 1 2 ]   ar e   th s tar tin g   p o in t   of   us i n g   th d i g i tal  i m a g p r o ce s s in g   f o r   m ea s u r in g   i n   th v ar io u s   f ield s .   T h id ea   o f   th is   p ap er   is   to   m ak in teg r ated   s y s te m   f o r   co m p u ter ized   m ea s u r in g   i n   t h v ar io u s   f ield s   b a s ed   o n   th d ig i tal  i m ag p r o ce s s i n g ,   r ed u ce s   th n ee d   o f   t h u s er   to   b at  th s ite  f o r   m ea s u r i n g   ev er y   le n g t h .       2.   RE C E NT   D E V I CE S   T h is   s ec tio n   s tate s   s o m o f   m o s i m p o r tan an d   r ec en t   d ev ices  u s ed   b y   ci v il  e n g i n ee r in g   f o r   m ea s u r in g   t h len g t h s ,   ar ea s   a n d   v o lu m e s   [ 1 2 ] :   1)   T o tal  s tatio n   d ev ice:   is   u s i n g   f o r   s u r v e y   to   f i n d   h o r izo n tal  a n d   v e r tical  a n g les,  h ei g h ts   a n d   d is tan ce s .   T h is   d ev ice  u s es   s i g n a l a n d   n ee d   to   u s e   r ef lecto r   f o r   ea ch   p o in t.  T h er ar m an y   t y p es o f   t h is   d ev ice  t h r ec e n t   o n s u p p lied   w ith   Glo b al  P o s itio n i n g   S y s te m   ( GP S)  w h ic h   n ee d   to   co n n ec w ith   t h s at ellite;  th er i s   an o t h er   t y p r ep lace s   t h r ef le cto r   w it h   B lu eto o th   s y s te m .   T h is   d ev ice  ca n   co n n ec t to   th c o m p u ter .   2)   L aser   d i s tan ce m eter t h i s   n e w   d ev ice  is   u s ed   laser   to   m ea s u r len g t h .   I is   v er y   s i m p le  a n d   ea s y   to   u s i n   th s ite  co m p ar i n g   w i th   tr ad iti o n al  m et h o d s ,   b u it  n ee d s   t h e   civ il  en g i n ee r   to   b at  th s ite  an d   m ea s u r e   ev er y   len g t h   n ee d ed   to   ca lc u l ate  th e   le n g t h s ,   ar ea s   a n d   v o l u m e s .   T h d e v ice  a f ter   e n ter i n g   all   n ee d ed   len g th   ca lc u late s   th n ee d ed   len g t h   o r   ar ea   o r   v o lu m e.         3.   CO M P O NE NT S O F   T H E   P RO P O SE SY ST E M   T h Sy s t e m   is   co m p o s ed   f r o m   t w o   co m p o n e n ts : th f ir s t i s   t h h ar d w ar w h ic h   r ep r esen te d   b y   t h d ev ice  an d   th s ec o n d   is   t h s o f t w ar w h ic h   r ep r esen ted   b y   th alg o r it h m   o f   t h m ea s u r i n g .   T h t w o   co m p o n e n t s   ar d etailed   as f o l lo w s :     3 . 1 .   H a rdw a re   P a r t   T h d ev ice  is   m o d i f ied   f r o m   t h d ev ice  in   t h p ap er [ 8 ] an d   its   f r a m m ad f r o m   m etal,   t h e r ar t w o   p ar allel  s o u r ce s   o f   cir cu lar   la s er   b ea m   f i x ed   in   th e   f r a m a d is tan ce   2 6   c m   b et w ee n   t h e m ,   i n   t h m id d le  o f   th f r a m t h er is   d ig ital c a m er a,   as s h o w n   i n   th Fig u r es   ( 1 , 2 , 3 ) .             Fig u r 1 .   B o tto m   v ie w   o f   t h d ev ice   Fig u r 2 .   Fro n t v ie w   o f   t h d e v ice   Fig u r 3 .   T o p   v ie w   o f   t h d ev i ce                      3 . 2 .   S o f t wa re   P a rt     T h s o f t w ar is   m o d if ied   f r o m   t h s o f t w ar i n   th p ap er   [ 1 2 ] .   T o   m ea s u r o r   ca lcu late  th o b j ec d i m en s io n s   an d /o r   ar ea   an d /o r   v o lu m i n   a n   i m ag i s h o u ld   at  f ir s th s ca le  b k n o w n ,   wh ich   w ill  b f o u n d   b y   t h s y s te m .     T h alg o r ith m   o f   f i n d in g   th e   s ca le  n ee d s   to   f in d   th e   ce n t er   o f   t h t w o   li g h t   p o in t s   ( ci r cles)   th a t   ap p lied   o n   th o b j ec in   th i m ag e,   to   d o   th at ,   P o in Sear c h   C ir cle  Dete ctio n   A l g o r ith m   ( P SC D)   u s ed   to   f in d   th cir cles.  T h en   ap p l y   t h s te p s   o f   th m ea s u r in g .   See  Fi g u r 4 .       Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 2 5 2 - 8776   IJ - I C T    Vo l.  5 ,   No .   1 ,   A p r il   20 1 6   :   3 6     44   38       Fig u r 4 .   B lo ck   d iag r a m   f o r   th m ea s u r in g   s y s te m       3 . 2 . 1   P o int  Sea rc h Cir cle  Det ec t io n Alg o rit h m   ( P S CD)   P o in s ea r ch   cir cle  d etec tio n   alg o r ith m   ( P SC D)   is   u s ed   to   f in d   t h ce n ter s   o f   li g h p o in ts .   T h is   alg o r ith m   [ 1 2 ] ,   [ 1 3 ]   is   u s ed   af t er   m ad s o m m o d i f icatio n :   1)   B eg in   2)   B eg in   s ca n n i n g   p ix e b y   p ix el   h o r izo n tall y   f r o m   u p p er   le f s id o f   t h i m a g li n b y   li n u n til  f i n d i n g   an   illu m i n ated   p ix el  a n d   co n s id er   it a s   ( P 1 ) .     3)   B eg in   s ca n n in g   p ix el  b y   p ix el   v er ticall y   f r o m   P 1 ( X1 ,   Y1 )   u n til  f in d i n g   an   ill u m in ated   p ix el,   if   th i s   p ix el   is   ex i s t,  it  w ill co n s id er   as P 2 ( X2 ,   Y2 ) .   4)   Fin d   th d is ta n ce   ( d )   b etw ee n   ( P 1 & P 2 )   w h ic h   r ep r esen ts   th d ia m eter   o f   th cir cle  an d   th en   f i n d   th e   r ad iu s   ( r ) .   s ee   th f o llo w i n g   eq u atio n s :     d = S QR   (   ( X 1     X 2 ) 2    + ( Y1   + Y2 ) 2   )                             ( 1 )            r =d /2                                     ( 2 )     5)   Fin d   th co o r d in ates  o f   t h ce n ter   o f   cir cle  ( Xc,   Yc) .   See  Fig u r 5 ,   b ec au s o f   X2 =X 1   th er f o r Xc= X1 ,   Yc= Y1 +r .             Fig u r 5 .   T h p o in ts   o n   th cir cle  p er im e ter       6)   B eg in   s ea r ch   ab o u P 3 ( Xc+ r ,   Yc)   an d   P 4 ( Xc - r , Yc) .   I f   P 3   o r   P 4   is   ex is t,  th en   th cir cle   ( r , Xc,   Yc)   is   d etec ted .     7)   R e m o v th d etec ted   cir cle  to   m ak t h p r o ce s s   o f   f i n d in g   th s ec o n d   cir cle  ea s ier .     8)   R ep ea t step s   ( 1 - 6 )   to   d etec t th ce n ter   o f   th s ec o n d   cir cle.       3 . 2 . 2   Ca lcula t io Ste ps   M ea s uring   T o   m ea s u r a n   o b j ec t d im en s i o n s   o r   ar ea s   o r   v o lu m e s   in   a n y   i m ag ap p l y   t h f o llo w in g   s te p s :   1)   C ap tu r i n g   p ict u r f o r   th ele v atio n   o r   tak i n g   v id eo   clip .   2)   C o n v er tin g   t h ch o s e n   i m ag t o   HSV  s y s te m .   Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - I C T     I SS N:  2252 - 8776       P erfo r Mea s u r i n g   b u s in g   I ma g p r o ce s s in g   ( S u n d u s   K h a leel  E b r a h ee m)   39   3)   C lip   p ar t o f   i m a g th at  co n tai n s   th i n d ex   li g h t p o in ts .   4)   C o n v er tin g   t h i m a g to   th e   b in ar y   s y s te m   b y   u s in g   t h r es h o ld   r an g f o r   g r ee n   laser   li g h t,  ( 0 . 0 - 0 . 4 8 )   f o r   h u e,   ( 0 . 0 - 0 . 4 2 )   f o r   s atu r atio n   a n d   ( 1 . 0 0 - 0 . 8 9 )   f o r   v alu e.     5)   A p p l y   t h i n n in g   p r o ce s s   to   eli m i n ate  th u n w an ted   p o in ts .   6)   Fin d i n g   ce n ter 's  co o r d in ates   f o r   b o th   cir cles   b y   u s i n g   th m o d i f ied   p o in t   s ea r ch   c ir cle  d etec tio n   alg o r ith m .   7)   Fin d i n g   t h s ca le  b y   u s in g   t h f o llo w in g   s tep s   a)   Fin d   t h d is ta n ce   b et w ee n   th t w o   i n d ex   l ig h p o in t s   i n   th i m a g e   (Im a g e Lig h tDista n c e b y   u s i n g   eq u atio n   ( 1 ) .   b)   Fin d   t h s ca le  b y   u s i n g   t h f o l lo w i n g   eq u atio n :     S ca le  = I ma g eLig h tD is ta n ce   / A ctu a lLi g h tDis ta n ce                         ( 3 )     W h er e:  A ctu a lLi g h tDis ta n ce   =2 6   r e p r esen ts   th r ea d is tan ce   b etw ee n   th t w o   b ea m s   i n   th d e v ice   f r a m e.   8)   P o in tin g   t h d is ta n ce   o r   th ar ea   o r   th v o lu m o n   t h o r ig in al  i m a g b y   u s i n g   t h m o u s a n d   th cu r s er .   9)   C h o o s i n g   ad d itio n   o r   s u b tr ac tio n   o p er atio n   f o r   n e w   d is tan ce   o r   n e w   ar ea   o r   n e w   v o l u m w it h   t h at  r esu lt   in   s tep   ( 8 ) .   10)   P r in tin g   th v al u o f   th f i n al  r esu lt.   11)   R ep ea tin g   s tep s   ( 8 ,   9 )   in   ca s o f   o th er   m ea s u r i n g .   12)   E n d .       4.   I M P L E M E NT AT I O   S T E P S   T h is   s ec tio n   ill u s tr ates h o w   t h s y s te m   w o r k s ,   as i n   th f o llo w i n g   s tep s :   1)     Fig u r 6   r ep r esen ts   th n e w   i n ter f ac o f   th s y s te m   ( m ai n   i n ter f ac e s ) .         Fig u r 6 .   Ma in   in ter f ac s cr ee n       2)   C h o o s i n g   eith er   " Op en   I m ag e "   ico n   an d   th en   ch o o s an   i m ag e,   o r   " O p en   Vid eo "   ico n   an d   th en   ch o o s a   v id eo .   3)   T h s y s te m   w ill  f i n d   th s ca le   to   d eter m i n th s ca le  an d   t h r esu lt   w ill  p r i n o n   t h r ig h p ar o f   th m ai n   in ter f ac s cr ee n .   See  Fi g u r 7 .     4)   T o   m ea s u r s p ec if ic  d i s tan c o r   ar ea   in   th i m ag cl ick   " Fin d   Di s tan ce "   f o r   d is ta n ce s ,   o r   click   " Fin d   A r ea "   ico n   to   f i n d   ar ea s ,   t h e n   th c u r s o r   w ill   ap p ea r   w i th   th a n d   co o r d i n ates   to   d eter m in e   an d   p o i n t   th b e g in n i n g   p o in t   a n d   o p p o s ite  p o in o n   t h i m a g e,   t h r e s u lt   w il p r in t   o n   t h m ai n   i n t er f ac s cr ee n   i n   ad d itio n   to   s to r it in   th " His t o r y "   s cr ee n   w h ich   s h o w s   t h p r ev io u s   r es u lt s .   See  Fi g u r 8 .     5)   T o   f in d   th v o lu m e,   cl ick   " Fi n d   Vo lu m e"   ico n ,   t h en   th e   u s er   p o in ts   a n   ar ea ,   a f ter   t h at  th s y s te m   w il l   r eq u est  f r o m   t h u s er   to   ch o o s an o th er   s ce n th at  s h o u ld   b o v er lab   w it h   th p r ev io u s   s ce n to   p o in lin e   in   t h is   n e w   s ce n e.   T h s y s te m   w ill  f i n d   th ar ea   f r o m   th f ir s s ce n a n d   m u ltip l y   it   w it h   t h le n g t h   o f   t h e   lin f r o m   th s ec o n d   s ce n to   p r o d u ce   th v o lu m e.   6)   T o   ad d   o r   s u b tr ac t a n y   d is ta n c o r   ar ea   o r   v o lu m f r o m   o th er   u s ( +)   o r   ( - )   ico n   th en   ( =)   ic o n .   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 2 5 2 - 8776   IJ - I C T    Vo l.  5 ,   No .   1 ,   A p r il   20 1 6   :   3 6     44   40   7)   I n   ca s o f   c h o o s i n g   v id eo   u s "P lay /P au s e"   ico n   to   p la y   o r   p au s th v id e o ,   " >> "   an d   " << "   ico n s   f o r   m o v i n g   f o r w ar d   an d   b ac k w ar d   1 0   f r am es a n d   " > " , " < "   ico n   f o r   m o v in g   1   f r a m e.   8)   " Z o o m "   ico n   is   u s i n g   f o r   zo o m i n g   i n ,   th s y s te m   w ill  i m p l e m en th al g o r ith m   i n   t h s e ctio n   " zo o m   in   o p er atio n " .   9)   T o   ch o o s an   i m a g f r o m   v i d eo ,   click   p a u s o n   th c h o s e n   i m ag e.   T h en   d o   s tep   ( 4 ) .                                            Fig u r 7 .   T h P o s itio n   o f   S ca l                                       Fig u r 8 .   P o s itio n s   o f   R es u lt s       5.   Z O O M   I O P E RAT I O N   T h zo o m   in   o p er atio n   th at  it  u s e s   in   th is   p ap er   is   v er y   s i m p le  m et h o d .   I u s es  m a s k   w i th   s ize  3 ×3 ,   w h er ea ch   p ix el  in   t h i m a g w ill  b ec o m 3 ×3   p ix els  in   th m a g n i f ied   i m a g e,   th er ef o r th r atio n   o f   zo o m i n g   is   3 :1 ,   See  Fig u r e   9 .                Fig u r 9 .   ( a)   T h o r ig in al  i m a g e.   ( b )   T h i m ag a f ter   zo o m i n g       I f   th e   u s er   clic k s   " zo o m "   ico n ,   th s y s te m   w ill ap p l y   t h f o ll o w i n g   s tep s :   Step 1   : Fin d in g   t h s ca le.   Step 2   : M ag n i f y in g   t h i m ag e.   Step 3   : Sav th n u m b er   o f   ti m es  f o r   zo o m   i n   ( No Z )   t h at  th u s er   m ad it.   Step 4   : G iv v al u f o r   th zo o m i n g   o p er ato r   ( Z )   ac co r d in g   to   th f o llo w i n g   eq u a tio n .     Z=N o Z ×3                                 ( 4 )     W h er e:  3   is   th r atio   o f   th zo o m   i n   o p er atio n .   Step 5   :   T h u s er   ch o o s es  o n o f   th ico n s   ( " Fin d   Dis tan ce " ,   " Fin d   A r ea " ,   " Fin d   Vo lu m e" ) ,   th en   p o in tin g   th e   p o in ts   o n   t h i m a g e.   Step 6   :   T h s y s te m   w il m o d i f y   p o s itio n   o f   ea ch   ch o s e n   p o in t   as  s h o w n   i n   t h s ec t io n   " Mo d if y i n g   th e   p o s itio n " .   Step 7    T h s y s te m   w i ll f in d   t h d is ta n ce   ac co r d in g   to   th f o llo w i n g   eq u atio n s :   a)   Fin d   th d is tan ce   a f ter   zo o m i n g   ( Da Z )   d is tan ce   b et w ee n   t w o   m o d i f ied   p o in ts   ac co r d in g   to   th e   eq u atio n   ( 1 ) .   b)   Fin d   t h R ea l d is ta n ce   b y   u s i n g   eq u atio n   ( 5 ) .     R ea l d is ta n ce   =Da Z /  Z                               ( 5 )   Step 8   : Rep ea t step   7   f o r   ea ch   d i m en s io n   w a s   p o in ted   b y   th u s er .   Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - I C T     I SS N:  2252 - 8776       P erfo r Mea s u r i n g   b u s in g   I ma g p r o ce s s in g   ( S u n d u s   K h a leel  E b r a h ee m)   41   Step 9   : T h s y s te m   w ill ca lc u l ate  th ar ea   o r   v o lu m e,   i f   t h u s er   ch o s ico n s   ( " Fin d   A r ea "   o r   " Fin d   Vo lu m e" ) .   Step 1 0   : D is p la y in g   t h r esu lts .       6.   M O DIFYIN G   T H E   P O S I T I O N   E ac h   p o in is   p o in ted   b y   t h u s er   w ill  b co r r ec ted   to   th e   ce n ter   o f   th e   m a s k .   See  F ig u r e( 1 0 ) .   W h er e   ea ch   p o in w ill co m p ar ed   w it h   its   4 - Nei g h b o r es,  s ee   Fig u r ( 1 1 ).           Fig u r 1 0 .   ( a)   T h p o in ts   w er e   p o in ted   b y   t h u s er   ( b )   T h p o in ts   a f ter   m o d if y i n g   o p er atio n           Fig u r 1 1 .   4 -   Neig h b o r s       T h s tep s   o f   m o d if y i n g   ar e:   1)   C o m p ar in g   t h p o in ( P   w h ic h   r ep r esen ts   th p o i n w as  p o in t ed   b y   t h u s er )   w i th   t h u p   n ei g h b o r   ( P 1 ) .   I f   P =P1   th en   th e   p o in t   P   w ill  b k ep at  th e   s a m p o s itio n   ( s a m co o r d in ate) ,   o th er w i s P   w il b m o v ed   t o   d o w n   b y   o n p o s itio n .   2)   C o m p ar in g   t h o u tp u p o in f r o m   s tep 1   ( P )   w it h   t h lef n ei g h b o r   ( P 2 ) .   I f     P = P 2   th en   th p o in P   w ill   b e   k ep t a t th s a m co o r d in ate,   o th er w is P   w ill b m o v ed   to   r ig h t b y   o n p o s itio n .   3)   C o m p ar in g   th o u tp u p o in f r o m   s tep 2   ( P)  w it h   t h d o w n   n eig h b o r   ( P 3 ) .   I f     P = P 3   th en   th p o in w ill  b k ep t a t th s a m co o r d in ate,   o th er w i s P   w ill b m o v ed   to   u p   b y   o n p o s itio n .   4)   C o m p ar in g   t h e   o u tp u p o in f r o m   s tep 3   ( P )   w it h   th r i g h n e ig h b o r   ( P 4 ) .   I f     P = P 4   th en   th p o in P   w i ll  b k ep t a t th s a m co o r d in ate,   o th er w is P   w ill b m o v ed   to   lef t b y   o n p o s itio n .   5)   T h o u tp u t p o in t f r o m   s tep 4   ( P )   is   th n e w   p o s itio n   f o r   p o in ted   p o in t.   6)   R ep ea t th s tep s   ( 1 - 4 )   f o r   ea ch   p o in w a s   p o in ted   b y   th u s er .       7.   CO M P ARIS I O N   Su p p o s V1   i s   t h f ir s t   v er s io n   f o r   th e   s y s te m   in   p ap er   [ 1 2 ]   an d   V2   is   t h n e w   v er s io n   f o r   th s y s te m   in   th is   p ap er .   1)   T h s y s te m   i n   V2   is   u s i n g   to   d eter m in t h len g t h s   an d   ar ea s   an d   v o lu m es,  w h i le  V1   w a s   u s ed   to   d eter m in t h len g t h s   a n d   ar ea s   o n l y .   2)   T h s ca le  in   V2   is   f o u n d   au to m atica ll y   b y   th s y s te m .   W h il in   V1   th u s er   w i ll  clic k   " Fin d   s ca le"   ico n   to   f in d   t h s ca le.   3)   T h zo o m   in   o p er atio n   in   V2   s y s te m   is   i m p r o v ed   to   g i v ab ilit y   to   m a g n i f y   t h i m a g m a n y   ti m e s ,   p o in tin g     th p o in t s   o n   th m a g n i f ied   i m ag a n d   m o d if y i n g   t h p o in p o s itio n   w h ic h   p o in ti n g   b y   t h u s er   to   g iv m o r ac c u r ac y .   W h ile  th zo o m   in   o p er atio n   i n   V1   is   v er y   s i m p le  w it h o u t a n y   p r o c ess       8.   AP P L I CA T I VE     E XAM P L E   T h d eter m i n ate   o f   t h w o r k   is   th at  th t w o   i n d ex   lig h t s   s h o u ld   ap p lied   p er p en d icu lar ly   ( in   9 0 ˚   an g le)   o n   th p ar o r   th w a ll  th at  w an to   m ea s u r e.   T h ap p licativ ex a m p le  in   th is   s ec ti o n   is   f o r   s ce n in   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 2 5 2 - 8776   IJ - I C T    Vo l.  5 ,   No .   1 ,   A p r il   20 1 6   :   3 6     44   42   in ter io r   p ar in   b u ild in g   to   m ea s u r th ar ea   o f   th w all  th at  th t w o   i n d ex   p o in ts   ar e   ap p lied   o n   it,  s ee   Fig u r 1 2 .   T h s y s tem   im p lem en tatio n   s tep s   ar e:    1.   C lip   th p ar t o f   im ag th at  h o ld s   th tw o   in d ex   lig h p o in ts .   See  Fig u r 1 3 .   2.   C o n v er th im ag f r o m   HSV  to   b in ar y .   See  Fig u r 1 4 .   3.   A p p ly   th in n in g   p r o ce s s   to   g et  th p er im eter   o f   th in d ex   lig h p o in ts .     4.   A p p l y in g   P SC al g o r ith m   to   f in d   th ce n ter s   co o r d in ates o f   th in d e x   li g h t c ir cle.             Fig u r 1 2 .   I n ter io r   s ce n in   b u ild in g       Fig u r 1 3 .     I m a g o f   in d e x   li g h t p ar t         Fig u r 1 4 .   B in ar y   i m a g e       5.   Fin d i n g   t h s ca le  b y   d i v id in g   th d is ta n ce   b et w ee n   t h ce n te r s   o f   th t w o   i n d ex   li g h cir cles  in   t h i m ag e   b y   t h ac t u al  d is ta n ce   b et w ee n   th s o u r ce s   o f   th i n d ex   li g h t.       6.   P o in tin g   t h f ir s co r n er   o f   th w a ll  b y   th m o u s a n d   th en   p o in tin g   t h s ec o n d   d iag o n all y   o p p o s ite   co r n er   o f   th w all  i n   th i m a g e   o n   th s cr ee n .   7.   T h r esu lt  w ill p r in ted   o n   t h ch o s en   ar ea   i n   th i m a g e,   as s h o w n   i n   Fi g u r e1 5 .           F ig u r e   1 5 .   P r in tin g   t h r esu l t       Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - I C T     I SS N:  2252 - 8776       P erfo r Mea s u r i n g   b u s in g   I ma g p r o ce s s in g   ( S u n d u s   K h a leel  E b r a h ee m)   43   9.   T H E   F E AT UR E S O F   T H E     DE VI CE   AN T H E   SYS T E M   T h f o llo w i n g   f ea t u r es a r m a in   ad v a n tag e s   o f   t h d ev ice  a n d   th s y s te m   1)   T h d ev ice  is   v er y   s i m p le  h an d   h el p   ea s y   to   u s w ith o u t a p p en d ices p ar ts ,   ea s y   to   ca r r y .   2)   I t d o es n ee d   n eith er   co n n ec tio n   n o r   r ef lecto r s   n o r   lab o r s   lik tr ad itio n al  m et h o d s .   3)   Usi n g   th d ev ice  a n d   th s y s t e m   is   n o d if f ic u lt  ( th s y s te m   is   n o co m p le x )   b u co n tr ar y   is   v er y   ea s y   a n d   th er is   n o   n ee d   to   m u c h   e f f o r t   f o r   tr ain in g .   4)   T h d ev ice  an d   th s y s te m   is   l o w   co s t.   5)   C o m p ar in g   t h r esu l ts   w it h   t h ac tu al,   th s y s te m   g a v v er y   ac cu r ate  r esu l ts .   6)   T h s y s te m   co u ld   b u s ed   i n   t h d i f f er e n f ield s ,   s u ch   a s   s tu d y   o f   p la n ts ,   an i m al s   ,   ci v il   en g in ee r i n g   f ield ,   tak th m ea s u r e m en ts   to   m ea s u r t h g la s s     t o   m a k th d o o r s   o r   w i n d o w s .       10.   CO NCLU SI O N   1)   Fro m   s t u d y   o f   d ev ice s   th a u s ed   in   civ il  e n g i n ee r i n g   m ea s u r in g   f ield   d is ce r n   t h at  th er i s   n o   d ev ice  u s ed   f o r   m ea s u r in g   w ith o u n ee d   to   b at  t h e   s ite   f o r   lo n g   ti m e   an d   m ea s u r ea c h   d i m e n s io n   i n d iv id u al l y   b y   th e   m ea s u r in g   tea m .   T h b est  e x i s o n e   is   laser   d i s ta n ce m eter   d ev ice  b u t   it   is   also   n ee d s   to   b at  th e   s i te  f o r   lo n g   ti m to   m ea s u r e v er y   n e ed ed   len g t h ,   w h ile   t h p r o p o s ed   s y s te m   i n   t h i s   p ap er   n ee d s   to   b in   t h e   s ite   f o r   f e w   ti m j u s to   ca p tu r s o m p ictu r es  f o r   ea ch   v ie o r   f o r   ea ch   o b j ec in   th b u ild in g ,   t h en   t h e   m ea s u r in g   o p er atio n   w ill b d o n e,   at  th o f f ice  q u ic k l y ,   ac cu r atel y ,   r eliab ilit y ,   ea s il y   a n d   n o   n ee d   f o r   s ite.   2)   T h p u r p o s o f   t h zo o m   i n   o p er atio n   is   to   m a k f ac il it y   f o r   th e   u s er   to   p o i n t h e   b o r d er   p o in ts   o f   t h e   o b j ec ts   in   t h i m ag ea s il y   a n d   ac cu r atel y .   W h ile  t h p u r p o s o f   th m o d i f y in g   t h p o in p o s itio n   is   to   in cr ea s t h ac cu r ac y   o f   p o s it io n   o f   t h p o in ted   p o in t.  T h er ef o r th m as k   4 - n eig h b o r s   ar s u f f icien f o r   m o d i f y i n g   t h p o s itio n   w h ate v er   th n u m b er   o f   zo o m i n g   ti m es.    3)   I t c an   u s t h i m ag e s   w it h   t h r esu lt s   in   t h d o cu m en ta tio n   o f   th m ea s u r i n g .       F UT UR E   WO RK   AND  R E CO M M E NDATI O NS   W s u g g est   m a k i n g   t h s y s t e m   m o r p er f ec t   b y   co n n ec t in g   t h e   m ea s u r i n g   r es u lts   w i th   b ill   o f   q u an tit ies i n   Mic r o s o f t E x ce p r o g r am   o r   an y   o th er   ac co u n ti n g   p r o g r a m ,   to   m ak te n d er s .       RE F E R E NC E S     [1 ]   Al - F a d lan ,   Ib ra h e e m , " Di g it a a n d   T ra d it io n a O p ti c a P h o t o g ra p h y , "   2 d .   A m m a n ,   Jo rd a n ,   2 0 0 3 .     [2 ]   Ba k h it ,   AL - S a y d ,   "   Dig it a im a g e s   c u lt u re , "   T h e   A ra b   Ce n ter  f o   C y b e rsp a c e   Re se a rc h ,   2 0 1 3 .   [3 ]   A b d a ll a h ,   K.  M . ,   " Ba se d   Co n to u rlet  T ra n s f o r m f o S e g m e n tatio n   th e   Dig it a I m a g e , "   M a st e T h e sis,  Co ll e g e   o f     Co m p u ter S c ien c e s an d   M a t h e m a ti c a l,   M o s u Un iv e rsity ,   2 0 1 0 .   [4 ]   L i,   C.   J.,   Ha ll ,   D.,   E m o n e t,   R. ,   " Au to n o mic   Co m p u ter   Vi sio n   S y st e m , "     In   In tern a ti o n a Co n f e re n c e   o n   c o m p u ter  V isio n   S y ste m ,   Ic v s,  Vo l.   1 7 ,   2 0 0 7 .   [5 ]   AL - Na i m i,   I.   A . , " Us in g   F ra c tal  G e o m e tr y   T e c h n ica to   A n a l y sis   th e   M e d ica Im a g e   T e x tu re , "   M a ste r   T h e sis Co ll e g e   Of   Co m p u ter S c ien c e s An d   M a th e m a ti c a l,   M o su Un iv e rsi ty ,   2 0 0 9 .   [6 ]   Ja ro u p ,   A .   H. ,   " S e a rc h   f o Im a g e Ba se d   o n   Co n ten A n a ly sis , "   J o u rn a l   o f   S c ien c e   a n d   T e c h n o l o g y ,   V o l. 1 5 ,   No .   1 p p .   3 - 2 0 ,   2 0 1 0 .   [7 ]   Al -   Et e w i,   R.   J.,   " De tec ti o n   a n d   Clas sif ica ti o n   o f   T ra ff ic  S ig n   in   Dig it a Im a g e u s in g   th e   Co lo a n d   S h a p e   F e a tu re s , "   Hig h e r Dip l o ma   T h e se s ,   Co ll e g e   o f   Co m p u ter S c ien c e s an d   M a t h e m a ti c a l,   M o su l   Un iv e rsity ,   2 0 1 1 .   [8 ]   Eb ra h e e m ,   S u n d u Kh a lee l; , " Us in g   In d e x   L i g h P o i n ts  to   De term in e   Ob jec Di m e n sio n in   th e   Dig it a I m a g e s , "   AL - Ra fi d a in   J o u rn a l   o C o mp u ter   S c ien c e   a n d   M a t h e ma ti c s Vo l.   7 ,   No .   3 ,   p p . 1 3 5 - 1 6 2 ,   2 0 1 0   [9 ]   Us m a n   Ak ra m ,   " Re ti n a Im a g e   P re p ro c e ss in g Ba c k g ro u n d   a n d   No ise   S e g m e n tatio n , "   IAE S T EL KOM NIKA    In d o n e sia n   J o u rn a o El e c trica En g i n e e rin g ,   V o l .   10 ,   No .   3 ,   p p .   5 3 7 - 5 4 4 ,   2 0 1 2 .   [1 0 ]   A lb a sh a ,   A .   S . ,   " Im p ro v e   th e   Di g it a I m a g e Co lo Ba se d   o n   F r a c ti o n   T ra n sf o r m s , "   M a ste T h e sis ,   Co ll e g e   o f   Co m p u ter S c ien c e s an d   M a t h e m a ti c a l,   M o s u Un iv e rsity ,   2 0 1 3   [1 1 ]   Qin g h a He ,   Be n x u e   M a ,   Du a n y a n g   Qu ,   Qia n g   Zh a n g ,   X i n m in   Ho u ,   Jin g   Zh a o , " Co tt o n   P e st a n d   Dise a se s   D e tec ti o n   Ba se d   o n   Im a g e   P ro c e ss in g , "   IAE S ,   T EL KOM NIKA  In d o n e sia n   J o u rn a o   El e c trica E n g in e e rin g V o l.   1 1 ,   N o .   6 ,   p p .   3 4 4 5 - 3 4 5 0 ,   2 0 1 3   [1 2 ]   Eb ra h e e m ,   S u n d u Kh a lee l,   A L - Hu ss a in y ,   Ya h y a   Hu ss a in ,   A l - M o u la,  W issa m   S a a d ,   " Us in g   In d e x   L ig h Po i n ts  t o   De ter min e   Ob j e c Dime n sio n in   t h e   Dig it a Ima g e s , "   P r o c e e d in g o f   th e   1 st  In ter n a ti o n a En g in e e ri n g   Co n f e re n c e   On   De v e lo p m e n ts  in   Civ il   &   c o m p u ter  En g in e e rin g   A p p li c a ti o n s   IEC2 0 1 4 ,     Ish ik   U n iv e rsity ,   Erb il ,   KRG ,   Ira q ,     p p . 1 6 2 - 1 6 9 ,   2 4 - 26 ,   N o v .     2 0 1 4 .   [1 3 ]   Eb ra h e e m ,   S u n d u Kh a lee l ,   " S u g g e st  P o in S e a rc h   A lg o rit h m   f o Circle   De te c ti o n   in   Bin a ry   I m a g e , "   AL - Ra fi d a i n   J o u rn a o f   Co m p u ter   S c i e n c e s a n d   M a th e ma ti c s,   Vo l.   7 ,   N o .   2 ,   p p .   79 - 9 4 ,   2 0 1 0           Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 2 5 2 - 8776   IJ - I C T    Vo l.  5 ,   No .   1 ,   A p r il   20 1 6   :   3 6     44   44   B I O G RAP H O F   AUTHO R         S u n d u s K h a lee Eb ra h e e m   re c e i v e d   h e B. S c .   1 9 9 6   i n   c o m p u t e sc ien c e s an d   re c e iv e d   h e M . S c .   d e g re e   2 0 0 1   in   c o m p u ter S c ien c e s f ield   o f   i m a g e   p ro c e ss in g   f ro m   u n iv e rsity   o f   M o su l.   S h e   is  c u rre n tl y   w o rk in g   a s lec tu re in   C o m p u ter S c ien c e s an d   M a t h e m a ti c s Co ll e g e   in   Un iv e rsity   o f   M o su l .     S h e   h a 1 3   y e a rs e x p e rien c e   i n   te a c h i n g   f ield   a n d   h a s 1 7   p u b li s h e d   re se a rc h   p a p e rs i n   v a rio u s sc ien ti f ic j o u rn a ls.             Evaluation Warning : The document was created with Spire.PDF for Python.