11.07.2015 Views

Using Scripts - mipav

Using Scripts - mipav

Using Scripts - mipav

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

M I P A VM e d i c a l I m a g e P r o c e s s i n g, A n a l y s i s, & V i s u a l i z a t i o nMIPAV User’s Guide, Volume 1, Basics"do_separable_convolution boolean true" corresponds to checking theUse Separable Convolution Kernels option in the dialog box. For moreinformation, refer to Volume 2 Algorithms, Section ‘‘Applying theGaussian Blur algorithm’’4 As a result, the second image clone appears on the screen. SeeFigure 311.A B CFigure 311. The original image (A), the first clone after applyingmargins (B), and the second clone (C) after applying Gaussian Blur5 Now, you can close the original image. And the following string appearsin the script: CloseFrame("input_image_1 image $image1") indicatingthat the image frame has been closed.6 You might save last two images. In order to do that, select the imageframe, and then call File > Save Image As from the main MIPAV menu.The image will be saved in specified format in the chosen location. Thefollowing strings appears in the script: SaveImageAs("input_image_1image $image2", "file_type string .mnc") indicating that the image hasbeen saved as a MINC file. 17 To save the script, click File > Save. The program saves the script in thescripts home directory.8 You might add the comments in the script. In order to do that, press theInsert Comment button, and enter the comment in the dialog box thatappears. Add as many comments as needed. Then, save the script.9 Click File > Exit to close the Record New Script dialog box. The dialogbox closes. You should now be able to select and run the script from theCurrent Script box.1. This saves only the image with margins, not the post-blurred image.MIPAV User’s Guide, Volume 1, Basics 52012/2/08

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!