12.07.2015 Views

III WVC 2007 - Iris.sel.eesc.sc.usp.br - USP

III WVC 2007 - Iris.sel.eesc.sc.usp.br - USP

III WVC 2007 - Iris.sel.eesc.sc.usp.br - USP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>WVC</strong>'<strong>2007</strong> - <strong>III</strong> Workshop de Visão Computacional, 22 a 24 de Outu<strong>br</strong>o de <strong>2007</strong>, São José do Rio Preto, SP.Figure 2. Flowchart of developed system.The genetic parameters and the images are supplied by the user; the initial populationof programs is randomly generated. Since the chromosomes are encoded as binarychains, for example, if the user has <strong>sel</strong>ected the instructions: and (AND logic), sto(STORE), ero (EROSION) and cpl (COMPLEMENT), the first operator will be codedas “002”, the second as “012”, the third as “102” and the last one as “112”. If the treedepth chosen was four, for example, the chromosome: “000110112” could be created.After evaluation of each chromosome in a generation, a fitness value is assigned toeach one. The <strong>sel</strong>ection method used for genetic operators was the tournament <strong>sel</strong>ection.In crossover operation, morphological operators are randomly <strong>sel</strong>ected and exchangedbetween parents chromosomes. The mutation operation replaces a randomly<strong>sel</strong>ected instruction by another in the range of morphological algorithms space. Thereproduction operator copies a single parent into the new generation according to itsfitness value.3 Results and application examplesIn this section some results using the developed algorithm are presented.In figure 3 it is presented an original image and the goal image containing heads extractedfrom a fragment of a music <strong>sc</strong>ore. The genetic procedure found the followingbest program to extract heads: “dil_dd_3->dil_q_3->do_nothing->ero_q_3-183

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!