Skip to content

Commit

Permalink
Update ag_imagem.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyM7 authored Sep 29, 2024
1 parent 9551e8c commit f11c7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projetos/projetos-de-ia/projeto-de-ag/ag_imagem.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def mse(imgGer, imgOrig):

# Função para gerar imagem a partir de um cromossomo
def ger_img_cromo(cromossomo):
# inicializa a imagem como branca (intensidade 255)
# inicializa a imagem como branca (cor 255)
img = np.ones((64, 64)) * 255
qtd_pixels = len(cromossomo) // 3 # cada 3 valores do cromossomo representam um pixel
for i in range(qtd_pixels):
Expand Down

0 comments on commit f11c7f7

Please sign in to comment.