summaryrefslogtreecommitdiff
path: root/explore.cc
diff options
context:
space:
mode:
Diffstat (limited to 'explore.cc')
-rw-r--r--explore.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/explore.cc b/explore.cc
index 5784f91..bc932b4 100644
--- a/explore.cc
+++ b/explore.cc
@@ -7,6 +7,7 @@
#include "explore.h"
#include "stitch.h"
#include "compute.h"
+#include "utils.h"
using namespace std;
using namespace cv;
@@ -50,9 +51,8 @@ void mouse_cb(int event, int x, int y, int flags, void* param)
}
fprintf(stderr, "Strip %d taken from frame %d, column %d, cost %f\n",
x, fs.first, fs.second, cost);
- imshow("Frame view", overlay_line(pd->frames[fs.first],
- fs.second,
- 255, 0, 0));
+ Mat frame = cspace4c_to_rgb(pd->frames[fs.first]);
+ imshow("Frame view", overlay_line(frame, fs.second, 255, 0, 0));
}
if (greenline != -1)
{
@@ -70,7 +70,8 @@ void mouse_cb(int event, int x, int y, int flags, void* param)
void explore_path(vector<Mat> & frames, Path p)
{
- Mat mosaic = stitch_path(frames, p);
+ Mat mosaic_base = stitch_path(frames, p);
+ Mat mosaic = cspace4c_to_rgb(mosaic_base);
PathData pd = {frames, path_to_vpath(p), mosaic,
frames[0].size().width,
frames[0].size().height,