Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: save ImagePlus object as movie file



I have a problem.
In my program code, the image(captured by QTJava)
is displayed by ImageJ.
I want to save ImagePlus object(imp) sequence
as movie file.
Please give me a advice.

Look at the source for the QuickTime Movie Writer plugin (http://rsb.info.nih.gov/ij/plugins/movie-writer.html) for an example of how to save a sequence of images (in the form of raw pixel data) as a QuickTime movie.


-wayne

The display part of priogram code is below.
Thanks.

----------------------
void displayFrame() {
                gWorld.getPixMap().getPixelData().copyToArray(0,
pixelData, 0, pixelData.length);
                ImageProcessor ip = imp.getProcessor();
                int[] pixels = ip!=null?(int[])ip.getPixels():null;
                ImageWindow win = imp.getWindow();
                if (pixels==null || win==null || IJ.spaceBarDown()) {
                        grabbing = false;
                        imp.setTitle("Untitled");
                        return;
                }
                if (IJ.altKeyDown()) {
                        IJ.setKeyUp(KeyEvent.VK_ALT);
                        IJ.run("Add Slice");
                }
                if (intsPerRow!=width) {
                        for (int i=0; i<height; i++){
                        System.arraycopy(pixelData, i*intsPerRow, pixels,
i*width, width);
                        }
                } else
                ip.setPixels(pixelData);
                imp.updateAndDraw();
                if (grabMode&&pixelData[0]!=0)
                        {grabbing = false; imp.setTitle("Untitled"); return;}
                frame++;
                IJ.wait(10);
        }
------------------------------



-------------------------------------- STOP HIV/AIDS. Yahoo! JAPAN Redribbon Campaign 2005 http://pr.mail.yahoo.co.jp/redribbon/  _______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-java mailing list      (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-java mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden
References: 
 >save ImagePlus object as movie file (From: <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.