16,020,518 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 Visual Basic questions
View Javascript questions
View .NET 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 gunkrr (Top 24 by date)
gunkrr
29-Jul-15 22:46pm
View
do you have any suggestion regarding solution 2??
currently im using solution 2 and it looks ok
gunkrr
29-Jul-15 4:36am
View
may i know why select is more culprit than is not?
gunkrr
17-Feb-14 1:31am
View
just show another field on same table
ex : labelInfo.Text = information;
information i get from table which has id from cbAreaCluster.SelectedIndex
gunkrr
20-Apr-13 23:19pm
View
yes i do that
missed to seeing :lol
gunkrr
20-Apr-13 11:35am
View
i am try to use this code
but i have an error
Bitmap region is already locked.
can you help me
gunkrr
7-Oct-11 2:46am
View
thank you, i have done it :)
gunkrr
7-Oct-11 0:16am
View
this code catch year as 20 not 11
gunkrr
6-Oct-11 23:55pm
View
where using function YEAR() ??
gunkrr
6-Oct-11 23:35pm
View
Argument data type int is invalid for argument 1 of substring function.
whats that??
gunkrr
6-Oct-11 23:25pm
View
Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query.
how convert that??
gunkrr
6-Oct-11 23:23pm
View
yes thats autonumber, buti can handle that
gunkrr
6-Oct-11 4:03am
View
this is my case
Insert into tb_generateid(id,firstname,lastname)
Values('L11'+CAST((@id+1) as varchar(10))+'IVO',@FirstName,@LastName)
i must input @id, but @id is 1 not 0000001
can i create it to be 0000001 ???
gunkrr
6-Oct-11 2:45am
View
i know that
thx
gunkrr
6-Oct-11 2:35am
View
ERRor in
Msg 156, Level 15, State 1, Procedure sp_generateid2, Line 18
Incorrect syntax near the keyword 'from'.
Msg 102, Level 15, State 1, Procedure sp_generateid2, Line 20
Incorrect syntax near ','.
why thats??
gunkrr
6-Oct-11 2:25am
View
thx 4 ur attention
gunkrr
21-Jan-11 9:44am
View
thank you
gunkrr
18-Jan-11 1:47am
View
thx
but can you give me example in code??
gunkrr
18-Jan-11 1:47am
View
can i use timer in timer
for example
private void timer1_Tick(object sender, EventArgs e)
{
timer2.start();
}
can i do that??
gunkrr
30-Nov-10 23:28pm
View
i have try this code
unsafe
{
byte* p = (byte*)(void*)Scan0;
int nOffset = stride - RImage.Width * 3;
for (int y = 0; y < RImage.Height; ++y)
{
for (int x = 0; x < RImage.Width; ++x)
{
int offset = y * RImage.Width * 3 + x * 3;
if (x == 0)
{
//get value of seed pixel if x==0
Color col = Color.FromArgb(p[offset], p[offset + 1], p[offset + 2]);
//col = bmData.GetPixel(x, y);
seedR = col.R;
seedG = col.G;
seedB = col.B;
}
//compare value seed pixel and pixel now
if ((seedR - p[0] >= tred) || (p[0] - seedR >= tred))
{
//change value pixel now
p[0] = p[1] = p[2] = 0;
//change value pixel for next 10 pixel
for (x = (x + 1); x <= 10; ++x)
{
p[0] = p[1] = p[2] = 0;
}
//get new value of new seed pixel
Color col = Color.FromArgb(p[offset], p[offset + 1], p[offset + 2]);
seedR = col.R;
seedG = col.G;
seedB = col.B;
}
}
p += nOffset;
}
}
but i cant see changes my image
whats problem?
gunkrr
30-Nov-10 23:07pm
View
i have correct my code and follow code above
private void button4_Click(object sender, EventArgs e)
{
// GDI+ still lies to us - the return format is BGR, NOT RGB.
BitmapData bmData = RImage.LockBits(new Rectangle(0, 0, RImage.Width, RImage.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);
int stride = bmData.Stride;
System.IntPtr Scan0 = bmData.Scan0;
unsafe
{
byte* p = (byte*)(void*)Scan0;
int nOffset = stride - RImage.Width * 3;
for (int y = 0; y < RImage.Height; ++y)
{
for (int x = 0; x < RImage.Width; ++x)
{
if (x == 0)
{
//RImage.GetPixel(x, y);
seedR = p[x];
seedG = p[x+1];
seedB = p[x+2];
}
if ((seedR - p[x] >= tred) || (p[x] - seedR >= tred))
{
//taruh value p dlu disini
for (int i=1; i <= 5; ++i)
{
p[x] = p[x + 1] = p[x + 2] = 0;
x++;
}
//RImage.GetPixel(x, y);
seedR = p[x];
seedG = p[x + 1];
seedB = p[x + 2];
}
p += 3;
}
p += nOffset;
}
}
RImage.UnlockBits(bmData);
}
but the result i have white area for 1/3 of my image
(i try change value tred but the result same)
whats wrong??
my goal is segmentation my image based or value every near pixel
gunkrr
30-Nov-10 7:44am
View
vshost.exe has stopped working
in line
seedR = Convert.ToByte(col.R.ToString());
seedG = Convert.ToByte(col.G.ToString());
seedB = Convert.ToByte(col.B.ToString());
before it i use this code but also same error i get
seedR = col.R;
seedG = col.G;
seedB = col.B;
this code i mean for getting value of pixel
gunkrr
23-Nov-10 7:44am
View
in the last block of code
we can see detect neighbor pixel
but i rather confused
is it from center area???
or scanline normal??
gunkrr
23-Nov-10 7:43am
View
Deleted
is it from center to round???
gunkrr
22-Nov-10 12:44pm
View
wanna become my mentor for doing this step by step??
Show More