I have a 3d array. 1st dim is xcoordinate of pixel
2nd dimension is y – coordinate of pixel.
3rd coordinate is time (or could be though of as the frame number).
I want to do a test to see if any pixel is equal to zero for every single frame (along 3rd dimension).
How would I write this test?
I need returned the pixels which are ALWAYS true!!!
Rather than
allyou could useany. If I understand you correctly, the code would go something like this for a single “pixel”where
Ais the 3d matrix. If the result is1, then the given pixel does have a non-zero value for at least one frame, and0otherwise.