Conversation
WIP: Discuss usage of unit circle for shadows kernel
These can just be generated beforehand
Removed testing printlines and imports
Member
|
I am OK with the output differing from past implementations, so that we achieve a configurable angle. Please write a test, and then we can merge it. |
Contributor
Author
|
@ctrueden I found test commit that was for some reason not pushed. The test passes and is sound, however it introduces a test-scope dependency on scijava-io-http that I am not sure we want. It also forces the download of abe.tif, which seems bad to me. However it does have a method |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Op provides an
Opversion of the ImageJ Core Plugin created by Barry Dezonia.Below is a demo of the new
ShadowsOp (middle) run on this image (left), taken from imagej.net, alongside the output of the same image run through the Plugin (right).Points of Discussion:
Opgenerates its Shadows kernel through the used of an angleParameter, allowing for a singleOpas opposed to the eight differentPlugins that already exist. The use of an angle parameter also allows the user to generate shadows at any desired angle instead of being limited to the eight predefined angles. The only downside to this is that in order to keep the algorithm simple theOpuses sine and cosine values to generate the kernel which differs from the linear kernel of the olderPlugins, resulting in differing outputs (though in most cases not visually distinguishable). Is it okay that theOpdiffer from thePluginit adapts in order to increase its flexibility?TODO:
Op. The above point should be decided on before a test is written. If we decide that the difference in output should be allowed then a simple Regression test can be created, otherwise we could test theOpbased on the output of thePluginif we deem it necessary to make the output exactly the same.