Closed Twenkid closed 4 years ago
Thanks for discovering it. I'll fix it.
NP! We should watch about it, it's a common potential mistake in OpenCV-Numpy projects.
Thanks Todor!
On Tue, Mar 19, 2019, 1:14 PM Todor Arnaudov notifications@github.com wrote:
NP! We should watch about it, it's common potential mistake in OpenCV-Numpy projects.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/boris-kz/CogAlg/issues/22#issuecomment-474475972, or mute the thread https://github.com/notifications/unsubscribe-auth/AUAXGcUaKxJsMiRZToU1hItMJKdH6-uHks5vYRrwgaJpZM4b72bW .
Shouldn't (height, width) in In
def comp_pixel(frame, p__):
be (width, height)?dert__ = np.empty(shape=(width, height, 4), dtype=int) # initialize dert__
The order of dimension declaration in numpy arrays?
According to the code in the initialization:
height, width = image.shape
And to code tests like this::
https://github.com/boris-kz/CogAlg/blob/1ce8aa2c3e4bdcc0259ce2a8c6e83b6a1143a83e/frame_2D_alg/frame_blobs.py#L61