mirror of
https://github.com/karma-riuk/hdr_esim.git
synced 2025-07-01 16:38:14 +02:00
Reformated the project to make it more readable (to me)
This commit is contained in:
@ -5,31 +5,25 @@ using boost::asio::ip::tcp;
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
event_camera_simulator::UnrealCvClient client("localhost", "9000");
|
||||
event_camera_simulator::UnrealCvClient client("localhost", "9000");
|
||||
|
||||
cv::namedWindow("Image", cv::WINDOW_AUTOSIZE );
|
||||
cv::namedWindow("Depthmap", cv::WINDOW_AUTOSIZE );
|
||||
cv::namedWindow("Image", cv::WINDOW_AUTOSIZE);
|
||||
cv::namedWindow("Depthmap", cv::WINDOW_AUTOSIZE);
|
||||
|
||||
for(double y = 0.0; y<100.0; y+=10.0)
|
||||
{
|
||||
event_camera_simulator::CameraData test = {0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
y,
|
||||
100.0};
|
||||
for (double y = 0.0; y < 100.0; y += 10.0) {
|
||||
event_camera_simulator::CameraData test =
|
||||
{0, 0.0, 0.0, 0.0, 0.0, y, 100.0};
|
||||
|
||||
client.setCamera(test);
|
||||
cv::Mat img = client.getImage(0);
|
||||
cv::imshow("Image", img);
|
||||
client.setCamera(test);
|
||||
cv::Mat img = client.getImage(0);
|
||||
cv::imshow("Image", img);
|
||||
|
||||
cv::Mat depthmap = client.getDepth(0);
|
||||
cv::normalize(depthmap, depthmap, 0, 255, cv::NORM_MINMAX, CV_8U);
|
||||
cv::imshow("Depthmap", depthmap);
|
||||
cv::Mat depthmap = client.getDepth(0);
|
||||
cv::normalize(depthmap, depthmap, 0, 255, cv::NORM_MINMAX, CV_8U);
|
||||
cv::imshow("Depthmap", depthmap);
|
||||
|
||||
cv::waitKey(10);
|
||||
}
|
||||
cv::waitKey(10);
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user