Go to Post Engineering literature? Is that like jumbo shrimp, military intelligence, or legal brief? You know, an oxymoron? - Richard Wallace [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-01-2012, 19:47
pavanetti's Avatar
pavanetti pavanetti is offline
Registered User
FRC #1382
 
Join Date: Dec 2010
Location: Brazil
Posts: 12
pavanetti is an unknown quantity at this point
Smile Getting pixels of camera images in C++

I'm studing image processing and I already wrote algorithms for this task in my computer. These algorithms is in C++ too and they uses images in files. But they depends on access to the images pixels. Is there a way to do this in wpi?
I want to track rectangles in the camera image. I like something like this:

AxisCamera &cam = AxisCamera::GetInstance();
MonoImage &image = cam.GetImage()->GetLuminancePlane();
for (int i = 0; i < image.GetWidth(); ++i) {
for (int i = 0; i < image.GetWidth(); ++i) {
Color pixel = image.GetPixels(i, j);
}
}
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:22.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi