This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Convolution and grey scale Filter  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!