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.


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

Results 1 to 2 of 2

Thread: HELP!

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Thanked 0 Times in 0 Posts

    Default HELP!

    I'm having an issue with my image processing program that I have for school. Any feedback is greatly appreciated. Here's what I have so far:
    public short[][] Brighten(){
    getPGM pic = new getPGM("football.pgm");
    short Brighten[][] = new short [256][];
    for (int i = 0; i < 256; i++){
    short pixelValue = (short) (i + 10);
    if(pixelValue > 255)
    pixelValue = 255;
    else if (pixelValue < 0)
    pixelValue = 0;
    Brighten[i][j] = pixelValue;

    I'm trying to find out how I would apply my algirithm to that actual image. HELP PLEASE!!!

  2. #2
    Super Moderator
    Join Date
    Jun 2013
    So. Maryland, USA
    My Mood
    Thanked 688 Times in 675 Posts

    Default Re: HELP!

    Please write better thread titles. Everyone wants help.

    Post your code in code tags. You can learn how in the Announcement topic at the top of the sub-forum.

    You might also describe what the code you posted is supposed to do, what it's not doing, what you need help with, ask specific questions, etc. What's the issue you're having with this code?

Tags for this Thread