MCPcopy Create free account
hub / github.com/andybarry/makerscanner / Pop

Method Pop

CaptureThread.cpp:92–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92IplImage* CaptureThread::Pop()
93{
94 if (imageQueue.size() <= 0)
95 {
96 CaptureFrame();
97 }
98
99 IplImage *image = imageQueue.front();
100
101 if (imageQueue.size() > 1)
102 {
103 imageQueue.pop();
104 }
105
106 return image;
107}
108
109/*
110* Flush the stack, allowing the user to make sure s/he gets the most

Callers 3

EntryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected