Skip to content

Commit

Permalink
Update NuGet package
Browse files Browse the repository at this point in the history
  • Loading branch information
shimat committed Mar 29, 2014
1 parent 5bd0705 commit 29437cd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
28 changes: 13 additions & 15 deletions src/OpenCvSharp.ReleaseMaker/MainForm.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Linq;
Expand All @@ -15,7 +11,10 @@ namespace OpenCvSharp.ReleaseMaker
/// </summary>
public partial class MainForm : Form
{
private const string VSVersion = "2012";
/// <summary>
/// 2012 / 2013
/// </summary>
private const string VSVersion = "2013";

/// <summary>
/// Constructor
Expand Down Expand Up @@ -87,7 +86,7 @@ private void button_Make_Click(object sender, EventArgs e)
{
MakeBinaryPackage(textBox_Src.Text, textBox_Dst.Text, textBox_Version.Text);
MakeSamplePackage(textBox_Src.Text, textBox_Dst.Text, textBox_Version.Text);
MessageBox.Show("生成成功");
MessageBox.Show(@"生成成功");
}
/*catch (Exception ex)
{
Expand All @@ -103,7 +102,7 @@ private void button_Make_Click(object sender, EventArgs e)
/// <summary>
///
/// </summary>
private static readonly string[] DllFiles = new string[]{
private static readonly string[] DllFiles = {
@"OpenCvSharp\bin\Release\OpenCvSharp.dll",
@"OpenCvSharp\bin\Release\OpenCvSharp.dll.config",
@"OpenCvSharp.Blob\bin\Release\OpenCvSharp.Blob.dll",
Expand All @@ -122,7 +121,7 @@ private void button_Make_Click(object sender, EventArgs e)
/// <summary>
///
/// </summary>
private static readonly string[] XmlFiles = new string[]{
private static readonly string[] XmlFiles = {
@"OpenCvSharp\bin\{0}\OpenCvSharp.xml",
@"OpenCvSharp.Blob\bin\{0}\OpenCvSharp.Blob.xml",
@"OpenCvSharp.CPlusPlus\bin\Release\OpenCvSharp.CPlusPlus.xml",
Expand All @@ -131,22 +130,21 @@ private void button_Make_Click(object sender, EventArgs e)
@"OpenCvSharp.UserInterface\bin\{0}\OpenCvSharp.UserInterface.xml",
};

private static readonly string[] Platforms = new string[] {
private static readonly string[] Platforms = {
"x86",
"x64"
};
private static readonly string[] Languages = new string[] {
private static readonly string[] Languages = {
"Release",
"Release JP"
};

/// <summary>
/// バイナリのzipパッケージを作成
/// </summary>
/// <param name="dirSrc"></param>
/// <param name="dir"></param>
/// <param name="dirDst"></param>
/// <param name="language"></param>
/// <param name="platform"></param>
/// <param name="version"></param>
private void MakeBinaryPackage(string dir, string dirDst, string version)
{
string dirSrc = Path.Combine(dir, "src");
Expand Down Expand Up @@ -247,13 +245,13 @@ private void CreateDirectory(string path)
}


private static readonly string[] InvalidExt = new string[] {
private static readonly string[] InvalidExt = {
".pdb",
".bak",
".user",
".suo",
};
private static readonly string[] InvalidDir = new string[] {
private static readonly string[] InvalidDir = {
".svn",
".git",
"bin",
Expand Down
4 changes: 2 additions & 2 deletions src/OpenCvSharpExtern/core_Mat.h
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ CVAPI(void) core_Mat_IplImage_alignment(cv::Mat *self, IplImage **outImage)
// alignmentをそろえる
IplImage *img = cvCreateImage(cvSize(dummy.width, dummy.height), dummy.depth, dummy.nChannels);
int height = img->height;
int sstep = self->step;
int dstep = img->widthStep;
size_t sstep = self->step;
size_t dstep = img->widthStep;
for (int i = 0; i < height; ++i)
{
char *dp = img->imageData + (dstep * i);
Expand Down

0 comments on commit 29437cd

Please sign in to comment.