15,902,198 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by caoc7 (Top 6 by date)
caoc7
27-Mar-14 11:29am
View
please tell me can sum as in Emgu.CV.GPU.GpuMat ?
This example does not work me :
GpuMat<int> a = 3;
GpuMat<int> b = 7;
GpuMat<int> sum = new GpuMat<int>(a.Size);
GpuInvoke.Add(a, b, sum, null, null);
Please can you tell me how it's done?
Thanks for your attention
caoc7
27-Mar-14 11:29am
View
please tell me can sum as in Emgu.CV.GPU.GpuMat ?
This example does not work me :
GpuMat<int> a = 3;
GpuMat<int> b = 7;
GpuMat<int> sum = new GpuMat<int>(a.Size);
GpuInvoke.Add(a, b, sum, null, null);
Please can you tell me how it's done?
Thanks for your attention
caoc7
21-Mar-14 5:48am
View
Deleted
unsafe
{
byte* p = (byte*)(void*)Scan0;
byte* pSrc = (byte*)(void*)SrcScan0;
int nOffset = stride - b.Width * 3;
int nWidth = b.Width - 2;
int nHeight = b.Height - 2;
int nPixel;
for (int y = 0; y < nHeight; ++y)
{
for (int x = 0; x < nWidth; ++x)
{
nPixel = ((((pSrc[2] * m.TopLeft) + (pSrc[5] * m.TopMid) + (pSrc[8] * m.TopRight) +
(pSrc[2 + stride] * m.MidLeft) + (pSrc[5 + stride] * m.Pixel) + (pSrc[8 + stride] * m.MidRight) +
(pSrc[2 + stride2] * m.BottomLeft) + (pSrc[5 + stride2] * m.BottomMid) + (pSrc[8 + stride2] * m.BottomRight)) / m.Factor) + m.Offset);
if (nPixel < 33) nPixel = 0; //if (nPixel < 0) nPixel = 0;
if (nPixel > 34) nPixel = 255; //if (nPixel > 255) nPixel = 255;
p[5 + stride] = (byte)nPixel;
nPixel = ((((pSrc[1] * m.TopLeft) + (pSrc[4] * m.TopMid) + (pSrc[7] * m.TopRight) +
(pSrc[1 + stride] * m.MidLeft) + (pSrc[4 + stride] * m.Pixel) + (pSrc[7 + stride] * m.MidRight) +
(pSrc[1 + stride2] * m.BottomLeft) + (pSrc[4 + stride2] * m.BottomMid) + (pSrc[7 + stride2] * m.BottomRight)) / m.Factor) + m.Offset);
if (nPixel < 33) nPixel = 0;
if (nPixel > 34) nPixel = 255;
p[4 + stride] = (byte)nPixel;
nPixel = ((((pSrc[0] * m.TopLeft) + (pSrc[3] * m.TopMid) + (pSrc[6] * m.TopRight) +
(pSrc[0 + stride] * m.MidLeft) + (pSrc[3 + stride] * m.Pixel) + (pSrc[6 + stride] * m.MidRight) +
(pSrc[0 + stride2] * m.BottomLeft) + (pSrc[3 + stride2] * m.BottomMid) + (pSrc[6 + stride2] * m.BottomRight)) / m.Factor) + m.Offset);
if (nPixel < 33) nPixel = 0;
if (nPixel > 34) nPixel = 255;
p[3 + stride] = (byte)nPixel;
p += 3;
pSrc += 3;
}
p += nOffset;
pSrc += nOffset;
}
}
caoc7
21-Mar-14 5:44am
View
need to convert a for loop C# to for loop Emgu.CV.GPU C#
I need to accelerate the processing speed of an image
and the for loop, I run mathematical calculations of multiplication, addition and division
caoc7
12-Aug-12 10:42am
View
Deleted
I need to run it on Emgu.CV.UI.ImageBox
caoc7
4-May-12 2:28am
View
I have a list of data X and Y but I have to tell the system how many groups exist according to the distance of the items of group Y.
X....Y
354 216
520 69
45 50
560 285
67 49
323 216
86 49
113 50
339 216
135 51
291 215
561 71
155 51
406 216
375 216
584 284
501 67
544 284
537 69
580 71
616 283
Show More