View Single Post
  #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