Skip to content

Commit 59cc372

Browse files
authored
New skin visualisation (#71)
* improved the visualisation for event-driven skin using the taxel positions, and including an isometric drawing for the skin events. * moved skin drawing functions into their own file as their is a lot of code associated with understanding taxel positions. ⚠️ this code functions as it is but needs some big improvements for sustainability, robustness, and flexibility.
1 parent dfda5dd commit 59cc372

6 files changed

Lines changed: 1537 additions & 139 deletions

File tree

lib/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ set(folder_source
3232
if(OpenCV_FOUND)
3333
list(APPEND folder_source src/vIPT.cpp
3434
src/vDraw_basic.cpp
35-
src/vDraw_ISO.cpp)
35+
src/vDraw_ISO.cpp
36+
src/vDraw_skin.cpp)
3637
endif()
3738

3839
if(VLIB_DEPRECATED)
@@ -52,7 +53,8 @@ set(folder_header
5253

5354
if(OpenCV_FOUND)
5455
list(APPEND folder_header include/event-driven/vIPT.h
55-
include/event-driven/vDraw.h)
56+
include/event-driven/vDraw.h
57+
include/event-driven/vDrawSkin.h)
5658
endif()
5759

5860
if(VLIB_DEPRECATED)

lib/include/event-driven/vDraw.h

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class vDraw {
4949
cv::Vec3b lime {9, 250, 222};
5050
cv::Vec3b white{255, 255, 255};
5151
cv::Vec3b black {0, 0, 0};
52+
cv::Vec3b red {0, 0, 255};
5253

5354
public:
5455

@@ -168,28 +169,6 @@ class addressDraw : public vDraw {
168169

169170
};
170171

171-
class skinDraw : public vDraw {
172-
173-
public:
174-
175-
static const std::string drawtype;
176-
virtual void draw(cv::Mat &image, const ev::vQueue &eSet, int vTime);
177-
virtual std::string getDrawType();
178-
virtual std::string getEventType();
179-
180-
};
181-
182-
class skinsampleDraw : public vDraw {
183-
184-
public:
185-
186-
static const std::string drawtype;
187-
virtual void draw(cv::Mat &image, const ev::vQueue &eSet, int vTime);
188-
virtual std::string getDrawType();
189-
virtual std::string getEventType();
190-
191-
};
192-
193172
class imuDraw : public vDraw {
194173

195174
public:
@@ -287,8 +266,6 @@ class isoInterestDraw : public isoDraw {
287266
};
288267

289268

290-
291-
292269
} //namespace ev::
293270

294271
#endif

0 commit comments

Comments
 (0)