Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alteração de métodos em classes #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added WindowsFormsApplication1/ClassDiagram1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions WindowsFormsApplication1/LibFiltros.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2026
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApplication1", "WindowsFormsApplication1\WindowsFormsApplication1.csproj", "{9C7AE06F-E2D2-4833-8CAF-9AFF735D7CB6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9C7AE06F-E2D2-4833-8CAF-9AFF735D7CB6}.Debug|x86.ActiveCfg = Debug|x86
{9C7AE06F-E2D2-4833-8CAF-9AFF735D7CB6}.Debug|x86.Build.0 = Debug|x86
{9C7AE06F-E2D2-4833-8CAF-9AFF735D7CB6}.Release|x86.ActiveCfg = Release|x86
{9C7AE06F-E2D2-4833-8CAF-9AFF735D7CB6}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7BACA415-A232-4E50-8C5A-5B0DAAB8493C}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
public abstract class CalcularMediaPonderada
{
public static int[] Compute(int[] mediaP, int valor) //retorna a array ordenada
{
int peso = 0;
int soma = 0;
int i;
for (i = 0; i < mediaP.Length; i++)
{
mediaP[i] = (mediaP[i] * (i + 1));
soma = soma + mediaP[i];
peso = peso + i;
}
valor = soma / peso;
return mediaP;
}
}
}
172 changes: 172 additions & 0 deletions WindowsFormsApplication1/WindowsFormsApplication1/ClassDiagram1.cd
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
<Class Name="WindowsFormsApplication1.FiltroBase" Collapsed="true">
<Position X="4" Y="0.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAEAAAEAAAAAAQAAAAAQAAAAAAAAAAAAAAA=</HashCode>
<FileName>FiltroBase.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.FiltroBordas">
<Position X="5.25" Y="1.75" Width="1.5" />
<InheritanceLine Type="WindowsFormsApplication1.FiltroBase" FixedToPoint="true">
<Path>
<Point X="4.75" Y="1.062" />
<Point X="4.75" Y="1.375" />
<Point X="6" Y="1.375" />
<Point X="6" Y="1.75" />
</Path>
</InheritanceLine>
<TypeIdentifier>
<HashCode>AAACAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAI=</HashCode>
<FileName>FiltroBordas.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.FiltroCinza">
<Position X="2.75" Y="4.5" Width="1.5" />
<InheritanceLine Type="WindowsFormsApplication1.FiltroBase" ManuallyRouted="true">
<Path>
<Point X="4.75" Y="1.062" />
<Point X="4.75" Y="1.375" />
<Point X="0.467" Y="1.375" />
<Point X="0.467" Y="4.125" />
<Point X="3.5" Y="4.125" />
<Point X="3.5" Y="4.5" />
</Path>
</InheritanceLine>
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAg=</HashCode>
<FileName>FiltroCinza.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.FiltroCorteMediano">
<Position X="8.75" Y="1.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAg=</HashCode>
<FileName>FiltroCorteMediano.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.FiltroMedia">
<Position X="0.75" Y="1.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAACAAAAAAAgAAAAAAAAAAAAAAAQ=</HashCode>
<FileName>FiltroMedia.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.FiltroMediana">
<Position X="7" Y="1.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAA=</HashCode>
<FileName>FiltroMediana.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.FiltroMinMax">
<Position X="4.75" Y="4.5" Width="1.5" />
<InheritanceLine Type="WindowsFormsApplication1.FiltroBase" ManuallyRouted="true">
<Path>
<Point X="4.75" Y="1.062" />
<Point X="4.75" Y="1.375" />
<Point X="0.497" Y="1.375" />
<Point X="0.497" Y="4.125" />
<Point X="5.5" Y="4.125" />
<Point X="5.5" Y="4.5" />
</Path>
</InheritanceLine>
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
<FileName>FiltroMinMax.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.FiltroModa">
<Position X="8.75" Y="4.5" Width="1.5" />
<InheritanceLine Type="WindowsFormsApplication1.FiltroBase" ManuallyRouted="true">
<Path>
<Point X="4.75" Y="1.062" />
<Point X="4.75" Y="1.375" />
<Point X="0.449" Y="1.375" />
<Point X="0.449" Y="4.125" />
<Point X="9.5" Y="4.125" />
<Point X="9.5" Y="4.5" />
</Path>
</InheritanceLine>
<TypeIdentifier>
<HashCode>AAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAA=</HashCode>
<FileName>FiltroModa.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.FiltroNegativo">
<Position X="2.5" Y="1.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACA=</HashCode>
<FileName>FiltroNegativo.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.FiltroPopulosidade">
<Position X="0.75" Y="4.5" Width="1.5" />
<InheritanceLine Type="WindowsFormsApplication1.FiltroBase" ManuallyRouted="true">
<Path>
<Point X="4.75" Y="1.062" />
<Point X="4.75" Y="1.375" />
<Point X="0.47" Y="1.375" />
<Point X="0.47" Y="4.125" />
<Point X="1.5" Y="4.125" />
<Point X="1.5" Y="4.5" />
</Path>
</InheritanceLine>
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAg=</HashCode>
<FileName>FiltroPopulosidade.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.FiltroSubstituicaoUniforme">
<Position X="6.75" Y="4.5" Width="1.5" />
<InheritanceLine Type="WindowsFormsApplication1.FiltroBase" ManuallyRouted="true">
<Path>
<Point X="4.75" Y="1.062" />
<Point X="4.75" Y="1.375" />
<Point X="0.469" Y="1.375" />
<Point X="0.469" Y="4.125" />
<Point X="7.5" Y="4.125" />
<Point X="7.5" Y="4.5" />
</Path>
</InheritanceLine>
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAg=</HashCode>
<FileName>FiltroSubstituicaoUniforme.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.Form1" Collapsed="true">
<Position X="11" Y="2" Width="1.5" />
<TypeIdentifier>
<HashCode>ARAAAAAAACCABFAABACoEBADQQAEAgAAAAAgAgwAIBo=</HashCode>
<FileName>Form1.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.Ordenacao">
<Position X="11" Y="5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
<FileName>Ordenacao.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.Program">
<Position X="11" Y="0.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAA=</HashCode>
<FileName>Program.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.Properties.Resources" Collapsed="true">
<Position X="11" Y="4" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAQAAAAAAAAAAABEAAAQQAAAAgCAAAAAAAAAIA=</HashCode>
</TypeIdentifier>
</Class>
<Class Name="WindowsFormsApplication1.Properties.Settings" Collapsed="true">
<Position X="11" Y="3" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAIAAAAAABAAAAAAAAAAAAAAA=</HashCode>
</TypeIdentifier>
</Class>
<Font Name="Segoe UI" Size="9" />
</ClassDiagram>
36 changes: 36 additions & 0 deletions WindowsFormsApplication1/WindowsFormsApplication1/FiltroBase.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
public class FiltroBase
{
public int Largura { get; protected set; }
public int Altura { get; protected set; }
public int pixelR { get; protected set; }
public int pixelG { get; protected set; }
public int pixelB { get; protected set; }
public int pixelA { get; protected set; }

public int[] todosPixeisR { get; protected set; }
public int[] todosPixeisG { get; protected set; }
public int[] todosPixeisB { get; protected set; }
public int[] todosPixeisA { get; protected set; }

public FiltroBase()
{
Largura = 0;
Altura = 0;
pixelR = 0;
pixelG = 0;
pixelB = 0;
pixelA = 0;
todosPixeisR = new int[9];
todosPixeisG = new int[9];
todosPixeisB = new int[9];
todosPixeisA = new int[9];
}
}
}
Loading