Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, August 31, 2007 8:16:37 AM(UTC)
ijourneaux

Groups: Registered
Posts: 4


I have a video of a sheet edge (Sheet edge is in the middle of the frame) where I would like to calculate the edge position as a function of time.

I am having difficulty highlighting the edge pixels reliably. There are often alot of outliers that adversely impact the calculation I am performing.

I have attached a code snippet from my program. Basically I get the frame, trim down the the area of interest, convert to grayscale and use Intensity_Detect to highlight the pixels that correspond to the sheet edge.

Would there be a more robust approach to doing this?

Thank you


LEAD3(0).Bitmap = LEAD1.Bitmap
LEAD3(0).Trim m_lMeasureLeft, m_lMeasureTop, m_lMeasureWidth, m_lMeasureHeight

LEAD3(0).Grayscale 8
LEAD5(0).Bitmap = LEAD3(0).Bitmap
LEAD3(0).Combine 1, 1, LEAD3(0).ScaleWidth, LEAD3(0).ScaleHeight, LEAD5(0).Bitmap, 1, 2, CB_OP_MAX

LEAD3(0).IntensityDetect m_lLowIntensity, m_lHighIntensity
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, September 3, 2007 2:09:00 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)


I can try to suggest a good
approach if you provide me with some images that show the different edges
you're detecting. If you have different lighting or intensity conditions, try to send images that represent the variation.


 


You can either post the images here or send them to support@leadtools.com.
If you post or send files, please put them all in a ZIP or RAR file to ensure our servers accept them.
 
#3 Posted : Tuesday, September 4, 2007 5:05:29 AM(UTC)
ijourneaux

Groups: Registered
Posts: 4


Here are a copy of frames from 2 different videos. I tryically crop an area of interest before I try to highlight the edge. I had some success with the back edge (not great but ok) and no success with the front edge.

The problem in both cases were highlighted pixels that did not correspond to the line.

Appreciate any help you can offer.
File Attachment(s):
ECClips.zip (428kb) downloaded 22 time(s).
 
#4 Posted : Wednesday, September 5, 2007 2:12:08 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

You might be able to
detect the bounds of the background area by using the SetRgnMagicWand method,
and give the location of any point in that area. If you want to try it, use a
low value for the iTolerance parameter to make use of the fact that its color is almost uniform.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.076 seconds.