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

incorrect SR9 calculation #1

Open
Walter-Roberson opened this issue Jan 25, 2019 · 3 comments
Open

incorrect SR9 calculation #1

Walter-Roberson opened this issue Jan 25, 2019 · 3 comments

Comments

@Walter-Roberson
Copy link

adaptivemedianfilter.m contains the line

SR9 = NoisyImage((i+1)),((j+1));

Notice the bracketing. This is equivalent to

SR9 = NoisyImage((i+1)) ((j+1));

which is a single index into NoisyImage, display of SR9, and computation and discarding of j+1 .
The correct code should be

SR9 = NoisyImage((i+1),(j+1));

@Walter-Roberson
Copy link
Author

The same error occurs in adaptivemedian.m and segment.m and guidemo.m

@Walter-Roberson
Copy link
Author

Around line 186 of guidemo.m, S16 and S17 have the same problem.

@Walter-Roberson
Copy link
Author

S16 and S17 problem is also in adaptivemedian.m, adaptivemedianfilter.m, and segment.m

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

No branches or pull requests

1 participant