Image format conversion (.SDT to .JPEG / .BMP / .TIFF images)

Hello All;
I am developing a Labview software module for our TCSPC (Time Correlated Single Photon Counting) laser microscope. A part of my module generates .SDT images via the Becker-Hickl SPC-830 photon counter. I want to convert those images to BMP / JPEG / TIFF within labview if possible,
Does anyone has done this before, or has any idea how to do this?
Thanks,
Muttee Sheikh
Photonics Research Group,
Dept. of Electrical and Computer Engineering,
University of Toronto,
Canada
(647)686-5152

First, thanks to all who replied. Second, i do have the full developmental version of labview. Third, i developed a VI that takes in the .SDT file and uses "read binary file" to extract 2D Integer array data and passes it to "flatten to pixmap" function that passes the image data to the function "Write Flattened Pixmap" and then a picture to show the result.
When I try this VI on an SDT file, i get this error:
Error 116 occurred at Read from Binary File in Untitled 1
Possible reason(s):
LabVIEW:  Unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data.
I have also attached the VI that i made,
Please help if anyone knows whats wrong..
Thanks once again,
Attachments:
sdt 2 jpeg.vi ‏11 KB

Similar Messages

  • HP 8500 will only allow me to scan jpegs, bmp, tiff, but won't allow me to scan a PDF help

    tried everything i can think of even to create a preference for documents and PDF isn't listed. 

    I'm having the same issue with my hp psc 2175 all-in-one.  Sometimes it does scan in document but I can't get it to do this when I want it to.  Help!!

  • How to compress image files, jpeg, bmp, gif, png, tiff, etc

    I am new to Jave imaging, does anybody know how to compress an image file, including jpeg, bmp, gif, png, tiff format.
    Thanks
    JC

    some are already compressed.
    If you just want generic compression, it doesn't really matter what type of file they are. A simple approach would be to use ZipOutputStream

  • How to disable the automatic conversion from JPEG to TIFF?

    I am using Keynote '09 and Safari 4 on OS X 10.6.8, and I often want to drag and drop a JPEG image from Safari to my slides. I would like to keep the image format as is, but Keynote automatically converts the image format from JPEG to TIFF, so the .key file size becomes large.
    Does anyone know how to disable this automatic conversion? Any idea? I know that I can use the original format if I save the JPEG image at a temporary location, such as ~/Desktop. But I would prefer simpler way. Drag and drop is the best.

    Indeed, having the same problem here.  A simple PPT file that was 1 MB ballons often to more than 10 x the size as a KEY file.  If you rename to zip and open, one notices lots of completely useless "PLACEHOLDER" and background files that occupy several MB in total, plus some small JPGs have been converted to very large PNGs.  This is truly annoying. 
    A similar lack of "file size economy" is present in all applications apple produces for the ipad/iphone.  Images I uplodaded to the photo app become very large (often 10 x bigger).  WTH apple?  Be more economical!  Even my 64 GB ipad2 is starting to feel small with your waste.

  • Image is not saved in jpeg/bmp file but ok with png

    Hi i am unable to save the image in disk in jpeg format.
    Here is the code.
    public void saveImage(){
    //if no filechooser is there means no image file opened.
            if(fileChooser==null){
                if(errorWindow==null)
                    errorWindow=new ErrorWindow(XXX.getPrimaryStage());
                errorWindow.showErrorWindow("There is no image to save !!\n");
            else{
                fileChooser.setTitle("Save The Image");
                File saveFile=fileChooser.showSaveDialog(XXX.getPrimaryStage());
                if(saveFile!=null){
                    System.out.println("saveFile path= "+saveFile);
                    //get the extension of output image to be saved.
                    //XXX: is the main class name(say)
                    outExtension=*XXX*.getImageExtension(saveFile);
                    //if user does not give extension: set default extension as jpg
                    if(outExtension.equalsIgnoreCase(saveFile.getName())){
                        outExtension="jpg";                   
                        String newPath=(saveFile.toString())+".jpg";
                        saveFile=new File(newPath);                   
                    Task task = new Task<Void>() {
                        @Override
                        public Void call() {
                            Platform.runLater(
                                    new Runnable() {
                                        public void run() {
                                            try {
                                                //The image is inside ImageView->inside ScrollPane-> inside TabPane.
                                                Image curImage=XXX.getCurrentImage();
                                                int width=(int)curImage.getWidth();
                                                int height=(int)curImage.getHeight();                              
                                                System.out.println("cur image width= "+width+" ht= "+height);
                                                bufferedImage=new BufferedImage(width, height,BufferedImage.TYPE_INT_ARGB );
                                                //set the current image to awt Buffered Image
                                                SwingFXUtils.fromFXImage(curImage, bufferedImage);
                                                    imageTabPane=xxx.getImageTabPane();
                                                    Tab tab=imageTabPane.getSelectionModel().getSelectedItem();                                    
                                                    TabPane childTabPane=(TabPane)tab.getContent();
                                                    ScrollPane sp=(ScrollPane)childTabPane.getSelectionModel().getSelectedItem().getContent();
                                                    final ImageView imageView=(ImageView)sp.getContent();
                                                    WritableImage wim = new WritableImage(width,height);
                                                    imageView.snapshot(null, wim);
                                                    System.out.println(" snapShot width= "+wim.getWidth()+" ht="+wim.getHeight());                             
                                                    *ImageIO.write(SwingFXUtils.fromFXImage(wim,null), outExtension, saveFile);*
                                                       //<------ its not working  for png,jpeg,bmp,gif                                          
                                                    // the below lines are working only for png and gif
                                                    OutputStream out = new FileOutputStream(saveFile);                                                
                                                    ImageIO.write((RenderedImage) bufferedImage, outExtension, out);
                                                    out.flush();
                                            } catch (Exception ex) {
                                                Logger.getLogger(FileMenuController.class.getName()).log(Level.SEVERE, null, ex);
                                                //ex.printStackTrace();
                                            System.out.println("finished");
                            return null;
                    Thread th = new Thread(task);
                    th.start();
                }else{
                    System.out.println("File is not saved");
        }//saveImageNote: The above code is executed in ubuntu(10.04) using Netbeans 7.2(Javafx(2.2), java(1.7.0_11).
    When i run(from terminal) separately in a new class with an image in an Imageview( inside a Vbox) and take the snapshot
    of the imageview and write into the file using ImageIO.write(SwingFXUtils.fromFXImage(wim,null), outExtension, saveFile);
    with any extension (jpeg,png etc) it is working fine.
    Please help me.
    Any small hint is also helpful.Please feel free to comment or give suggestion.
    Edited by: 963038 on Feb 17, 2013 7:14 PM

    When i omit the line OutputStream out = new FileOutputStream(saveFile);
    and write only
    ImageIO.write((RenderedImage) bufferedImage, outExtension,saveFile);
    //out.flush();
    then saving the image even in "png" also fails.
    The following is the error code:
    Note : FileMenuController is my file where the saveImage() is wrtten.
    javax.imageio.IIOException: I/O error writing PNG file!
    finished
         at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1168)
         at javax.imageio.ImageWriter.write(ImageWriter.java:615)
         at javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
         at javax.imageio.ImageIO.write(ImageIO.java:1536)
         at *newciptk.controls.menu.file.FileMenuController$1$1.run(FileMenuController.java:205)*
         at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
         at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
         at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
         at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: java.io.IOException: Operation not supported
         at java.io.RandomAccessFile.writeBytes(Native Method)
         at java.io.RandomAccessFile.write(RandomAccessFile.java:499)
         at javax.imageio.stream.FileImageOutputStream.write(FileImageOutputStream.java:124)
         at javax.imageio.stream.ImageOutputStreamImpl.writeInt(ImageOutputStreamImpl.java:91)
         at com.sun.imageio.plugins.png.ChunkStream.finish(PNGImageWriter.java:136)
         at com.sun.imageio.plugins.png.PNGImageWriter.write_IHDR(PNGImageWriter.java:401)
         at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1135)
         ... 9 more
    javax.imageio.IIOException: I/O error writing PNG file!
         at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1168)
         at javax.imageio.ImageWriter.write(ImageWriter.java:615)
         at javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
         at javax.imageio.ImageIO.write(ImageIO.java:1536)
         at newciptk.controls.menu.file.FileMenuController$1$1.run(FileMenuController.java:205)
         at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
         at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
         at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
         at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: java.io.IOException: Operation not supported
         at java.io.RandomAccessFile.writeBytes(Native Method)
         at java.io.RandomAccessFile.write(RandomAccessFile.java:499)
         at javax.imageio.stream.FileImageOutputStream.write(FileImageOutputStream.java:124)
         at javax.imageio.stream.ImageOutputStreamImpl.writeInt(ImageOutputStreamImpl.java:91)
         at com.sun.imageio.plugins.png.ChunkStream.finish(PNGImageWriter.java:136)
         at com.sun.imageio.plugins.png.PNGImageWriter.write_IHDR(PNGImageWriter.java:401)
         at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1135)
         ... 9 more

  • FM for OTF to TIFF format conversion?

    Hi,
    Any function module for OTF to TIFF(image file ) format conversion or anything to do it.
    Thanks
    Vaibhav

    hi,
    please check this link.. this contain some function moule to convert OTF -> other formats .. Not sure of TIFF
    [http://help.sap.com/saphelp_45b/helpdata/EN/08/e043c4c18711d2a27b00a0c943858e/content.htm]
    safel

  • When importing Raw into A3, in what format is the picture displayed? Jpeg or tiff.

    When importing Raw into A3, in what format is the picture displayed on the screen? Jpeg or Tiff ?

    None of the comments you have gotten are particularly useful.  The display is independent of format of the file.  It's rendering is of the full pixels in the image file that you have imported, modified by any adjustments you have made, or not if you ask to see the Master.
    Even if your Master was imported as a JPEG, as seen on the screen it would have been decompressed, and you would see all the pixels (that the screen is capable of).  However, a JPEG may have lost some detail in the compression, but when decompressed has the same number of pixels as the equivalent uncompressed photo format -- but some of them may result from interpolation, and not be the original. 
    Ernie

  • How to convert raster images like( PNG, JPG,GIF, BMP, TIFF etc) into SVG

    Hi Friends!
    With a hope that any Java Guru from SUN Forum can help me to solve my query, I'm posting my thread here.
    I have a project with feature to add image. My requirement is to convert any selected image file like (PNG,JPG,BMP,Tiff) into SVG Formate before adding it to Frame.
    I found one software from the link :
    http://delineate.sourceforge.net/
    Which covert raster to SVG.
    But I don't how can i use it runtime ?
    I want to convert during runtime process. like when user select option for to add Image then it call a procedure to add Image by converting any raster to svg & finally add to Frame.
    Your any help/suggestions wold be appreciated
    Regards
    Kirti

    There are basically two approaches:
    1. Embed the raster image in the SVG
    2. Vectorize the image
    1. Use Batik, or just write the XML yourself. Create some SVG files with embedded images, the syntax isn't to difficult. You could do it with a PrintWriter.
    2. Good luck to you. Writing a good vectorizer is
    - difficult
    - often pointless
    - though a great challenge if you're in to it
    The appllication you mention actually is only a front-end. it doesn't execute the vectorization itself. It uses Potrace and autotrace, which are native applications.

  • I wish to export several still images from iMovie as JPEG or TIFF. Is it possible to do this using iMovie, if so how? Any advice is greatly appreciated. I've already managed to add a freeze frame to extract the desired frame but I can't export it. Thanks.

    I wish to export several frames from iMovie as if they were images (like JPEGs or TIFFs). Is it possible to do this using iMovie, if so how? Any advice is greatly appreciated. I've already managed to 'add a freeze frame' to isolate the desired frames but I can't export it. Thanks.

    Ach... I found a solution thanks to previous posts which came to light after I'd posted what was obviously a question that had been asked before.

  • I use images for presentations. Recently I've noticed a decrease in quality ( sharpness and definition) of pictures copied into Keynote. Same problem with both JPEGs and TIFF files. I've recently upgraded to keynote 09, but with no improvement.

    I use images of paintings for presentations. Over the last 3 months or so I've noticed that I cannt copy images (either JPEg or TIFF) without a reduction in sharpness and definition. Hope someone can help with this problem.

    Figured it out myself! yay!  (only took my entire moring)
    The solution:
    Dont print to PDF!
    SAVE AS COPY, then select Adobe PDF and click SAVE, this will bring up a dialog box with the options you need (including the "High Quality Print" Adobe PDF Preset)
    This was not clear in any of the instructions i read

  • What is the best format to import images into iBA? How should I compress my images before importing? What is the best file format? PNG? Jpeg?

    What is the best format to import images into iBA? How should I compress my images before importing? What is the best file format? PNG? Jpeg? I'm trying to figure out the best file format / compression for importing images into iBA. Also, does anyone know how iBA will compress the file? Are the assets attached (like a website) or flattened out? Does anyone know how iBA handles this? Many many thanks to anyone with insight into this.

    This question is largely answered by the following thread...
    https://discussions.apple.com/message/17805700#17805700

  • Jpeg Compressed Tiff images

    I am trying to open TIFF files that have Jpeg compression but QT does not support this combo. These have become very standard in the document storage world as type of thumbnail/baby image. Anyone know how to get in contact with someone at Apple to see if they can add this capability? You can view plain jpg and tiff files with QT but not the Jpeg compressed TIFFs.
    Mark

    Can you please post the code that you are using? com.sun.media.jai.codec.TIFFDecodeParam --> this can help you out.

  • Other than screen shots, for printing purposes, I want text and photo on jpeg or .tiff formats? The printer only accepts jpeg and tiff and can't use screenshots.

    Other than screen shots, for printing purposes, I want text and photo jpeg or tiff formats

    Open the screenshot in preview and export it as a JPG

  • Exporting RAW to JPEG and TIFF

    Evaluating LE to hopefully improve some workflow. I noticed however, that when export to a JPEG or TIFF format the file size seems much smaller that I'm accustomed. A D100 9.5MB RAW file converts to appx 2.7Mb JPEG at 100% and appx 7MB in TIFF. Currently when I convert I get a 17-20MB JPEG. I'm I missing something in the setup or is this the larger file size LE produces.
    Murray Edwards

    Excuse me Lightroom. I currently use Portfolio 8 to review and tagged a large number of images for production. They have a conversion process that allows you to convert a NEF file to JPEG or TIFF. When converting to from a NEF file that is appx 9.5MB in size to a JPEG at 100% @300DPI which is what my clients require, it produces a a JPEG file that ranges from 17-23MB depending the amount of information. But I still have to pull that image into editing SW to do some cleanup or slight exposure adjustments. It was my hopes that by using Lightroom, I could slimline a couple of these processes. But if LR only provides a exported JPEG file size of what I've seen thus far, then I would unable to accomplish this.
    Is this better clarification of my question?

  • Can I automate the writing of XMP metadata into JPEG and TIFF files?

    I have written an ASP.NET 3.5 website application on behalf of an annual international photographic competition. Entrants will be uploading digital photos in either JPEG or TIFF format. Ideally, I would write entrant identity and image title information into the XMP metadata for each image immediately after upload - but so far, I have failed to find any way to do this in ASP.NET.
    Thousands of images are involved, so I need to find a way to automate the metadata insertion, perhaps with some sort of script that uses a text file (extracted from the SQL Server database on my website) as the source of the metadata for a batch of images. Is this the sort of task that can be done by writing a script for Bridge CS3? Are there any scripts already in existence that I could use? I am a total beginner in this area.
    I use a Win XP PC, though I have a colleague who, I think, has CS3 on his Mac (running under the Leopard OS), so scripts for either platform might be usable.
    David

    You are the man X!
    Ok here is another version with a check for the dll.
    #target bridge 
       if( BridgeTalk.appName == "bridge" ) {
    addInfo = new MenuElement("command", "Update Entry Details", "at the end of Thumbnail");
    addInfo .onSelect = function () {
         main();
    function main(){
    var csv = File.openDialog("Please select CSV file.","CSV File:*.csv");
    if(csv != null){
    loadXMPScript();
    csv.open("r");
    while(!csv.eof){ 
       strInputLine = csv.readln();
       if (strInputLine.length > 3) {
          strInputLine = strInputLine.replace(/\\/g,'/');
       inputArray  = strInputLine.split(",");
       var csvFile = new File(inputArray[0]);
       var title = inputArray[1];
       var author = inputArray[2];
    if(!csvFile.exists) {
    alert(csvFile + " Does not exist"); //////////Check if file exists
    return;
    if(csvFile.exists){
    var file = new Thumbnail(csvFile);
    try{
    var xmpFile = new XMPFile(file.path, XMPConst.UNKNOWN,XMPConst.OPEN_FOR_UPDATE);
    }catch(e){
          alert("Problem opening xmp for update:-\r" + file.path +"\r" +e.message);
          return;
    try{
    var xmp = xmpFile.getXMP();
    }catch(e){
          alert("Problem opening xmp data:-\r"  + e.message);
          return;
    xmp.deleteProperty(XMPConst.NS_DC, "creator");
    xmp.deleteProperty(XMPConst.NS_DC, "title");
    try{
    xmp.appendArrayItem(XMPConst.NS_DC, "creator", author, 0,XMPConst.ARRAY_IS_ORDERED);
    xmp.appendArrayItem(XMPConst.NS_DC, "title", title, 0,XMPConst.ARRAY_IS_ORDERED);
    }catch(e){
          alert("Problem writing xmp data:-\r"  + e.message);
          return;
    if (xmpFile.canPutXMP(xmp)) {
    xmpFile.putXMP(xmp);
    }else{
    alert("Can not write new metadata to " + csvFile.spec); 
    xmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
    unloadXMPScript();
    function loadXMPScript()
       var results = new XMPLibMsg("XMPScript Library already loaded", 0, false);
       if (!ExternalObject.AdobeXMPScript)
          try
             ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');    
             results.message = "XMPScript Library loaded";
          catch (e)
             alert("Could not load AdobeXMPScript \r" + e.message);
             results.message = "ERROR Loading AdobeXMPScript: " + e;
             results.line = e.line;
             results.error = true;
       return results;
    function unloadXMPScript()
       var results = new XMPLibMsg("XMPScript Library not loaded", 0, false);
       if( ExternalObject.AdobeXMPScript )
          try
             ExternalObject.AdobeXMPScript.unload();
             ExternalObject.AdobeXMPScript = undefined;
             results.message = "XMPScript Library successfully unloaded";
          catch (e)
             results.message = "ERROR unloading AdobeXMPScript: " + e;
             results.line = e.line;
             results.error = true;
       return results;
    function XMPLibMsg (inMessage, inLine, inError)
       this.message = inMessage;
       this.line = inLine;
       this.error = inError;

Maybe you are looking for

  • IT0007 Change Mid Month/Payroll error

    Geeks, I have a situation wherein I need to change the WSR of a employee mid- month - which I did thru PA30 by creating a new IT7 with start date as 14 july 2014 (below is the overview screen shot of IT7 after change) With Basic as 5000, I ran his pa

  • Blue screen of death of hp desktop p6212f error 0x34

    I was resetting my PC and had a power outage during recovery (with a surge protector hookup). It says problem detected and shut down windows to protect pc. Cache_manager Error 0x34 HPs excellent customer support said it would be fixed if I purchase a

  • I need help please!! urgent

    Good afternoon, this is to let you know that for some time now, a hacker has been coming into my Skype account and has been reporting information both personal and business email through [edited for privacy] . I have already changed the key 3 times a

  • Saving miro transaction  taking more time

    HI Fi gurus, I am getting the following problem : In case of VAT invoice the vendor invoice verification takes 20-25 minutes for bill passing even though it is an single item invoice .(working in production server) Can anybody tell me what could be t

  • Using Revel on iPad while offline

    I'm nearing the end of my 30 day trial of Revel, and, after uploading around 25,000 images I am delighted with the results. it is very liberating to be able to view, and particularly to edit, any of these images on iPhone and iPad. Many thanks to the