04-07-2012 04:31 PM
I'm developing some code to save short videos from multiple cameras. For testing purposes, I'd like to create a "camera-less" version (so I can develop on my laptop without having any cameras). I'd like to simulate the camera functions, but am having problems creating (without a camera) a sample image that my code can use.
Using two nested FOR loops, for example, I created a 320 by 240 U8 checkerboard with alternating black and white squares. What do I need to do to transform this into something that LabVIEW considers an IMAQ image? I tried doing a Create IMAQ (U8) to get a blank image, passing it to Set Image Size to make it 320 by 240, then wiring in my checkerboard using IMAQ Array to Image. But if I then look at it by passing the image to WinDraw, it doesn't look "right".
I've tried to search for How to Do this, but have so far not found anything. Any hints? Surely this has been already done ...
04-09-2012 09:18 AM
Never mind -- the test code I was trying to use, in fact, worked perfectly. I'd made a Bone-Head mistake in programming my test image (I did division "upside down", putting the divisor on top, hence getting out nonsense numbers). Now works perfectly.