Added the the fith style type, Convolution kernals
This commit is contained in:
1 parent
4a46119095
commit
d61330e177
20 files changed
+107
-20
No files matched your search
+34
-3
@@ -67,7 +67,7 @@ namespace ImageMinipulation {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// Changing the color of pixels inside a range to new colors
|
||||
/// </summary>
|
||||
public void Four()
|
||||
{
|
||||
@@ -77,7 +77,7 @@ namespace ImageMinipulation {
|
||||
int width = pic.Cols;
|
||||
int height = pic.Rows;
|
||||
|
||||
var image = convertPic.InRange(new Bgr(75, 0, 0), new Bgr(255, 0, 0));
|
||||
var image = convertPic.InRange(new Bgr(75, 0, 0), new Bgr(255, 125, 125));
|
||||
|
||||
for (int i = 0; i < image.Rows; i++)
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace ImageMinipulation {
|
||||
|
||||
if (num.Intensity > 0)
|
||||
{
|
||||
convertPic[i, j] = new Bgr(convertPic[i, j].MCvScalar.V0 - 50, convertPic[i, j].MCvScalar.V1 - 50, convertPic[i, j].MCvScalar.V2 + 100);
|
||||
convertPic[i, j] = new Bgr(convertPic[i, j].MCvScalar.V0 - 50, convertPic[i, j].MCvScalar.V1 + 100, convertPic[i, j].MCvScalar.V2 - 50);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -99,5 +99,36 @@ namespace ImageMinipulation {
|
||||
|
||||
CvInvoke.WaitKey();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void Five()
|
||||
{
|
||||
Mat pic = CvInvoke.Imread("./img/StarryNight.jpg");
|
||||
|
||||
/// This is a 3D matrix, and we will be using a process called convoluion
|
||||
/// Convolution is the application of a kernel to each individual pixal and it's surrounding pixels
|
||||
/// then you take that value and put it back in the pixel and some effect happens depending on the valuse
|
||||
/// in the kernel
|
||||
/// A new convoluted kernal can be looked up for the effect you want (this kernal is basic sharpen)
|
||||
float[,] kernalArray = new float[3, 3]
|
||||
{
|
||||
{ 0, -1, 0},
|
||||
{ -1, 5, -1},
|
||||
{ 0, -1, 0}
|
||||
};
|
||||
|
||||
ConvolutionKernelF kernal = new ConvolutionKernelF(kernalArray);
|
||||
|
||||
Mat filteredPic = new Mat();
|
||||
pic.CopyTo(filteredPic);
|
||||
|
||||
CvInvoke.Filter2D(pic, filteredPic, kernal, new System.Drawing.Point(0, 0));
|
||||
|
||||
CvInvoke.Imshow("Convoluted Night", filteredPic);
|
||||
|
||||
CvInvoke.WaitKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,10 @@ namespace ImageMinipulation
|
||||
vanGoghFilters coloredNight = new vanGoghFilters();
|
||||
coloredNight.Four();
|
||||
break;
|
||||
case "Five":
|
||||
vanGoghFilters sharpendNight = new vanGoghFilters();
|
||||
sharpendNight.Five();
|
||||
break;
|
||||
default:
|
||||
Console.WriteLine("That command didn't match any command on record.");
|
||||
break;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Vision")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+4a46119095f143590950b4c187458a1070c574b7")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Vision")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Vision")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
991b1b3f86e47566b330ee213128b9eb29a3ff29121a573de89984efe9062497
|
||||
e17d606bef8dc49ab9098d852070f254921c1acafd1e4b9c0a795a2c3ae7c891
|
||||
@@ -8,7 +8,7 @@ build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Vision
|
||||
build_property.ProjectDir = C:\Users\carte\Documents\Personal Code\Vision\Vision\
|
||||
build_property.ProjectDir = C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 9.0
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
ce9439942344d973971fc3eaacb3b1f07f7bfb7956e94608cef1ff762dbcc16b
|
||||
ae4f19b9ca28908befe66f0d62bc3f4329c551193858bb718b6f73d6147ed73f
|
||||
@@ -50,3 +50,55 @@ C:\Users\carte\Documents\Personal Code\Vision\Vision\bin\Debug\net9.0\runtimes\w
|
||||
C:\Users\carte\Documents\Personal Code\Vision\Vision\bin\Debug\net9.0\runtimes\win\lib\net9.0\Microsoft.Win32.SystemEvents.dll
|
||||
C:\Users\carte\Documents\Personal Code\Vision\Vision\obj\Debug\net9.0\Vision.csproj.AssemblyReference.cache
|
||||
C:\Users\carte\Documents\Personal Code\Vision\Vision\obj\Debug\net9.0\Vision.csproj.Up2Date
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\Vision.exe
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\Vision.deps.json
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\Vision.runtimeconfig.json
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\Vision.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\Vision.pdb
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\Emgu.CV.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\Microsoft.Win32.SystemEvents.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\System.Drawing.Common.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\System.Private.Windows.Core.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\System.Private.Windows.GdiPlus.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-arm64\native\cvextern.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\cvextern.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\libusb-1.0.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\opencv_videoio_ffmpeg4130_64.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x86\native\cvextern.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x86\native\libusb-1.0.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x86\native\opencv_videoio_ffmpeg4130.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-arm64\native\concrt140.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-arm64\native\msvcp140.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-arm64\native\msvcp140_1.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-arm64\native\msvcp140_2.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-arm64\native\msvcp140_atomic_wait.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-arm64\native\msvcp140_codecvt_ids.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-arm64\native\vcruntime140.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-arm64\native\vcruntime140_1.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\concrt140.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\msvcp140.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\msvcp140_1.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\msvcp140_2.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\msvcp140_atomic_wait.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\msvcp140_codecvt_ids.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\vcruntime140.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x64\native\vcruntime140_1.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x86\native\concrt140.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x86\native\msvcp140.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x86\native\msvcp140_1.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x86\native\msvcp140_2.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x86\native\msvcp140_atomic_wait.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x86\native\msvcp140_codecvt_ids.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win-x86\native\vcruntime140.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\bin\Debug\net9.0\runtimes\win\lib\net9.0\Microsoft.Win32.SystemEvents.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\Vision.csproj.AssemblyReference.cache
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\Vision.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\Vision.AssemblyInfoInputs.cache
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\Vision.AssemblyInfo.cs
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\Vision.csproj.CoreCompileInputs.cache
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\Vision.csproj.Up2Date
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\Vision.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\refint\Vision.dll
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\Vision.pdb
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\Vision.genruntimeconfig.cache
|
||||
C:\Users\carte\OneDrive\Documents\My-Code\C#Projects\Emgu.CV-Learning-Projects\obj\Debug\net9.0\ref\Vision.dll
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
f168a163960347759b5f443144d3d251c9e50442c6ad29c3fa3306018a2ace3f
|
||||
4b4b55c6aeccba6c06ba6a26900103f2e87f66668297419c3a684c650a1c76cb
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\carte\\Documents\\Personal Code\\Vision\\Vision\\Vision.csproj": {}
|
||||
"C:\\Users\\carte\\OneDrive\\Documents\\My-Code\\C#Projects\\Emgu.CV-Learning-Projects\\Vision.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\carte\\Documents\\Personal Code\\Vision\\Vision\\Vision.csproj": {
|
||||
"C:\\Users\\carte\\OneDrive\\Documents\\My-Code\\C#Projects\\Emgu.CV-Learning-Projects\\Vision.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\carte\\Documents\\Personal Code\\Vision\\Vision\\Vision.csproj",
|
||||
"projectUniqueName": "C:\\Users\\carte\\OneDrive\\Documents\\My-Code\\C#Projects\\Emgu.CV-Learning-Projects\\Vision.csproj",
|
||||
"projectName": "Vision",
|
||||
"projectPath": "C:\\Users\\carte\\Documents\\Personal Code\\Vision\\Vision\\Vision.csproj",
|
||||
"projectPath": "C:\\Users\\carte\\OneDrive\\Documents\\My-Code\\C#Projects\\Emgu.CV-Learning-Projects\\Vision.csproj",
|
||||
"packagesPath": "C:\\Users\\carte\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\carte\\Documents\\Personal Code\\Vision\\Vision\\obj\\",
|
||||
"outputPath": "C:\\Users\\carte\\OneDrive\\Documents\\My-Code\\C#Projects\\Emgu.CV-Learning-Projects\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\carte\\AppData\\Roaming\\NuGet\\NuGet.Config"
|
||||
@@ -73,7 +73,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.302/PortableRuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1791,11 +1791,11 @@
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\carte\\Documents\\Personal Code\\Vision\\Vision\\Vision.csproj",
|
||||
"projectUniqueName": "C:\\Users\\carte\\OneDrive\\Documents\\My-Code\\C#Projects\\Emgu.CV-Learning-Projects\\Vision.csproj",
|
||||
"projectName": "Vision",
|
||||
"projectPath": "C:\\Users\\carte\\Documents\\Personal Code\\Vision\\Vision\\Vision.csproj",
|
||||
"projectPath": "C:\\Users\\carte\\OneDrive\\Documents\\My-Code\\C#Projects\\Emgu.CV-Learning-Projects\\Vision.csproj",
|
||||
"packagesPath": "C:\\Users\\carte\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\carte\\Documents\\Personal Code\\Vision\\Vision\\obj\\",
|
||||
"outputPath": "C:\\Users\\carte\\OneDrive\\Documents\\My-Code\\C#Projects\\Emgu.CV-Learning-Projects\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\carte\\AppData\\Roaming\\NuGet\\NuGet.Config"
|
||||
@@ -1857,7 +1857,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.302/PortableRuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "uzgtR3SMArU=",
|
||||
"dgSpecHash": "nVxNJU07pdY=",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\carte\\Documents\\Personal Code\\Vision\\Vision\\Vision.csproj",
|
||||
"projectFilePath": "C:\\Users\\carte\\OneDrive\\Documents\\My-Code\\C#Projects\\Emgu.CV-Learning-Projects\\Vision.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"C:\\Users\\carte\\.nuget\\packages\\emgu.cv\\4.13.0.5924\\emgu.cv.4.13.0.5924.nupkg.sha512",
|
||||
"C:\\Users\\carte\\.nuget\\packages\\emgu.cv.runtime.windows\\4.13.0.5924\\emgu.cv.runtime.windows.4.13.0.5924.nupkg.sha512",
|
||||
|
||||
Reference in new issue
Block a user