Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINT] Fix image processing module. #123

Merged
merged 28 commits into from
Sep 29, 2014
Merged

Conversation

oddkiva
Copy link
Owner

@oddkiva oddkiva commented Sep 29, 2014

Add unit tests for each submodules and fix everywhere if necessary:

  • Deriche
  • Interpolation
  • [ ] Linear filtering
  • [ ] Differential
  • and so on...

Let's not do everything at once and break down this boring maintenance task into smaller PRs.

This is not an important feature and the support of this is way too
clunky.
…into fix-image-processing-module

Conflicts:
	src/DO/ImageProcessing/Deriche.hpp
This is not a particularly fast but it can be optimized later for
particular cases in 2D.
@oddkiva
Copy link
Owner Author

oddkiva commented Sep 29, 2014

Let's do the rest in other PRs...

Vectord x( r->template cast<double>().cwiseProduct(f) );
convertColor(nI(*r), interpolate(I, x));
Vectord x( r.position().template cast<double>().cwiseProduct(f) );
convertColor(*r, interpolate(I, x));
}
return nI;
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifications in these files are partly obsolete since there were done a long time ago. So check these very thoroughly.

@@ -226,7 +228,8 @@ namespace DO {

inline void operator()(HessianMatrix& H, const Coords& p) const
{
ScalarIterator loc(scalar_field_.begin_range(p));
ScalarIterator loc(scalar_field_.begin_range());
loc += p;
operator()(H, loc);
}

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifications in these files are partly obsolete since there were done a long time ago. So check these very thoroughly.

@oddkiva
Copy link
Owner Author

oddkiva commented Sep 29, 2014

Let's not delay this PR otherwise the review is going to be hard. With the newly added unit tests, the ImageProcessing module can be maintained more robustly.

@oddkiva
Copy link
Owner Author

oddkiva commented Sep 29, 2014

Travis is happy. Merging.

oddkiva pushed a commit that referenced this pull request Sep 29, 2014
[MAINT] Fix image processing module.
@oddkiva oddkiva merged commit 7d0a1d3 into develop Sep 29, 2014
@oddkiva oddkiva deleted the fix-image-processing-module branch September 29, 2014 05:25
@oddkiva oddkiva self-assigned this Aug 24, 2015
@oddkiva oddkiva modified the milestone: 1.1 Aug 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant