资源简介
Kinect实例程序,包括简单的图像处理
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BgrImageShader
{
public class Shader
{
//Inverted Colors – Before digital cameras there was film. This is how a picture looked on the film before it was processed onto paper.
public static byte[] InvertedColors(byte[] pixelData int bytesPerPixel)
{
for (int i = 0; i < pixelData.Length; i += bytesPerPixel)
{
pixelData[i] = (byte)~pixelData[i];
pixelData[i + 1] = (byte)~pixelData[i + 1];
pixelData[i + 2] = (byte)~pixelData[i + 2];
}
return pixelData;
}
//Invert the red pixel and swap the blue and green values.
public static byte[] ApocalypticZombie(byte[] pixelData int bytesPerPixel)
{
for (int i = 0; i < pixelData.Length; i += bytesPerPixel)
{
byte temp = pixelData[i];
pixelData[i] = pixelData[i + 1];
pixelData[i + 1] = temp;
pixelData[i + 2] = (byte)~pixelData[i + 2];
}
return pixelData;
}
//Gray scale
public static byte[] GrayScale(byte[] pixelData int bytesPerPixel)
{
for (int i = 0; i < pixelData.Length; i += bytesPerPixel)
{
byte gray = Math.Max(pixelData[i] pixelData[i + 1]);
gray = Math.Max(gray pixelData[i + 2]);
pixelData[i] = gray;
pixelData[i + 1] = gray;
pixelData[i + 2] = gray;
}
return pixelData;
}
//Grainy black and white movie
public static byte[] GrainyBlackAndWhiteMovie(byte[] pixelData int bytesPerPixel)
{
for (int i = 0; i < pixelData.Length; i += bytesPerPixel)
{
byte gray = Math.Min(pixelData[i] pixelData[i + 1]);
gray = Math.Min(gray pixelData[i + 2]);
pixelData[i] = gray;
pixelData[i + 1] = gray;
pixelData[i + 2] = gray;
}
return pixelData;
}
//Washed out colors
public static byte[] WashedOutColors(byte[] pixelData int bytesPerPixel)
{
for (int i = 0; i < pixelData.Length; i += bytesPerPixel)
{
double gray = (pixelData[i] * 0.11) + (pixelData[i + 1] * 0.59) + (pixelData[i + 2] * 0.3);
double desaturation = 0.75;
pixelData[i] = (byte)(pixelData[i] + desaturation *
(gray - pixelData[i]));
pixelData[i + 1] = (byte)(pixelData[i + 1] + desaturation *
(gray - pixelData[i + 1]));
pixelData[i + 2] = (byte)(pixelData[i + 2] + desaturation *
(gray - pixelData[i + 2]));
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2316 2012-12-30 16:24 FirstKinectApp\BgrImageShader\BgrImageShader.csproj
文件 5120 2012-12-30 16:40 FirstKinectApp\BgrImageShader\bin\Debug\BgrImageShader.dll
文件 15872 2012-12-30 16:40 FirstKinectApp\BgrImageShader\bin\Debug\BgrImageShader.pdb
文件 377 2012-12-30 16:24 FirstKinectApp\BgrImageShader\obj\Debug\BgrImageShader.csproj.FileListAbsolute.txt
文件 5120 2012-12-30 16:40 FirstKinectApp\BgrImageShader\obj\Debug\BgrImageShader.dll
文件 15872 2012-12-30 16:40 FirstKinectApp\BgrImageShader\obj\Debug\BgrImageShader.pdb
文件 5617 2012-12-30 16:40 FirstKinectApp\BgrImageShader\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 1360 2012-12-30 16:12 FirstKinectApp\BgrImageShader\Properties\AssemblyInfo.cs
文件 4208 2012-12-30 16:25 FirstKinectApp\BgrImageShader\Shader.cs
文件 325 2012-12-27 21:37 FirstKinectApp\FirstKinectApp\App.xaml
文件 310 2012-12-27 21:37 FirstKinectApp\FirstKinectApp\App.xaml.cs
文件 31295 2013-01-03 13:50 FirstKinectApp\FirstKinectApp\bin\Debug\2084snapshot.jpg
文件 31522 2013-01-03 13:49 FirstKinectApp\FirstKinectApp\bin\Debug\2119snapshot.jpg
文件 31434 2013-01-03 13:49 FirstKinectApp\FirstKinectApp\bin\Debug\2134snapshot.jpg
文件 5120 2012-12-30 16:40 FirstKinectApp\FirstKinectApp\bin\Debug\BgrImageShader.dll
文件 15872 2012-12-30 16:40 FirstKinectApp\FirstKinectApp\bin\Debug\BgrImageShader.pdb
文件 43008 2013-01-03 13:49 FirstKinectApp\FirstKinectApp\bin\Debug\FirstKinectApp.exe
文件 36352 2013-01-03 13:49 FirstKinectApp\FirstKinectApp\bin\Debug\FirstKinectApp.pdb
文件 11600 2013-01-03 13:49 FirstKinectApp\FirstKinectApp\bin\Debug\FirstKinectApp.vshost.exe
文件 490 2010-03-17 22:39 FirstKinectApp\FirstKinectApp\bin\Debug\FirstKinectApp.vshost.exe.manifest
文件 55296 2011-11-12 23:13 FirstKinectApp\FirstKinectApp\bin\Microsoft.Research.Kinect.dll
文件 4804 2012-12-30 16:24 FirstKinectApp\FirstKinectApp\FirstKinectApp.csproj
文件 12440 2012-12-27 22:00 FirstKinectApp\FirstKinectApp\images\leftHand.png
文件 12347 2012-12-27 22:00 FirstKinectApp\FirstKinectApp\images\rightHand.png
文件 3235 2012-12-30 17:10 FirstKinectApp\FirstKinectApp\MainWindow.xaml
文件 8798 2013-01-01 15:03 FirstKinectApp\FirstKinectApp\MainWindow.xaml.cs
文件 2227 2012-12-30 16:40 FirstKinectApp\FirstKinectApp\obj\x86\Debug\App.g.cs
文件 2227 2012-12-30 16:45 FirstKinectApp\FirstKinectApp\obj\x86\Debug\App.g.i.cs
文件 25271 2013-01-03 13:49 FirstKinectApp\FirstKinectApp\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6494 2013-01-03 13:49 FirstKinectApp\FirstKinectApp\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此处省略62个文件信息
- 上一篇:1:5万土地利用现状图例库
- 下一篇:路灯控制系统完整版+PROTEUS仿真
相关资源
- Kinect+PCL Demo程序 点云处理和显示 VS
- 3531Asdk.txt
- ABB robot SDK
- sdk+adt+eclipse
- 数字图像处理期末考试试题
- kinect 2.0生成点云,并用PCL存储
- Graphcut-源码及实现
- 利用小波变换对图像进行分解和重构
- ZPhotoEngineSDK完整版
- lenna.bmp 图像处理 经典图片 bmp lenna图
- 非常重要——SDK调试技巧.pdf
- kinect官方技术文档英文
- 几种常用图像处理算法
- 微信jssdk-demo
- 基于 ROS 与 Kinect 的移动机器人同时定
- 基于图像处理的焊点缺陷识别方法的
- 微软KinectFusion开源实现
- 2017 Revit Lookup
- 2017 Add-In Manager
- Kinect获取彩色图像并保存为jpg图片
- Hi3559A V100R001C02SPC030.txt191518
- 图像分割+GUI
- kinect 2.0获取深度和彩色帧并存为jpg图
- KinectFusion: Real-time 3D Reconstruction论文翻
- 纯Win32 API 编写的截图小工具
- 分块压缩感知图像处理仿真BCS.rar
- 最新Kinect v2 with MS-SDK 2.10.1 for Unity3D
- 已安装ROS-Kinectic的树莓派ubuntu16的im
- Kinect for unity sdk v2.9.unitypackage
- 9个DSP图像处理实验程序图像处理源代
评论
共有 条评论