Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7844785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:00:11+00:00 2026-06-02T17:00:11+00:00

I am making an app in Netbeans using Java Swing. I want to achieve

  • 0

I am making an app in Netbeans using Java Swing. I want to achieve some image processing functionality (like in ImageJ) in my app without using the ImageJ, JAI and jhlab libraries.

For example: ImageJ>>Process>>Noise>>Despeckle.

So, how can I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T17:00:13+00:00Added an answer on June 2, 2026 at 5:00 pm

    This might helpful

    private void removeNoise() {
        int iterator;
    
        for (int row = 0; row < x1; row++) {
            for (int column = 0; column < y1; column++) {
                if (row == 0 || row == x1 - 1 || column == 0
                        || column == y1 - 1) {
                    result[row][column] = result[row][column];
                    continue;
                } else {
                    iterator = 0;
                    for (int r = row - 1; r < row + 2; r++) {
                        for (int c = column - 1; c < column + 2; c++) {
                            surround[iterator] = result[r][c];
                            iterator++;
                        }
                    }
                    result[row][column] =
                            sortMedian(surround, 9);  //calls the sorting method
    
                }
    
            }
        }
        setPixel();
    }
    
    private int sortMedian(int[] surround1, int x) {
        int i, j, t = 0;
        for (i = 0; i < 9; i++) {
            for (j = 1; j < (9 - i); j++) {
                if (surround1[j - 1] > surround1[j]) {
                    t = surround1[j - 1];
                    surround1[j - 1] = surround1[j];
                    surround1[j] = t;
                }
            }
        }
        return surround1[4];
    }
    
    private void setPixel() {
        int[] pixel = new int[1];
    
        for (int x = 0; x < bi.getWidth(); x++) {
            for (int y = 0; y < bi.getHeight(); y++) {
    
                pixel[0] = (int) result[x][y];
    
    
                  rnImage.getRaster().setPixel(x, y, pixel);
    
                }
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I m making App in netbeans platform using java swing Technology.I want to do
i m making APP which do image proceesing using java SE.i want to check
I making App in Netbeans Platform using Java SE for Dentist.In my App i
Im making a portion of my app using the netbeans gui editor. Great so
I'm making an app that uses the full screen to display an image like
I'm making an app for Mac OS X using Xcode, and I want it
Im making an 'app like' web page. The actual page is wider than the
I'm making an App using Adobe Flex/Air. I was wondering if there is any
i've been making web app's and working with various server side language like php,
I'm making this app with a tableview and stuff. I want to make a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.