Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Need help starting a program

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Need help starting a program

    Hey everybody,

    This program was assigned in my Data Structures & Algorithms class. The basic idea is to use median filtering to filter out noise in a .pgn file. Unfortunately, I don't understand A LOT of what my professor says and she's given us this really confusing assignment/template. I'm very good with programming in Java (A and A- in my two classes thus far), so this shouldn't be terrible, I just need to know how to begin, what classes can help, etc. Here's the assignment she gave us:

    "Your first programming assignment involves application of sorting algorithms to median filtering of an image, which is a technique for smoothing a "noisy" image. The problem and solution are outlined below, you are to fill in the details to have a satisfactory solution. The sorting methods to be implemented include: 1) insertion sort, 2) quicksort, and 3) another sorting algorithm of your choice.

    The image to be processed is in pgm (portable gray map) format. The pgm image file requires 4 entries followed by the greyscale values (some files include comments lines starting with the character #). The four entries are: the literal "P2", an integer representing the x dimension, an integer representing the y dimension, and an integer representing the maximum greyscale value. There should be x times y number of grey-level values after these 4 numbers."

    If anybody could simply help me get started, it would be greatly appreciated. If not, then thanks for reading!


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Need help starting a program

    I'd take a look at this:
    Wikipedia - Median Filtering

    They even have a snippet of pseudo-code, so given your programming background, shouldn't be too difficult to turn into Java.

  3. The Following User Says Thank You to helloworld922 For This Useful Post:

    Mickey2315 (September 7th, 2009)

  4. #3
    Junior Member
    Join Date
    Sep 2009
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Need help starting a program

    Thanks, that should help.

Similar Threads

  1. Starting a java programming career
    By oss_2008 in forum The Cafe
    Replies: 3
    Last Post: July 8th, 2009, 07:45 AM