Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Convert double[2048]to Mat

$
0
0
I have a spectrometer that receives an address and throws 2048 doubles into memory starting at that address. I would like to run it 500 times and at the end have a 500x2048 Mat file where each row corresponds to one spectrum. If the spectrometer was returning *int*, I would define a Mat(500,2048,CV_16UC1) and send the spectrometer the address of each row sequentially. How do I need to define the Mat so that I can do this with doubles? I am using windows 7/64 , Visual studio 2013 and OpenCV 2.4.9 guy

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>