Image processing with applets

Hi
I need to create a website with several image processing applets on it. however although the applets work locally they will not load at all through a server (i'm a student) my supervisor tells me i cant use an applet to display an image stored on a server. but as applets specifically have getImage methods which must be able to get images from the server i think he is wrong but do not know how to do it.
Any advice will result in some really great Karma directed your way.
thanks

here's the code I use, make special note of the getDocumentBase(), as this request will be a URL based request, rather than a file read
try {
img = getImage(getDocumentBase(), "logo.gif");
}catch(Throwable t) {
System.out.println("Unable to load logo image",t);
t.printStackTrace();
hope this helps

Similar Messages

  • Image processing with imaq vision with 2 webcams on the same computer

    Hi,
    I'm currently trying to set up 2 usb webcams (logitech quickcam for notebooks pro). I want to be able to have them both run simultaneously and do some image processing with the images that I get from both cameras with labview and imaq vision.
    As of right now, I'm having trouble getting both cameras to run at the same time. Any help would be gladly appreciated. Thanks.

    The USB IMAQ driver will not support running 2 USB cameras at a time (I believe it is a limitation of the DirectShow interface). You could open one camera, acuqire an image, close the reference to that camera and then do the same for the second camera.
    If you need simultaneous acquisition, look at possibly moving to 1394 cameras or analog cameras.

  • Fixed 5.2rc: ...images processed with PV2003 were adding a post-crop vignette...

    From the release notes:
      "Catalog containing images processed with PV2003 were adding a post-crop vignette when catalog upgraded to Lightroom 5"
    Does that mean all my PV2003 images (10,000+) now have a post-crop vignette included in their edit history?  Or some?  Or some special combination?
    I converted my v4.4 catalogue a couple of days after v5.0 was released, so I really don't want to go back to my old v4.4 catalogue and re-convert...
    Any ideas?

    The "fix" works as follows:
    1. If you use LR5.2 RC to upgrade a catalog containg some PV2003 images, there will be no issue....i.e. you will not see the unexpected "Post Crop Vignette Style: Paint Overlay" entry in the develop History.
    2. If you open an LR5 catalog which was created by upgrading from an earlier version using LR5.0, any PV2003 images will STILL show the "Post Crop Vignette Style: Paint Overlay" entry in the develop History, BUT it will no longer have the problem of losing all intervening history steps should you click on a prior history step.
    3. Any already-lost history steps caused by the problem in LR5.0 will remain lost.

  • Image processing with BLOBS: how to write BufferedImage to a BLOB

    Hi everybody - thanks in advance for any input on that topic.
    I'm doing image processing using AWT and 2D. Images are stored in a RDBMS as BLOB Type, which I get using JDBC and convert to a BufferedImage using a JDBCImageDecoder.
    Now, I have my BufferedImage and I can process them using the appropriate filters (ConvolveOp e.g.)
    Writing the BufferedImages to disk or display on screen is easy. But I can't get to write them to a BLOB Object. Any Hint ?
    (Of course, I'm speaking of oracle.sql.BLOB objects, not java.sql.Blob).
    Thanks and have a nice day

    Billy,
    Thank you for your answer. I have two questions.
    First what that means "Bob's your uncle ?" I'm a french man, not used to english special sentences ou jargon. Would enjoy to know !
    Second, I have created a PL/SQL procedure to update my table. I face a problem.
    I want to initialize b_lob with the img_blob value but I get an error : "ORA-22922: nonexistent LOB value". WHere do my error comes from ? I am fairly new in this stuff of BLOB.
    Below my procedure.
    Thank for your kind help.
    Christian.
    create or replace
    procedure insert_img as
    f_lob bfile;
    b_lob blob;
    loops number default 0 ;
    lines number default 0;
    stmt varchar2(4000);
    cursor c1 is select img_blob, file_name, pk from photos FOR UPDATE ;
    begin
    NULL;
    dbms_output.enable(900000);
    stmt := 'SELECT COUNT(*) FROM PHOTOS';
    EXECUTE IMMEDIATE stmt INTO LINES ;
    for ligne in c1 loop
    exit when loops >= lines ;
    loops := loops+1;
    update photos set img_blob= empty_blob() where CURRENT OF C1;
    -- return img_blob into b_lob;
    b_lob := ligne.img_blob ;
    f_lob := bfilename( 'MY_FILES', ligne.file_name );
    IF (DBMS_LOB.FILEEXISTS(f_lob) != 0)
    THEN
          DBMS_OUTPUT.PUT_LINE('BFILE exist: '|| ligne.file_name || ', ligne :'|| ligne.pk);
          dbms_lob.fileopen(f_lob, dbms_lob.file_readonly);
          dbms_lob.loadfromfile( b_lob, f_lob, dbms_lob.getlength(f_lob) );
          dbms_lob.fileclose(f_lob);
          dbms_output.put_line('ligne.pk :' || ligne.pk || ', lines : ' || lines || ', loops ' || loops);
      ELSE
        DBMS_OUTPUT.PUT_LINE('BFILE does not exist: '|| ligne.file_name || ', ligne :'|| ligne.pk);
      END IF;
    end loop;
    commit;
    end insert_img;

  • Image Processing using applet

    hi,
    I am doing my project in java.My project is " Online Image Processing ".
    I did some processing like gray Scale, Invert , Contrast and rotate 90 degree.
    can any one help me for
    1. I vant to rotate Image to 1 degree...
    2. How to get Blure and Sharpen image?
    3. Can i append frames inside applet?
    plz Help me ..

    I did not read the content of the links (To lazy) just found them for you.
    You say that the examples use frames:
    this should not be a problem as the required code is the same.
    Tip:
    How whould you display a image in a frame?
    How whould you display a image in a applet?
    Concentrate on the above 2 and simply change the code accordingly.
    This should be easy also try asking google.

  • Image processing with cRIO-9074

    Hii...
           I am working on Image Processing. Can anybody send an example of cRIO (fpga interface mode) for Image processing applications.
    I need example for how to use DMA FIFO for sending an image to FPGA, and back to host VI after processing on FPGA.
    Thanks
    Prashanth 

    hey sorry,
      It is job openings board.  Ignore the above thread
    Thanks 

  • Automator query: I want to batch process with a program that doesn't offer batch processing.

    After much searching and experimenting I'm resorting to asking the direct question to see if you good folks can help me.
    I would like to be able to automate some image processing with the software "SketchMee". Unfortunately this is not something that the stand alone can do on it's own. I assume Otto can help me. I would like to essentially have a directory with "raw" (unprocessed) images. Have automator...
    1. open file in SketchMee (SketchMee will automatically render with previous settings)
    2. save new file in new directory
    3. repeat 100's and/or 1000's of times.
    Seems pretty straight forward but I'm having trouble making it happen.
    Does anyone have any advice or info for me here?
    Note: this is not a process that can be done in iPhoto, Photoshop or Graphics Convertor.

    Way better, IMHO of course, is Photoshop Elements.  It is not free but you can find deals on it but if not it really isn't too expensive.  For the amateur or advanced amateur it is far better than DPP (free included software) and even Lightroom.
    Lightroom is designed more for a person that takes 1000's and 10,000's of photos.  It has limited editing featuers.
    PSE is also more user friendly that full blown Photoshop.  Which you can not purchase any longer as it must be rented from Abode on a monthly basis.
    There is the free Gimpshop but it is the least user friendly of the bunch and has a steep learning curve.  But it is free.
    Lightzone is a free copy-cat version of Lightroom.
    But when you are ready for the best photo editing and RAW conversion software there is, there is nothing at the top except Photoshop.
    EOS 1Ds Mk III, EOS 1D Mk IV, EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 85mm f1.2 L II USM, EF 70-200mm f2.8 L IS II,
    Sigma 120-300mm f2.8 EX APO, Photoshop CS6, ACR 9, Lightroom 6

  • No Image - 1473R With Vision Assistant

    Hopefully this is a simple fix and I'm missing something very obvious, so here is what's up. I'm originally a text programmer but for this project I'm stuck using LabVIEW which is completely unfamiliar; I've been working on this for days with no progress so I thougt I'd see if anyone had some pointers. The goal of the project is to use the PCIe-1473R FPGA to do live gain control, overlay, and maybe some recognition.
    I started with the "Image Processing with Vision Assistant on FPGA" example and made a few simple changes to just attempt to get a video feed through. The camera we are using is a Pulnix TM 1325 CL, which outputs a 1 tap/10 bit Camera Link signal. Since this example VI is originally configured 1 tap/8 bit I changed the incoming pixel to be read as 1 tap/10 bit and compiled and tested. When I try to start video acquisition I get no errors but no frames are grabbed. The frame's acquisitioned count does not increase and nothing is displayed. If I switch to line scan I get a scanning static image, but this is not a line scan camera and my other NI frame grabber card shows an image from the camera fine.
    I wasn't all that surprised with this result, as the input is 10 bit and the acquisition FIFO and DMA FIFO are both 8 bit orginally. So, I changed them to U16 and also changed IMAQ FPGA FIFO to Pixel Bus and IMAQ FPGA Pixel Bus to FIFO blocks on either side of the Vision Assistant to U16. With this configuration, I again get no image at all; same results. I suspect this is because the incoming image is signed, so the types should be I16 instead. However, there is no setting for I16 on the Pixel Bus conversion methods. Am I not understanding the types happneing here or is there an alternative method for using Vision Assistant with signed images? I'd think it'd be odd not have support for signed input.
    Anyway, I've tried all the different combos of settings I can think of. Does anyone have any input? I feel like it must be either a buffer size problem or a signing problem, but I don't really know. Any and all input is welcome!
    Thanks for helping out a new guy,
    Kidron

    I ended up resolving this issue by switching cameras. The end goal was to use a FLIR SC6100, so I switched to it and was able to get things working shortly. The FLIR does use unsigned ints, so I believe that's what resovled the issue for anyone running into this in the future.

  • Batch processing with an image overlay

    Is it possible to do batch processing with an image overlay in FW CS4?
    I'm trying to resize several hundred images and place rounded corners on them.
    If this cannot be done in FW, does anyone know of another program that could accomplish this?

    Hi Marje,
    It's possible to include both resizing and image overlay in a custom Fireworks command that can be used in batch processing.  To get started, you could check out this tutorial that deals with the first step.
    That article describes how to perform image resize and overlay (in that case, a watermark), and then how to record the steps and turn them into a custom command that can be later used in batch processing.
    Once you saved the custom command, click File >> Batch Process, and follow the steps below:
    In the first window, select the images you want to process.
    On the next screen, open the Commands dropdown menu and select the custom command you created (it'll probably be on the bottom of the list), and click the Add button to include it in the batch process list.
    Finally, on the next screen select the location of the processed files, and optionally save the batch script for later use.
    Good luck!

  • Payload with images processing

    Hello,
    My problem may be pretty common but i cannot decide on most suitable approach. So i turned to this forum where i always find an answer.
    I have to develop a flow, XML over JMS, to receive a message payload with number of images as base64Binary in specific elements e.g country, city, area
    <Payload>
    <country>
    <element/>
    <element/>
    <Image>EQ==</Image> <!-- Optional -->
    </country>
    <City>
    <element/>
    <element/>
    <CityImages><!-- Optional -->
    <Image>EQ==</Image>
    <Image>EQ==</Image>
    </Image>EQ==</Image>
    </CityImages>
    <Area>
    <element/>
    <element/>
    <Images> <!-- these images are must -->
    <Image1>EQ==</AreaImage1>
    <Image2>EQ==</AreaImage2>
    </Images>
    </Area
    </Payload>
    These images will be stored in a separate system before rest of the payload is forwarded to a different system.
    The system where images needs to be stored expose a web service and will return a unique image reference number for each image we store. Created a XQuery which will wrap all images in collection of documents sent to local service. And second XQuery will go through that collection of document and create a request payload for the image processing service. Second XQuery also assign Id to each image as serial number (1, 2, 3...) in the order they are present in the collection when it processes collection of document. The request to image web service goes as one payload with multiple images e.g. <DataSource><Query><id>1</id><image>EQ==</image></Query><Query><id>1</id><image>EQ==</image></Query></DataSource> with unique id and image content.Response contains Id and image reference number e.g. <QueryResult><result><id>1</id><ref>AB1312</ref><></result><result><id>2</id><ref>AB1124</ref><></result></QueryResult>.
    Images contents in original payload will then be replaced with the reference numbers returned from the images system.
    Now the problems i have is:
    1 - First Xquery which creates document collection goes through the payload and when it finds an image it create a document element but i am unable to generate unique ID, in xquery, for each image found in original payload. Second Xquery goes through document collection and uses 'at $count' in for loop as counter and assign that to Id attribute. Ideally unique id sould be generated in the flow or first xquery, instead of second xquery, some how and used as reference?
    2 - I intend to correlate returned image reference number based on the sequence(assumption) in which image appear in the original payload instead of using any cross refence mechanism.
    I seek guidance on my solution on how best to correlate image reference number with corresponding image in the original payload.
    Many Thanks for help!
    Sall0

    You can use the fn-bea:uuid() xquery function to generate unique id's for each image in the first xquery.
    For correlating the image ref no to the actual image in the payload , what you are following based on sequence looks ok, since there is no reference available for each image on the original payload, kind of using the image index within the original payload looks fine.

  • Bridge Image Process fails with Lumix GF-2

    We are unable to get image processor in Bridge to allow us to make raw image processing changes to our GF-2 images. Instead
    of opening in Camera Raw Processor, it just opens the images. How can we change this?

    No Actions are running; neither CS 5 or 6 work with the Lumix. When I drag or double click in Bridge, the camera raw processor opens and processes allowing me the option of making processing adjustments; but I cannot get the script to run by using (Bridge) Tool>Photoshop>ImageProcessor on multiple prints from Lumix. This is the message I get and there are no prints in the designated destination folder.

  • How can I process Raw Images taken with a Nikon D7000 in PS4  Extended?

    How can I process Raw Images taken with a Nikon D7000 in PSE Extended?

    Hi there
    Unfortunately, CS4 does not support the Nikon D7000. You'll have to download the Adobe DNG converter (links below) to process RAW files from your camera.
    DNG converter 6.3 - Mac
    DNG converter 6.3 - Windows
    Here are some answers to similar questions asked over in the Photoshop General discussion:
    If you need further information on this topic, please feel free to post in the Photoshop General Discussion or in the Camera Raw forum.
    Camera Raw | Supported cameras
    Camera Raw | compatible applications
    Cheers,
    Kendall

  • Elements 9 does not accept or process RAW photo images taken with a Nikon D7000.

    Adobe elements 9 does not accept or process RAW photo images taken with a Nikon D7000. I called support for a download patch and they said I had to purchase a support package or essentially purchase Elements 10. I can't believe that Adobe would not have a download patch for this problem as my elements 9 is not very old. When I try to do the updates Adobe says the serial number of the elements 9 is not accepted for download or support even though I purchased it and registered it with Adobe.
    Is there any solution to this?
    Thanks.

    Thank you but still having a problem. I go to the edit menu>>help>>update>>check for updates and an update to 9.03 comes up as the only update, no camera raw update. It starts to download and then stops and says to close organizer and/or editor then starts back up and stops again saying "error installing this update. Close and contact customer support". When I called customer support earlier that's when they said they don't support 9 only v. 10 and did I want to buy support or a new program v10 to get camera raw processing for the Nikon D7000 RAW. Apparently I'm doing something wrong in the update procedure but don't know what. The camera raw version is 6.5 in my elements and understand that camera raw v. 6.7 is the update to process the images. Any ideas? If I uninstall and reinstall does the serial number still work on the reinstall?
    Thanks for help.

  • What is the most suitable image format for processing with imaq?

    Hello.
    What is the most
    suitable image format for processing with imaq?
    I want to capture an image of a usb webcam, store and
    then process it with imaq. I need to know what format to save the
    captured image can then load and process it with imaq vision.
    Thanks

    The only criteria is: don't use JPEG for anything scientific!  The compression involved with saving JPEGs means you always lose information.  I tend to prefer PNG - it's compressed, but non-lossy, and also widely supported.  TIFF is fine as well, but I don't think has any advantages over PNG for this application.  JPEG2000 can give good non-lossy compression I think is slower to read/write than PNG.

  • Java Imaging API for Displaying CGM IMAGES along with Hotspot on Applets

    Are there any java imaging API's which displays the CGM Images on Applets? The CGM Image has Hotspot keys built in. So the Image displayed through Applet should also display the Hotspot keys.
    Also any Event Handler API's when the hotspot key is clicked?
    It would be great, if anyone can send any link regarding this subject

    You may want to try the jcgm library, though it doesn't support hotspots yet.
    [http://jcgm.sourceforge.net/]
    Philippe

Maybe you are looking for

  • Problem in Merge statement

    Hi All, I am using merge statement to update 30000 records from the tables having 55 lacs records. But it is taking much time as i have to kill the session after 12 hours,as it was still going on. If,Same update i m doing using cursors,it will finish

  • Problem install 9i Enterprise Edition

    Hello I am installed Oracle 9i Enterprise Edition about Windows 2000 sp4. In the option 'configuration of database', i set Personality. In Database Creation step I get an error: Ora 01041 the hostdef extension does not exist and the error 0ra-24324,

  • Adobe Flash Player Update and Download

    On the third and final step of downloading the update, the download stops. What might be causing this?

  • How to upload image using JSP

    hi, i am confronting a problem how to upload image from local PC to web server . I am using Tomcat 4.0 please help me by sending code thanks

  • How do I turn off auto-formatting {Bullets} in Word Processing mode

    I am currently working on project and keeps automatically formatting with numbers or letters. How do I turn this feature off? I want to only have my typed text appear, no auto text. Thanks in Advance, Sebastian