openframeworks / openframeworks/openFrameworks

ofxCvImage::erode(int value) support

Open
#1,771 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core feature section-video
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

I hope everyone agrees dilate and erode setting values...

void ofxCvImage::erode(int value) {
if( !bAllocated ){
ofLog(OF_LOG_ERROR, "in erode, need to allocate image first");
return;
}
cvErode( cvImage, cvImageTemp, 0, value );
swapTemp();
flagImageChanged();
}
void ofxCvImage::dilate(int value) {
if( !bAllocated ){
ofLog(OF_LOG_ERROR, "in dilate, need to allocate image first");
return;
}
cvDilate( cvImage, cvImageTemp, 0, value );
swapTemp();
flagImageChanged();
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the ofxCvImage::erode(int value) and ofxCvImage::dilate(int value) implementations and compare their OpenCV calls and image-update handling. Check how these methods are declared and tested, then verify that erode accepts the requested iteration value and behaves consistently with dilate.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, opencv
Domain
computer-vision
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.