justadudewhohacks / justadudewhohacks/opencv4nodejs

MORPH_HITMISS seems to be not correct when used with morphologyEx

Open
#679 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm a newbie trying to learn opencv4nodejs. I refer to the tutorials on opencv.org to learn. I'm facing an issue with "Hit or Miss" based on https://docs.opencv.org/4.1.2/db/d06/tutorial_hitOrMiss.html . I always get blank image with any kernel with this usage:
output_image = input_image.morphologyEx(kernel, cv.MORPH_HITMISS);

It seems cv.MORPH_HITMISS is not correct. Please help to check.
Opencv4nodejs version 5.5.0 on Windows 10

[hit-or-miss - Copy.txt](https://github.com/justadudewhohacks/opencv4nodejs/files/3986677/hit-or-miss.-.Copy.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.