openframeworks / openframeworks/openFrameworks
ofxCvImage::erode(int value) support
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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