• Post Reply Bookmark Topic Watch Topic
  • New Topic

Convolution and grey scale Filter

 
Maria Stella
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I implemented the grayscale filter and the convolution filter . If I apply before the grayscale filter convolution and then I can not see the picture, I see pretty much the JPanel that should contain the image.
The two filters separately functioning correctly
What could be the problem?
Thanks

Code filter grey scale


Code filter convolution


Code action grey scale filter


Code action convolution filter
 
Danny Wreczycki
Greenhorn
Posts: 23
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First I do not understand why do you use beans. Second try rewrite filters to match BufferedImageOp implementations and try it. Im not similiar with image processing algorithms so I cannot validate yours code but take a look at image processing library from jhlabs.com and check code for grayscale and convolution filters. Good luck in fixing this issue ;D
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!