Desity Slicig Referece Maual Improvisio, Viscout Cetre II, Uiversity of Warwick Sciece Park, Millbur Hill Road, Covetry. CV4 7HS Tel: 0044 (0) 24 7669 2229 Fax: 0044 (0) 24 7669 0091 e-mail: admi@improvisio.com Iteret: http://www.improvisio.com
Pritig History Editio Date Editio 1 April 1997 Improvisio believes the iformatio i this maual to be correct at the date of issue. However, it is subject to chage at ay time ad does ot represet a commitmet o the part of Improvisio. Improvisio shall ot be liable for errors cotaied herei or for icidetal or cosequetial damages i coectio with the furishig, performace, or use of this maual. Improvisio has a policy of cotiual developmet ad reserves the right to chage iformatio withi this maual without otice to reflect chages i the systemõs desig ad specificatio. 1997 Improvisio, Image Processig & Visio Compay Limited. All rights reserved. Copyright Notice Apple, Fider ad Macitosh are registered trademarks of Apple Computer, Ic. Other brad or product ames are the trademarks or registered trademarks of their respective holders.
DENSITY SLICING Desity Slicig Module Overview This module allows you to locate objects by their colour or by their itesity. The result is a biary layer that ca be measured usig Opelab s Measuremet modules. The Desity Slicig module is ot part of the core product, but ca be purchased separately. Refer to Chapter 2 of the Opelab Core Guide for istructios o istallig modules. Cotets Overview...1 The Desity Slicig Widow...2 Usig Desity Slicig... 3 Hits ad Tips... 4 Savig ad Retrievig Settigs... 4 Desity Slicig ad Automator Tasks...6 A Example Automatio...7 Desity Slicig 1
OPENLAB The Desity Slicig Widow Select Desity Slice... from the Image meu. The Desity Slicig widow is displayed. Select the Colour Model from the pop-up meu Preview widow Check to make the tit trasparet Select the layer(s) for slicig Use the slider cotrols to set the rage for each chael Click here to select a differet tit colour Click here to load saved desity slicig settigs Click here to save desity slicig settigs to a file Click here to grab settigs from a ROI Click here to carry out the desity slicig Note: The parameters show i our example widow will produce the followig biary layer whe you carry out the desity slicig. 2 Desity Slicig
DENSITY SLICING Usig Desity Slicig 1. Use the Ope commad to ope the image file to which you wish to apply desity slicig. 2. Decide which layer you ited to use to set the desity slicig parameters ad use the Layer Maager Palette to make it curret. Select ay other layers to which you wish to apply the desity slicig. 3. You ca use the whole of the curret layer to set parameters, but you may fid it easier to create a ROI o the layer to pick out a typical object. Create the ROI o the image layer. 4. Select Desity Slice... from the Image meu. 5. If you have created a ROI, click o Grab from ROI i the Desity Slicig widow. 6. Select the Colour model. For greyscale images, you should geerally select HSI. Note: If you chage the colour model after you have grabbed a ROI, you will eed to regrab it. 7. Use the Slider cotrols to set the values for each chael (Red, Gree ad Blue, or Hue, Saturatio ad Itesity, depedig upo the colour model) util the preview picture is to your satisfactio. 8. You ca use the Preview pop-up meu to Crop or Scale the preview. Or just hold dow the Optio key ad click i the preview widow to toggle betwee Crop ad Scale. 9. Check the Trasparet tit box, if appropriate. This does ot affect the fial image, it is oly for the preview. You may like to experimet with differet tits to fid the oe that produces the best preview image. 10. Select a Tit colour for the mask. 11. Click o the Slice butto to create a ew biary layer which highlights all the objects withi the thresholds you have specified i the Desity Slicig widow. Desity Slicig 3
OPENLAB Hits ad Tips The Colour Mode that you select depeds upo the images that are you are workig with ad your specific requiremets. As a geeral rule, RGB mode is faster, but uless you kow the exact values for each chael, it is easier to achieve the desired result usig HSI mode. You ca use Desity Slicig to threshold a image o oe of its RGB or HSI chaels. Set all three sliders so that they are all wide ope, ad the adjust oe of the sliders to threshold o that chael. Note: If you are settig up a desity slice o a greyscale layer with a bit depth that is greater tha 8 bits, all the other selected layers should have the same bit depth. Opelab wars you if it fids ay that are ot ad skips them. It also writes a message to the Sessio Log. Savig ad Retrievig Settigs All desity slice settigs may be saved ad reloaded for future use. To save desity slice settigs 1. Click o the Save.. butto. 4 Desity Slicig
DENSITY SLICING 2. Select, or create, a folder for the desity slice settigs, eter a file ame for them, ad click o Save. To retrieve desity slice settigs 1. Click o the Load.. butto. 2. Locate the Desity Slice Settigs file i the Ope File dialogue ad click o Ope. Desity Slicig 5
OPENLAB Desity Slicig ad Automator tasks If you have the Desity Slicig module, you will be able to use the Desity Slice task i your automatio. The task will appear i the Task List i the Automator Widow. This sectio describes the Desity Slice task. Refer to the Automator Referece Maual for further details about creatig ad ruig automatios. 6 Desity Slicig
DENSITY SLICING Desity Slice Task This task allows you to set up the desity slicig parameters. Use the Setup dialogue to: Select RGB or HSI as the colour mode. Specify the rage for each RGB, or HSI chael. Eter a ame for the layer that will be created by the Desity Slicig operatio. Select the required colour mode Eter a rage of values for each chael Eter a ame for the ew, sliced layer A Example Automatio The followig example desity slices ad measures every layer i the top-most image documet. I order to ru it, you will eed both the Desity Slice ad the Advaced Measuremets modules. Desity Slicig 7
OPENLAB Settig up the automatio The automatio is set up as follows:: The Target image widow task targets the top-most widow. The Get o. of layers task couts the umber of layers i the image documet ad stores it i a variable, called layercout. The Loop task uses the layercout variable to determie the umber of times the desity slice ad measuremet tasks will be carried out. It also puts the loopcout ito a variable, called currlayer. 8 Desity Slicig
DENSITY SLICING The View layer task displays the first layer whose Sort Positio matches the currlayer value. The Get layer ifo task extracts the ame ad type from the curret layer ad puts the iformatio ito two variables: currname ad currtype. The two If tasks use the value i the currtype variable to check whether the layer is the Video layer (currtype= Camera Cotrol ) or a biary layer Desity Slicig 9
OPENLAB (currtype= Biary Layer ). If it is either of these, it caot be desity sliced ad the automatio will skip to the ext layer. Say we skipped a layer is a Tell task which allows us to record the ame of the layer that has bee skipped i the trace messages. The Desity Slice task sets the desity slicig parameters. We use the currname variable to create the ame for the ew, sliced layer. The Measure with mask task also uses the currname variable to idetify the layer for measurig. Other parameters specify that oly the Curret layer is to be measured, ad that all objects with a area that is smaller tha 50 will be igored. 10 Desity Slicig
DENSITY SLICING The View layer ad Delete Curret Layer tasks first display the sliced layer ad the delete it. Desity Slicig 11
OPENLAB 12 Desity Slicig