Giter Site home page Giter Site logo

pdi2023-t1's Introduction

Sistema para processamento de imagens RGB

Este repositório contém o código-fonte de um sistema para abrir, exibir, manipular e salvar imagens RGB com 24 bits/pixel (8 bits/componente/pixel) na linguagem de programação Python. O sistema foi desenvolvido como trabalho prático para a disciplina de Introdução ao Processamento Digital de Imagens ministrada pelo professor Leonardo Vidal Batista.

Funcionalidades

  1. Conversão RGB-YIQ-RGB.

  2. Negativo em RGB (banda a banda) e na banda Y, com posterior conversão para RGB.

  3. Correlação m x n (inteiros não negativos), com extensão por zeros, sobre R, G e B, com offset (inteiro) e filtro definidos em um arquivo (json) à parte. Filtros Soma, Box, ||Sobel|| e Emboss foram testados e os resultados explicados. Também foi comparado Box11x1(Box1x11(Image)) com Box(11x11), em termos de resultado e tempo de processamento. Para o Sobel, foi aplicada expansão de histograma para [0, 255]. Para o filtro de Emboss, foi aplicado valor absoluto ao resultado da correlação, e então somado o offset.

  4. Filtro mediana m x n, com m e n ímpares, sobre R, G e B.

Como usar

Abra o terminal na pasta principal

Questão 1 :

  • python src/main.py .\img\teste.png --yiq

Questão 2:

  • python src/main.py .\img\teste.png --neg-rgb
  • python src/main.py .\img\teste.png --neg-y

Questão 3:

  • python src/main.py .\img\ci.jpeg --filter .\filters\sum3.json
  • python src/main.py .\img\teste.png --filter .\filters\mean3.json
  • python src/main.py .\img\teste.png --filter .\filters\mean9.json
  • python src/main.py .\img\teste.png --filter .\filters\sobelv.json
  • python src/main.py .\img\teste.png --filter .\filters\sobelh.json
  • python src/main.py .\img\teste.png --filter .\filters\sobel.json
  • python src/main.py .\img\teste.png --filter .\filters\emboss2.json ou emboss3.json
  • Measure-Command {python src/main.py .\img\teste.png --filter-sequence [mean,11,1,5,0,true] [mean,1,11,0,5,true]}
  • Measure-Command {python src/main.py .\img\teste.png --filter [mean,11,11,5,5,true]}

Questão 4:

  • python src/main.py .\img\ci.jpeg --filter [median,3,3,1,1,true]

Autores

  • Lucas Issac
  • Luciano Pereira

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.