Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Image inpainting Using Wavelet Transform in Java-Project

Image inpainting Using Wavelet Transform in Java-Project

Scheduled Pinned Locked Moved Java
javahelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 10533379
    wrote on last edited by
    #1

    i want java code for implementing Wavelet transform for inpainting the image...please anybody help me

    P 1 Reply Last reply
    0
    • U User 10533379

      i want java code for implementing Wavelet transform for inpainting the image...please anybody help me

      P Offline
      P Offline
      Peter Leow
      wrote on last edited by
      #2

      We will help people who help themselves first. Do not expect us to do your homework, assignments, project, or supply source code. what-have-you-tried[^] If you encounter any difficulties with your coding, always consult Google first, everything else fails, then visit CP and ask questions related to specific issues.

      U 1 Reply Last reply
      0
      • P Peter Leow

        We will help people who help themselves first. Do not expect us to do your homework, assignments, project, or supply source code. what-have-you-tried[^] If you encounter any difficulties with your coding, always consult Google first, everything else fails, then visit CP and ask questions related to specific issues.

        U Offline
        U Offline
        User 10533379
        wrote on last edited by
        #3

        K fine..i tried to convert an image from RGB to Ycrbr but it does work...Can u tell where i made the mistake... import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; import javax.swing.*; import java.awt.image.*; import javax.imageio.ImageIO; public class Picture{ JFileChooser fileChooser = new JFileChooser(); final JFrame frame = new JFrame("Edit Image"); Container content; static BufferedImage image; BufferedImage image2; JLabel imageLabel; public Picture() { //asks for image file as input fileChooser.setDialogTitle("Choose an image file to begin:"); fileChooser.showOpenDialog(frame); File selectedFile = fileChooser.getSelectedFile(); if (fileChooser.getSelectedFile() != null) { try { //reads File as image image = ImageIO.read(selectedFile); } catch (IOException e) { System.out.println("Invalid image file: " + selectedFile); System.exit(0); } } else { System.out.println("No File Selected!"); } } public int width() { //returns width of present image int width = image.getWidth(); return width; } public int height() { //returns height of present image int height = image.getHeight(); return height; } /* public void getImage() { this.image = image2; } */ public void saveImage() { //saves current image as JPEG fileChooser.setDialogTitle("Save this image?"); fileChooser.showSaveDialog(frame); try { //writes new file ImageIO.write(this.image, "JPG", fileChooser.getSelectedFile()); } catch (IOException f) { System.out.println("Saving failed! Could not save image."); } } public void show() { //set frame title, set it visible, etc content = frame.getContentPane(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setResizable(false); //add the image to the frame ImageIcon icon = new ImageIcon(image); imageLabel = new JLabel(icon); frame.setContentPane(imageLabel); //add a menubar on the frame with a single option: saving the image JMenuBar menuBar = new JMenuBar(); frame.setJMenuBar(menuBar); JMenu progName

        P 1 Reply Last reply
        0
        • U User 10533379

          K fine..i tried to convert an image from RGB to Ycrbr but it does work...Can u tell where i made the mistake... import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; import javax.swing.*; import java.awt.image.*; import javax.imageio.ImageIO; public class Picture{ JFileChooser fileChooser = new JFileChooser(); final JFrame frame = new JFrame("Edit Image"); Container content; static BufferedImage image; BufferedImage image2; JLabel imageLabel; public Picture() { //asks for image file as input fileChooser.setDialogTitle("Choose an image file to begin:"); fileChooser.showOpenDialog(frame); File selectedFile = fileChooser.getSelectedFile(); if (fileChooser.getSelectedFile() != null) { try { //reads File as image image = ImageIO.read(selectedFile); } catch (IOException e) { System.out.println("Invalid image file: " + selectedFile); System.exit(0); } } else { System.out.println("No File Selected!"); } } public int width() { //returns width of present image int width = image.getWidth(); return width; } public int height() { //returns height of present image int height = image.getHeight(); return height; } /* public void getImage() { this.image = image2; } */ public void saveImage() { //saves current image as JPEG fileChooser.setDialogTitle("Save this image?"); fileChooser.showSaveDialog(frame); try { //writes new file ImageIO.write(this.image, "JPG", fileChooser.getSelectedFile()); } catch (IOException f) { System.out.println("Saving failed! Could not save image."); } } public void show() { //set frame title, set it visible, etc content = frame.getContentPane(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setResizable(false); //add the image to the frame ImageIcon icon = new ImageIcon(image); imageLabel = new JLabel(icon); frame.setContentPane(imageLabel); //add a menubar on the frame with a single option: saving the image JMenuBar menuBar = new JMenuBar(); frame.setJMenuBar(menuBar); JMenu progName

          P Offline
          P Offline
          Peter Leow
          wrote on last edited by
          #4

          You should add this code to your original question so that everyone can chip in to help. More eyes are better.

          U 1 Reply Last reply
          0
          • P Peter Leow

            You should add this code to your original question so that everyone can chip in to help. More eyes are better.

            U Offline
            U Offline
            User 10533379
            wrote on last edited by
            #5

            K thanks for ur suggestion :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups