示例#1
0
void ofxAruco::getMarkerImage(int markerID, int size, ofPixels & pixels){
	cv::Mat m = aruco::Marker::createMarkerImage(markerID,size);
	pixels.setFromPixels(m.data,size,size,OF_IMAGE_GRAYSCALE);
}
示例#2
0
void ofxAruco::getThresholdImage(ofPixels & pixels){
	cv::Mat m = detector.getThresholdedImage();
	pixels.setFromPixels(m.data,m.cols,m.rows,OF_IMAGE_GRAYSCALE);
}
示例#3
0
void ofxAruco::getBoardImage(ofPixels & pixels){
	cv::Mat m = aruco::Board::createBoardImage(boardConfig.size,boardConfig._markerSizePix,boardConfig._markerDistancePix,0,boardConfig);
	pixels.setFromPixels(m.data,m.cols,m.rows,OF_IMAGE_GRAYSCALE);
}