-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/origin/CPlusPlus-Improvement-ob…
…jdetect'
- Loading branch information
Showing
10 changed files
with
462 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* (C) 2008-2014 shimat | ||
* This code is licenced under the LGPL. | ||
*/ | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.InteropServices; | ||
using System.Text; | ||
|
||
namespace OpenCvSharp.Utilities | ||
{ | ||
/// <summary> | ||
/// Class to get address of string array | ||
/// </summary> | ||
public class StringArrayAddress : ArrayAddress2<byte> | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="stringArray"></param> | ||
public StringArrayAddress(string[] stringArray) | ||
{ | ||
var byteList = new List<byte[]>(); | ||
for (int i = 0; i < stringArray.Length; i++) | ||
{ | ||
byteList.Add(Encoding.ASCII.GetBytes(stringArray[i])); | ||
} | ||
Initialize(byteList.ToArray()); | ||
} | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="enumerable"></param> | ||
public StringArrayAddress(IEnumerable<string> enumerable) | ||
: this(Util.ToArray(enumerable)) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.