Results 1 to 2 of 2

Thread: nice multimedia small programs for java programmers

  1. #1
    Junior Member
    Join Date
    Mar 2005

    nice multimedia small programs for java programmers

    i hav these questions about image converting type(grayscale,binary,dithered )>>

    any good java programers here that can help.

    (1) Write a program that takes a grayscale image and convert it to a binary image (Hint: take a threshold at the median).

    (2) Write a program that takes grayscale image and convert it to a dithered image using a 2x2 matrix that represent 5 levels of intensity. Use the following rule to fill up the dots. “If the intensity is greater than the dither matrix entry, print an ON dot at that entry location: replace each pixel by a 2x2 matrix of dots.”

    Hint: To get a grayscale image from a colored image, use an image converter to convert a colored image (i.e. jpg, or gif) to a pgm type (portable graymap) whose file format is as follows:

    # feep.pgm
    7 5
    0 0 0 0 0 0 0
    0 0 255 15 15 15 0
    0 3 0 0 0 0 0
    117 0 0 0 0 111 0
    0 0 0 0 0 115 0

    • The first row is the file type (P2)
    • The second is a comment. Could be file name.
    • Third is the column and width of the image.
    • Fourth is the maximum value of each pixel.
    • The following line are the pixel values.

    looking for ur ideas

  2. #2
    The ghost in the machine striker8000's Avatar
    Join Date
    Mar 2004
    lost in time
    done, cool problem
    still folding away, haven't been on as much lately

Similar Threads

  1. interesting read for single guys
    By nightowl in forum General Discussion Board
    Replies: 3
    Last Post: 05-12-03, 08:55 PM
  2. Security and Encryption FAQ Revision 15 by Doctor Who
    By Marine06 in forum Network Security
    Replies: 1
    Last Post: 02-19-01, 09:48 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts