a_camera.cc
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "claraty/a_camera.h"
00023 #include "claraty/image.h"
00024 #include <iostream>
00025
00026 using namespace std;
00027
00028 namespace claraty {
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 void A_Camera::
00039 acquire(Image<uint8_t> & image,
00040 Time * timestamp_ptr,
00041 Feature_Map * feature_map_ptr) throw (std::exception)
00042 {
00043 image.resize(1024, 1024);
00044 for(int x = 0; x < image.get_width(); ++x) {
00045 for(int y = 0; y < image.get_height(); ++y) {
00046 image(x, y) = x * y % 256;
00047 }
00048 }
00049 cout << image;
00050 }
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060 void A_Camera::
00061 acquire(Image<uint16_t> & image,
00062 Time * timestamp_ptr,
00063 Feature_Map * feature_map_ptr) throw (std::exception)
00064 {
00065 image.resize(1024, 1024);
00066 for(int x = 0; x < image.get_width(); ++x) {
00067 for(int y = 0; y < image.get_height(); ++y) {
00068 image(x, y) = x * y % 65536;
00069 }
00070 }
00071 }
00072
00073 }