Digital Watermarking on image in frequency domain

I am working on a Project which aims at studying the digital watermarking on image, with both spatial domain and frequency domain.
I have finished the spatial domain but is frustrated with the frequency domain right now. I have no idea on how I can possess the frequency domain of a image. Is there a built-in function which can help us to do so?
Thank you for your help.

Also posted and crossposted:
http://forums.sun.com/thread.jspa?threadID=5433169&messageID=10958328#10958328
http://forums.sun.com/thread.jspa?threadID=5433180&messageID=10958329#10958329
http://forums.sun.com/thread.jspa?threadID=5433412&messageID=10959648#10959648
http://forums.sun.com/thread.jspa?threadID=5433693&messageID=10961065#10961065
http://forums.sun.com/thread.jspa?threadID=5433694&messageID=10961066#10961066

Similar Messages

  • Digital watermarking gif images

    I ve writed a program which watermarks png and non-animated gif images .But there is a problem because we started to use animated gif images. How can we watermark animated gif images without corrupting animation of the image?
    Regards
    Murat

    I haven't done much with gif animation, but here's an example that extracts the series of BufferedImages
    from a gif file. Good luck!
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import java.net.URL;
    import java.util.*;
    import javax.imageio.*;
    import javax.imageio.metadata.*;
    import javax.imageio.stream.*;
    import javax.swing.*;
    import org.w3c.dom.*;
    public class ViewGif extends JPanel {
        private BufferedImage[] images;
        private Point[] offsets;
        private BufferedImage composite;
        public static void main(String[] args) throws IOException {
            JPanel app = new ViewGif();
            app.setBackground(Color.RED);
            JFrame frame = new JFrame("ViewGif");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(new JScrollPane(app));
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public ViewGif() throws IOException {
            URL url = new URL("http://members.aol.com/royalef/sunglass.gif");
            Iterator readers = ImageIO.getImageReadersBySuffix("gif");
            if (!readers.hasNext())
                throw new IOException("no gif readers");
            ImageReader reader = (ImageReader) readers.next();
            if (readers.hasNext())
                System.out.println("(there were oither readers)");
            ImageInputStream iis = ImageIO.createImageInputStream(url.openStream());
            reader.setInput(iis);
            final int numImages = reader.getNumImages(true);
            images = new BufferedImage[numImages];
            offsets = new Point[numImages];
            for(int i=0; i<numImages; ++i) {
                images[i] =  reader.read(i);
                offsets[i] = getPixelOffsets(reader, i);
            composite = new BufferedImage(images[0].getWidth(), images[0].getHeight(),
                BufferedImage.TYPE_INT_ARGB);
            final Graphics2D g2 = composite.createGraphics();
            g2.drawImage(images[0], offsets[0].x, offsets[0].y, null);
            new javax.swing.Timer(100, new ActionListener(){
                int j = 1;
                public void actionPerformed(ActionEvent evt) {
                    g2.drawImage(images[j], offsets[j].x, offsets[j].y, null);
                    j = (j+1) % numImages;
                    repaint();
            }).start();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Insets insets = getInsets();
            g.drawImage(composite, insets.left, insets.top, null);
        public Dimension getPreferredSize() {
            Insets insets = getInsets();
            int w = insets.left + insets.right + composite.getWidth();
            int h = insets.top + insets.bottom + composite.getHeight();
            return new Dimension(w,h);
        static Point getPixelOffsets(ImageReader reader, int num) throws IOException {
            IIOMetadata meta = reader.getImageMetadata(num);
            Point point = new Point(-1,-1);
            Node root = meta.getAsTree("javax_imageio_1.0");
            for (Node c = root.getFirstChild(); c != null; c = c.getNextSibling()) {
                String name = c.getNodeName();
                if ("Dimension".equals(name)) {
                    for (c = c.getFirstChild(); c != null; c = c.getNextSibling()) {
                        name = c.getNodeName();
                        if ("HorizontalPixelOffset".equals(name))
                            point.x = getValueAttribute(c);
                        else if ("VerticalPixelOffset".equals(name))
                            point.y = getValueAttribute(c);
                    return point;
            return point;
        static int getValueAttribute(Node node) {
            try {
                return Integer.parseInt(node.getAttributes().getNamedItem("value").getNodeValue());
            } catch (NumberFormatException e) {
                return -2;

  • Image Watermarking in Frequency Domain

    I am working on a Project which aims at studying the digital watermarking on image, with both spatial domain and frequency domain.
    I have finished the spatial domain but is frustrated with the frequency domain right now. I have no idea on how I can possess the frequency domain of a image. Is there a built-in function which can help us to do so?
    Thank you for your help.

    i have no clue what a frequence domain is, but with logical thinking I can quickly rule out that such an API will exist in core Java. Java was not built to contain standard solutions for every exotic business requirement out there. It contains the basic functionality to work with images only, the rest is up to you.
    However, you could direct a google search towards a third party API that might deal with your problem domain. One possible search area is Java Advanced Imaging, which contains complex image processing functionality.
    [http://java.sun.com/javase/technologies/desktop/media/|http://java.sun.com/javase/technologies/desktop/media/]

  • Frequency domain analysis

    Does photoshop offer frequency domain analysis of an image?
    The standard way to remove noise, i.e. background spots, is do spectrum analysis and remove those high-frenquency signal. Is photoshop image-> adjustment -> level a frequency analysis?

    NR not very trivial. IMO anyway.
    I had much the same questions when I moved from frequency domain to time domain. A strong preparation in analog engineering treated time domain sparsely, particularly noise. We dealt with detector noise in a nuclear physics lab by running the detectors in pairs at cryogenic temps. The detectors were connected to a coincidence circuit (and gate to you digital folks!). Even then, the output of the gate had to be carefully amplified, then subjected to an A to D converter where the output was displayed as a histogram. I'm sure things have progressed mightily since then, (ca 1950's).
    I used the coincidence idea back about 2004 or so when I needed an image absolutely as noise free as possible by shooting the object (an exposed wooden frame for a building constructed from Port Orford Cedar.) twice, then constructing a curve applied to each image to allow adding them together to match the colors and values of a single shot.  Extended versions of PS now allows this without any curve inventions!
    Viva Al Gore Rhythms! (Didn't Bill Clinton play for him? )

  • Anyone know how to do invisible digital watermarking?

    Does anyone know or have code to do invisible digital watermarking on TIFF, BMP or GIF images?
    Thank you!!

    Hello!
    i just begin to conduct a research on digital watermarking technology.
    i found some algorithm on the web but i meet difficulties in understanding part on the algorithm, i hope i can get some helps from here.
    can you provide me some sample java watermarking code so that i can understand how watermarking works.
    thank you!

  • Free invisible digital watermark?

    Does Lightroom or Photoshop has some form of invisible watermarking tools? I am looking for a free digital watermark app that doesn't involve visible text or images being placed on the image. I used to use Digimarc when it is free (years ago), but now there are subscription prices, although there is a free plug-in download for Photoshop.
    I only want to use it on 2 photos that I am emailing to someone. Does anyone know whether Lightroom can do it? Or know of any such apps?
    Thanks!

    If such a plug-in exists for Lr the developer is keeping very quiet about it.
    This is a link to a earlier thread asking the same question http://forums.adobe.com/message/1396376;jsessionid=FD45A6F5A4EC61B35FC14DFBA586C07B.node0 As you can see there wasn't much help back then either.

  • Custom Digital Watermark

    Is there a way to add a custom digital watermark to a labview front panel?  Thanks.

    There is a way, but it won't be easy...
    You can put a picture control (or a decoration) as top most object. Now,
    there is your watermark! Problem is that this watermark will block all mouse
    clicks, so everything behind it will be useless.
    You'll have to catch mouse clicks on the picture control, and make the
    controls behind it behave like they would if you'd clicked them directly.
    This will be very difficult, unless you only have one or two boolean buttons
    beneath it. For a numeric, you have to give it key focus when click in it,
    but also calculate the text position of the cursor, increment and decrement
    if that is where the user clicked, and don't forget about dragging the mouse
    to select text!
    Then you have the transparency problem... You can apply a mask to an image
    in the picture control, but it is either on or off. So you have to make it
    look transparent, by alpha blending everything behind the VI with the
    picture... A hole new set of problems...
    You might try to use GDI functions to draw a picture above the VI. In
    general, this works poorly, since the objects disappear when LV updates it's
    panel. But in this case, it could work. but if it doesn't, you're lost.
    I'm not shy about hacking stuff like this, but in this case, I'll pass.
    Perhaps if you explain more about your mmi, we could figure out another
    clever scheme. For instance, a watermark over a graph area is a lot
    easier...
    Regards,
    Wiebe.

  • Frequency domain incorrect in FFT output - DTMF Decoding program

    I am writing a VI to decode a DTMF signal received through the PC microphone.  The frequency domain data is always showing less than 1 Hz.  I am using the Sound Card AutoPower spectrum VI as my building block.
    VI is located at www.crazymansales.com/ni/dtmfft.vi
    Thanks!

    (VI is apparently located at www.crazymansales.com/ni/dtmffft.vi ,note the extra "f". )
    Anyway, you feed it only a simple 1D array, which has no time information (assumes dt=1).
    Try to built a waveform containing the correct dt as in the image. See if things improve!
    Message Edited by altenbach on 04-17-2006 09:23 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    DTMF.png ‏9 KB

  • Action to put 3D watermark on images...

    I have an action that puts a 3D watermark diagonally across my image.  What I'd LIKE to have it do is
    properly position itself and scale itself to fit images of different sizes and dimensions.......
    For example, if my image is 1024x768, my "horizontal_watermark" action works perfectly.  BUT, if my image happens to be 1024x650, my watermark runs off the top and bottom.
    If, on the other hand my image is 562x768 I have a "vertical_watermark" action that fits perfectly.......
    Is there a way to make my action smart enough to adjust the angle of the watermark, position it correctly for different dimensioned images, and size itself
    to it works with images of different sizes?  If so, is there detailed documentation somewhere that'll teach me how to do all this?
    Or can one of you experts tell me what I need to change/add to my action to do this?

    To scale watermarks for different size images in a action take a bit of knowledge some scripting will also be helpful.  I put together a package on crafting actions with the information you need to learn.  In fact the package contains a sample action set and in that set is a watermarking action that does what you want to do. It can add three watermaks to any size image.  The action uses Layer Styles these can not be recorded in a relative way so if you try to watermark small images the styles are too thick and if the image is massive the layer styles are too thin.  However you can adjust any layer style for the action leaves the layer intact so you can modify any layer style used.  The three watermarks are done using three different methods. One a shape layer, One a text layer and the third a color logo laye these are scaled for the current images size.
    http://www.mouseprints.net/old/dpr/JJMacksCraftingActions.zip
    Contains:
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file. This file has some additional comments I inserted describing how the actions work.
    12 Scripts for actions
    Watermark example:

  • Downloading e-pub with digital watermarking protection

    Hi all; I always bought e-books for my Nook and successfully downoaded them. The format was e-pub with DRM protection. Downoadings are addressed to 'bought books' directory in Adobe Digital Editions and then they're readable on 'my documents' in my Nook. The last one I bought, was an e-book e-pub with digital watermarking protection. I don't know if different protection is the cause, but this time the downloading is automatically addressed to 'reading now' in ADE. This time the e-book is not in the list of 'bought books' (in ADE). When I disconnect Nook, the book is in 'my documents' list (of Nook), but when I try to open it, I only see the cover for a couple of seconds, and the page is reverted again to 'my documents'.
    How to do? I can open it in ADE on my PC, but not on Nook. I'll appreciate any help!

    I moved your posting from the Workspaces forum to the Digital Editions forum.

  • Injecting a watermark on images as they are viewed

    We have over 60k .tif images on a Unix server. These images are
    engineering drawings from A to J size. When an image is selected via IE or
    Netscape our current proprietary viewer displays the image. We need to
    watermark each image when displayed or when printed. These are legacy
    images and it is unrealistic to go back and tag the images in their native
    format.
    The use of our proprietary viewer is not mandatory, but due to our
    diverse user community and the detail needed by the engineers it is a very
    low cost solution, actually free at this point.
    We need a viewer that, when a user requests an image, a watermark
    automatically displays on the image in a predefined location, and if
    printed the watermark prints also. The viewer would be on the client and
    launched when the server image is requested via a web browser. We would
    like the viewer to be activated by the host verses the image file type
    defined by the browser. This would eliminate the watermark displaying on
    other images if the client viewer was used to view other images on another
    server.
    Are there any COTS products that will satisfy this requirement, or can
    you recommend a custom code solution?

    Just post to 1 forum plz

  • Why doesn't Lightroom 5 always watermark exported images?

    I haven't changed the settings, but last time I tried to export images with a watermark the images appeared in the output folder without watermarks.
    The problem has occured before, but corrected itself when I re-exported the images. This time Lightroom is steadfastly ignoring the instruction to add a watermark.
    Any clues, why this happens?
    Some of my jpegs are zero length when exported, is there a fix for this, other than to export them again?
    I can fix the problem by using LR4.4, but why isn't LR5 working properly?
    Thanks in advance,
    Steve

    Most likely you simply ise an unsupported operating system. We really can't know. You have not provided any relevant info.
    Mylenium

  • Digital Watermarking

    hi,
    Searching for help in Digital Watermarking. I hardly find java source code from the web. Hope can get some help here.
    if anyone have java source code of digital watermarking, please send me a copy at: [email protected]
    thanks a lot
    Siang

    I do not know of any java digital watermarking. There is alot of it being done in C. You would just have to write JNI to get this working. I would also be interested in finding out if there is java digital watermarking being done.
    Another solution would be to port the C code to java. I am sure that the JAI libs would help.

  • Is it possible to make a Frequency Domain Reflectometer using LabView? For waveguide frequency measurement?

    Hi everyone
    I have a tricky question that I have looking around for the answer but couldn't find it!
    I want to know if I can build a Frequency Domain Reflectometer (FDR) to measure frequency return in waveguide. Telecommunication engineers would understand what I mean! It a bit like TDRs but its frequency instead of time. 
    I would like to build a Frequency Domain Reflectometer using labview application, how can I do that? What sort of code do I need and what equipment do I need to operate with the NI code?
    Please give me the chance to thank you all very very much for your help and support and for looking here,
    regards
    Fezz

    Hi Fezz,
    I am not familiar with using FDR systems but know there is a good example of producing a TDR in LabVIEW available on the community. This might provide you with a base and a grasp of the architecture you could use to create the functionality.
    Time-Domain Reflectometer (TDR) Example
    Regarding the equipment you would require to achieve this I strongly recommend contacting your local NI office who will be able to adviser you fully as this will depend upon your desired specification.
    Kind Regards,
    Aaron. E
    Applications Engineer Team Lead
    National Instruments
    ni.com/support

  • Possible to watermark DVD image?

    Hey was wondering if it would be possible to overlay a logo over the image on a dvd to prevent plagiarism. I'm working on a feature and a lot of dvds have to be sent out to different festivals and whatnot. I need to figure out a way to force a moving logo onto the entire film. I would like to have the logo move every ten minutes so it can not be cut out. I know i can do this simply in FCP but i don't have time to recompress the whole movie with the image. I have 2 sets of subtitles in the DVD project, so making a track with the logo and force displaying it isn't an option (i think). But would be very grateful to anyone with any suggestions.
    Peace'n'hugs.

    No, if you want to watermark the image to prevent plagiarism, then you will have to burn the image into the video via FCP. You could use an overlay image in DVD SP to display a watermark, but the problem is that it is not burned into the video. If someone stripped your MPEG-2 file off of the disc, they would also by default strip the overlay image off of the video.
    You have to do this in FCP.

Maybe you are looking for