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

add an extra example of ResourcesTracker; change a misspelling of ResourcesTracker's comment #1181

Merged
merged 2 commits into from
Jan 20, 2021
Merged
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
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,17 @@ using (ResourcesTracker t = new ResourcesTracker())
Mat mat4 = t.NewMat();
yangzhongke marked this conversation as resolved.
Show resolved Hide resolved
Cv2.Merge(new Mat[] { mats1[0], mats1[1], mats1[2] }, mat4);
}

using (ResourcesTracker t = new ResourcesTracker())
yangzhongke marked this conversation as resolved.
Show resolved Hide resolved
{
var src = t.T(new Mat(@"lenna.png", ImreadModes.Grayscale));
var dst = t.NewMat();
Cv2.Canny(src, dst, 50, 200);
var blurredDst = t.T(dst.Blur(new Size(3, 3)));
t.T(new Window("src image", src));
t.T(new Window("dst image", blurredDst));
Cv2.WaitKey();
}
```


Expand Down
2 changes: 1 addition & 1 deletion src/OpenCvSharp/Fundamentals/ResourcesTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace OpenCvSharp
{
/// <summary>
/// Used for manage the resources of OpenCVSharp, like Mat, MatExpr, etc.
/// Used for managing the resources of OpenCVSharp, like Mat, MatExpr, etc.
/// </summary>
public class ResourcesTracker : IDisposable
{
Expand Down