Simulation problem in image denoising (tree-based technique)

7 vues (au cours des 30 derniers jours)
Rehan
Rehan le 30 Nov 2014
Commenté : Rehan le 8 Déc 2014
Hello friends, i am posting first time anything on this blog,hope you will help me. my problem is that: i am doing image denoising in matlab,i am using tree base denoising technique,i made different modules,in one module i take image as input of 3X3 window and find maximum value and minimum value from upper half window and lower half window of 3x3 window.my answer of this module is boolean because i have placed OR gate at end which tells me my image pixel is noisy or not. for example my output is 0 1 1 0 it means first and fourth pixel is not noisy whereas 2nd and third pixels are noisy. my problem is here.i am placing if statement here ,i want is that if 0 comes it should connect to a matlab function,and when 1 comes it should connect to another matlab function,so i am using if-else block,there are four values so i am also placing for loop,but when i place for loop it says it cannot take boolean value as input,so please help me how i can fix. Thanks in advance

Réponses (1)

Image Analyst
Image Analyst le 30 Nov 2014
Rehan:
I've never heard of this tree-based technique, but then, there are thousands of denoising methods. I have some questions. Which pixels in the 3x3 window are considered upper half and which are lower half?
This is not at all explained: "my answer of this module is boolean because i have placed OR gate at end which tells me my image pixel is noisy or not." What are you ORing and why does that indicate if the pixel is a noise pixel or not?
Why is your output 4 binary values and not either 9 or 1?
And what does "it should connect to a matlab function" mean? Connect in what way? Do you mean "call" the function? If so, what are you passing into the function, and what does the function return?
Then you say "i am using if-else block,there are four values so i am also placing for loop,but when i place for loop it says it cannot take boolean value as input" Can you show that code? An if should take a single boolean, not a list of 4 booleans like [ 0 1 1 0] , if that's what you're doing.
Your subject line says "Simulation problem....." Where exactly in this is the simulation? It all sounds very deterministic to me (works with actual date, not synthesized/invented data). I don't see any simulation at all. Did you leave something out?
We'll be better able to answer your questions if you answer ALL of my questions, and also attach your m-file and image.
  8 commentaires
Image Analyst
Image Analyst le 8 Déc 2014
Sorry - I don't have Simulink. Good luck with your project.
Rehan
Rehan le 8 Déc 2014
ok thanks for your time

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by