Detect Orange Color Threshold
Detect Orange Color Threshold
Detect Orange Color Threshold
Detect Orange Color Threshold
Detect Orange Color Threshold
Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold
Detect Orange Color Threshold Detect Orange Color Threshold
Detect Orange Color Threshold
Go Back  Xtreme Visual Basic Talk > > > Detect Orange Color Threshold


Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2017, 01:20 AM
Lagenda4947 Lagenda4947 is offline
Newcomer
 
Join Date: Nov 2017
Posts: 4
Post Detect Orange Color Threshold


Hi

wanna ask about how to threshold image by detect the orange color by using vb6. can somebody teach or give some idea how to detect that color (orange) and the output will be in black and white on the detection..
Attached Images
File Type: bmp ID7.bmp (900.1 KB, 3 views)
Reply With Quote
  #2  
Old 11-24-2017, 10:57 PM
dilettante's Avatar
dilettanteDetect Orange Color Threshold dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,529
Default

I'd start by fetching the pixel values. Then I would convert from RGB to HLS and use a luminance threshold and a hue range to decide which pixels should become white.

Pretty standard stuff really. Here's a demo.

I re-uploaded with a small fix, and also with a trimmed down PNG version of the image (which is why the attachment is so large).
Attached Files
File Type: zip Orange to Mono.zip (192.5 KB, 5 views)

Last edited by dilettante; 11-25-2017 at 09:15 PM.
Reply With Quote
  #3  
Old 11-28-2017, 02:09 AM
Lagenda4947 Lagenda4947 is offline
Newcomer
 
Join Date: Nov 2017
Posts: 4
Default

Thanks. it's helpful. But currently i faced some problem how to do a looping through pixel. i want to detect the how many pixel white in the image. any idea?
Reply With Quote
  #4  
Old 11-28-2017, 03:47 PM
dilettante's Avatar
dilettanteDetect Orange Color Threshold dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,529
Default

That demo already checks each pixel, and even even returns the pixel array. You could do your count inside the function or else do it yourself with the returned array.
Reply With Quote
  #5  
Old 11-29-2017, 12:00 PM
Lagenda4947 Lagenda4947 is offline
Newcomer
 
Join Date: Nov 2017
Posts: 4
Smile

Hi Sir. I've attach my project. Hope so you can help me and give me some idea and edit a little bit the coding about how to calculate the area of pixel that have been detected and pop out as msgbox or something as the reference.

I've attach the standard of procedure (SOP) at that file.

Thanks.
Attached Files
File Type: zip How To.zip (349.7 KB, 0 views)
Reply With Quote
Reply

Tags
color, detect, orange, output, threshold


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Detect Orange Color Threshold
Detect Orange Color Threshold
Detect Orange Color Threshold Detect Orange Color Threshold
Detect Orange Color Threshold
Detect Orange Color Threshold
Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold Detect Orange Color Threshold
Detect Orange Color Threshold
Detect Orange Color Threshold
 
Detect Orange Color Threshold
Detect Orange Color Threshold
 
-->