It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes how to provide ROI ( Region of Interest ) in applying Median Filter using JAI? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to provide ROI ( Region of Interest ) in applying Median Filter using JAI?" Watch "how to provide ROI ( Region of Interest ) in applying Median Filter using JAI?" New topic
Author

how to provide ROI ( Region of Interest ) in applying Median Filter using JAI?

ashish donvir
Greenhorn

Joined: Mar 01, 2012
Posts: 25
I am applying median filter to my image to remove noise from it. But instead of removing noise from whole image i need to provide a particular region or to process the median filter. i tried like this but it is not working and giving error like this

Exception in thread "main" java.lang.IllegalArgumentException: MedianFilter - Parameter value`s class (javax.media.jai.ROIShape) is not an instance of the parameter class (javax.media.jai.operator.MedianFilterShape) for parameter "maskShape". at javax.media.jai.JAI.createNS(JAI.java:1087) at javax.media.jai.JAI.create(JAI.java:973) at javax.media.jai.JAI.create(JAI.java:1395) at noiseremove.NoiseRemove.main(NoiseRemove.java:86)

here is part of my code what i tried it works perfect if i do not providing the ROI
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

ashish, please BeForthrightWhenCrossPostingToOtherSites
http://stackoverflow.com/questions/10245254/how-to-provide-roi-region-of-interest-in-applying-median-filter-using-jai


luck, db
There are no new questions, but there may be new answers.
 
wood burning stoves
 
subject: how to provide ROI ( Region of Interest ) in applying Median Filter using JAI?
 
Similar Threads
How to increase/decrease brightness of an image with the use of JSlider slider or JScrollBar
perspective transformation in java2d
BMP compression in JAI
Image in memory?
Image Rotation