5 simultaneous analysis - virtue

8
1 V. Simultaneous Analysis of Multiple Images Using ImageJ Sally Soria-Dengg, GEOMAR Helmholtz Centre for Ocean Research Kiel Düsternbrookerweg 20, 24105 Kiel, Germany Analysing multiple images simultaneously is another feature of ImageJ which makes disc analysis easier and faster. In the context of VIRTUE-s, this is suitable for determining the area coverage of the discs at a stage when fouling is still sparse. In this example, several photomicrographs of a single disc are used to extrapolate to the total area of the disc covered by diatoms. As a prerequisite, a reference scale (stage micrometre) needs to be photographed (cf. tutorial Microscopy and ImageJ). In addition, it is important that the magnification of the reference scale and the images to be analysed as well as, if possible, the focus/adjustments are the same. Also, in your image the areas of interest should have a very good contrast to the background. 1. Download the version of Fiji ImageJ which is compatible with the operating system of your computer from this website: https://imagej.net/Fiji/Downloads (The following description refers to Version 2.0.0 of ImageJ as of 2018-12-04 (check in Menu Fiji - About ImageJ). If a different version is used, some modifications may have to be made, but in principle the procedure should still be applicable.) 2. Open the program Fiji and you will see the tool selection bar under the menu bar. (Figures in this tutorial are from the Mac version. Under Windows or Linux, details may look different). (If you are working with a freshly installed version of Fiji, no adjustments need to be made. If you have used this version of Fiji before and changed some settings in Edit - Options, you should go to Edit - Options - Reset, confirm the reset and restart Fiji to make sure you are using the default settings required in this tutorial. Check under Process - Binary - Options and ensure that the box “Black background” is activated.) 3. Set the scale. Load the picture of your reference scale by dragging the file and dropping it on the tool selection bar. In our example (file 8X@20180112_174424.jpeg in the collection of practice images) we have a dot with a known diameter of 0.6 mm from a Motic 4-dot calibration slide. Choose the “Straight” tool (black arrow) from the tool selection bar and draw a straight line across the diameter of the dot (yellow arrow).

Upload: others

Post on 24-Nov-2021

13 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 5 Simultaneous Analysis - VIRTUE

1

V.SimultaneousAnalysisofMultipleImagesUsingImageJ

SallySoria-Dengg,GEOMARHelmholtzCentreforOceanResearchKiel

Düsternbrookerweg20,24105Kiel,GermanyAnalysingmultipleimagessimultaneouslyisanotherfeatureofImageJwhichmakesdiscanalysiseasierandfaster.InthecontextofVIRTUE-s,thisissuitablefordeterminingtheareacoverageofthediscsatastagewhenfoulingisstillsparse.Inthisexample,severalphotomicrographsofasinglediscareusedtoextrapolatetothetotalareaofthedisccoveredbydiatoms.Asaprerequisite,areferencescale(stagemicrometre)needstobephotographed(cf.tutorialMicroscopyandImageJ).Inaddition,itisimportantthatthemagnificationofthereferencescaleandtheimagestobeanalysedaswellas,ifpossible,thefocus/adjustmentsarethesame.Also,inyourimagetheareasofinterestshouldhaveaverygoodcontrasttothebackground.1. DownloadtheversionofFijiImageJwhichiscompatiblewiththeoperatingsystem

ofyourcomputerfromthiswebsite:https://imagej.net/Fiji/Downloads(ThefollowingdescriptionreferstoVersion2.0.0ofImageJasof2018-12-04(checkinMenuFiji-AboutImageJ).Ifadifferentversionisused,somemodificationsmayhavetobemade,butinprincipletheprocedureshouldstillbeapplicable.)

2. OpentheprogramFijiandyouwillseethetoolselectionbarunderthemenubar.

(FiguresinthistutorialarefromtheMacversion.UnderWindowsorLinux,detailsmaylookdifferent).

(IfyouareworkingwithafreshlyinstalledversionofFiji,noadjustmentsneedtobemade.IfyouhaveusedthisversionofFijibeforeandchangedsomesettingsinEdit-Options,youshouldgotoEdit-Options-Reset,confirmtheresetandrestartFijitomakesureyouareusingthedefaultsettingsrequiredinthistutorial.CheckunderProcess-Binary-Optionsandensurethatthebox“Blackbackground”isactivated.)

3. Setthescale.Loadthepictureofyourreferencescalebydraggingthefileand

droppingitonthetoolselectionbar.Inourexample(file8X@20180112_174424.jpeginthecollectionofpracticeimages)wehaveadotwithaknowndiameterof0.6mmfromaMotic4-dotcalibrationslide.

Choosethe“Straight”tool(blackarrow)fromthetoolselectionbaranddrawastraightlineacrossthediameterofthedot(yellowarrow).

Page 2: 5 Simultaneous Analysis - VIRTUE

2

ClickonAnalyze–SetScaleinthemenubarandfillintheinformationon“Knowndistance”(0.6)and“Unitoflength”(mm).SelectGlobaltousethisscaleforalltheimagesyouaregoingtoanalyse.ConfirmwithOK.Closetheimageofthereferencescale.

Page 3: 5 Simultaneous Analysis - VIRTUE

3

4. Nowopentheimagesyouwanttoanalyse.Youcanselectalltheimagestobeanalysedatthesametimeanddraganddropthemonthetoolselectionbar.Alltheimageswillappearonyourscreen.ChecktomakesurethatallimagesareopeninImageJ.Ifthisisnotthecase,youmayhavetodraganddropthemissingimagesindividuallyontothetoolselectionbar.

Forthistutorialwehaveagroupof6imagesofrandomlychosenareasonadiscdeployedforfourweeksinDecember.Noticethatgrowthisstillsparseandnoindividualorganismscanbecountedunderthismagnificationunderastereomicroscope.Thedarkareasarecoloniesofdiatoms(microscopicalgae)thatwereidentifiedunderalightmicroscopebeforetakingthephotographs.Wenowwanttoestimatethetotalareaoccupiedbythediatomsonthediscfromthese6samples.

5. CreateaStack.SelectImage–Stacks–ImagestoStack.Giveanametoyourstack.

Inthisexamplewewillnamethestack“December”inreferencetothemonthofdeployment.Activate“UseTitlesasLabels”and“KeepSourceImages”.Thelatterwillretaintheoriginalimages.Youcanusetheseasreferenceimagesafterthepictureshavebeenconverted.Click“OK”.

Page 4: 5 Simultaneous Analysis - VIRTUE

4

6. Astackisnowcreatedwithyourimages.(Alloriginalimageswillalsoberetainedasindividualpictures.)Onyourscreenyouwillseeoneimagewithaslidebar(blackarrow)atthebottomedgeofthewindow.Bymovingtheslideryoucanswitchbetweentheindividualimagesinthestack.Afilenametotheupperleft(yellowarrow,here‘8X@20180112_180158’)showswhichimageinthestackiscurrentlydisplayed.Theredarrowgivesthesizerepresentedbythecompleteframe.Inthisexample,youarelookingataportionofthediscwithanareaof8.16mmx6.12mm=49.94mm2.

7. Processtheimages.Youonlyneedtoprocessoneimagebecauseyouradjustments

willbeappliedtoalltheotherimagesinthestack.SelectImage–Type–8bit.Allimageswillbetransformedtogreyscaleimages.

Page 5: 5 Simultaneous Analysis - VIRTUE

5

8. Improvethequalityoftheimagesforeasierthresholding.SelectImage–Adjust–Brightness/Contrast.Adjusttheslidebarstogetabrighterimagewithhighcontrast.Checktheotherimagesandtoseeifthequalityoftheseimageshasalsoimproved.(Atthispointyoudonotneedtopress“Apply”.Pressingitwillmainlychangethelookofthe“B&C”displayinthenextsteps.)

9. Thresholdtheimages.(Thisisnecessarybecausethenextoperationswillonlywork

onbinaryimages)SelectImage–Adjust–AutoThreshold.Awindowwillappear.Activate“Stack”anddeactivate“Whiteobjectsonblackbackground”(sincecurrentlywehavedarkobjectsonabrightbackground).SelecttheMethod“Default”.Click“OK”.Theimagesarenowleftinabinarymodewithblackandwhiteasonlyremainingcolours.Inaddition,thesetwocolourshavebeeninverted.(BlackwasdefinedasthebackgroundcolourinProcess-Binary-Optionsinstep2,andsotheprogramexpectswhiteareasastheobjectstoanalyse.)

Page 6: 5 Simultaneous Analysis - VIRTUE

6

Comparethethresholdedimageswiththeoriginalpicturesandcheckifalltheregionsyouwanttoanalysearenowwhiteagainstablackbackground.(Ifyouarerunningoutofspaceonthescreen,minimizethe6individualpicturesandrecallthemindividuallyfromtheWindowmenu.)

Page 7: 5 Simultaneous Analysis - VIRTUE

7

10. SelectAnalyze–SetMeasurements.Choose“Area”,“Limittothreshold”and“StackPosition”.Point“Redirectto:”tothenameofyourstack(inourexampleto“December”).Click“OK”.

11. Makemeasurements.SelectAnalyze–AnalyzeParticles.Adjustthesettingsto:

Size:0–Infinity.Circularity:0.00–1.00.(Thesesettingswilltakeallshapesandsizesintoaccount.)ChooseShow:Maskstogiveyouvisualfeedbackontheareasanalyzed.Activate:DisplayresultsandSummarize.Click“OK”.

12. Anewwindowwillaskifallimagesshouldbeprocessed.Select“Yes”.

Page 8: 5 Simultaneous Analysis - VIRTUE

8

13. SeveralwindowswiththeresultswillappearbutonlytheSummaryisofinterestforus.Intheexamplebelowthenumberof“particles”(i.e.whiteareas)analyzedineachofthe6imagesisgiven(redbox),aswellasthetotalareaofalltheparticlesineachimage(bluebox).

14. Calculatethetotalareacoveredbydiatomsonthedisc:

• Totalareaanalysed(TAA)=areaofoneimage×numberofimages=

=49.94mm2×6(seeStep6)=299.64mm2=2.996cm2

• Totalareacoveredbydiatomsintheimages(TAD)

=6.736+6.286+2.483+4.518+3.773+4.518=28.314mm2 =0.283cm2

• PercentageCoverinanalysis=(TAD÷TAA)×100=(0.283cm2÷2.996cm2)×100=9.45%

• Totalareaofthedisc(AD).

Wehaveadiscwithadiameterof8.5cm.Areaofthedisc=πr2,wherer=radius=diameter÷2=4.25cm

Areaofthedisc=3.1416×(4.25)2=56.75cm2• Extrapolatetheareacoveredbydiatomstothetotalareaofthedisc(TADD)

=(TAD÷TAA)xAD

=(0.283cm2÷2.996cm2)×56.75cm2=0.0945×56.75cm2=5.36cm2

v.012020 Contact:[email protected]