How to detect an image in Matlab?

C language or matlab code for filtering in digital image processing

  • A Matlab or C language code for loading an image, then adding any type of noise to it, then seperate the noise once by using the median filter and once by using the neighbourhood averaging filter.

  • Answer:

    Hello Deepac, There are a number of image processing tools with source code available on line. Perhaps the most comprehensive is ImageMagick described at http://www.imagemagick.org/ Some of its features includes: o It is supported on a variety of operating systems (Unix, Windows, MacOS, VMS, OS2) o It has command line utilities to perform many operations (including the ones you have described) o It has function libraries that can be called from C, C++, Perl, Python, and Java o Source code is freely available o Has extensive documentation and mailing lists to provide help using the functions and applications. For example, a sample C++ application is shown at http://www.imagemagick.org/www/Magick++/Image.html which reads a TIFF image, adds noise, and writes the TIFF image [basically, the first and second steps you describe above] and does this in five lines of code (look about 1/4 of the way down the page). The function for median filter is described on the same page - search for medianFilter. I can't tell for sure which neighborhood algorithm you want to use. The choices are: o Floyd/Steinberg error diffusion - search for quantize Dither o Gaussian Blur - search for gaussianBlur The command line utilities described at http://www.imagemagick.org/www/ImageMagick.html#details-noise also describes a method where a noisy pixel is replaced by one of its neighbors, but I can't seem to find the function interface for that particular operation. It may be "enhanceImage" or "reduceNoiseImage", but I can't be sure. Be sure to ask in a clarification request if one of these does not meet your needs. Some suggestions on further searches, use phrases such as source code image filtering neighborhood averaging The third link was a site at http://www.cs.cmu.edu/~cil/v-source.html titled "Computer Vision Source Code" which has direct links to a number of resources - ImageMagick was one of them. --Maniac

deepac-ga at Google Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.