Anda di halaman 1dari 124

AtomicJ 1.6.

0
USERS MANUAL

February 2015

CONTENT
A. AtomicJ License agreement ............................................. 5
B. Installation and running ........................................ 5
C. Structure of the Main window .............................. 7
D. Viewing AFM recordings .......................... 9
1. Working with the Open files assistant ..................... 9
2. Raw data dialog ......................................................................................... 11
3. Force curves dialog ................................... 12
E. Force curve processing ..................................16
1. Working with the Processing assistant ......................... 16
2. Which settings to use? ............................................................................... 22
3. Partitioning force maps into multiple batches ........................................... 24
4. Sensitivity calibration ................................... 27
5. Manual selection of contact point ........................... 29
F. Working with the results of curve processing ................................31
1. Results dialog ..........................................31
2. Customizing result format. .......................... 34
3. Creating histograms ............................................. 35
4. Histogram dialog ..................................... 36
5. Creating box plots ......................................................................................38
6. Running statistical tests .......................................... 40
7. Descriptive statistics .......................................... 41
8. Recalculation .................................................. 43
9. Graphical results dialog ............................................................................. 43
G. Mouse actions on charts ............................................... 47
1. Normal mode .................................................... 47
2. Measure distance mode ............................................ 48
3. Extract profile mode ............................................ 49
2

4. ROI modes .............................................. 51


H. Customizing style of charts ................................................... 52
1. Working with Live chart style dialog .......................................... 53
a. Series editor .......................................................................... 54
b. Plot editor ..................................................... 54
c.

Axes editor .................................................... 55

d. Title editor ..................................................... 56


e. Scale bar editor ................................................... 57
f.

Legend editor ................................................ 58

g.

Chart editor ............................................... 59

2. Editing measurement style ............................................... 60


3. Gradient dialog ......................................................... 62
4. Editing color gradients ...................................... 63
5. Gradient range dialog .......................................... 64
6. Select gradient dialog ................................................................................ 65
I.

Saving charts to files ........................................66


1. Options for file formats ................................................ 66
2. Saving single charts ......................................... 72
3. Saving multiple charts ............................................. 73
4. Saving multiple stack frames ............................................. 75

J.

Working with images ................................................................. 76


1. Image dialog .................................................76
2. Making profiles ..................................................82
3. Selecting interpolation method for height profiles .............................85
4. Editing style of profile lines ........................ 86
5. Creating and modifying Regions of Interest (ROIs) .................. 87
6. Descriptive statistics for ROIs .......................... 89
7. Histograms for ROIs ................................................ 90
8. Box plots for ROIs ..................................................................................... 90
3

9. ROI Shape Factors dialog ................................................ 91


10. Editing style of ROIs ........................................... 92
11. Image processing ......................................... 93
K. Working with maps .................................... 96
1. Map dialog ........................................ 96
2. Recalculating force curves ................................. 97
3. Navigating to processing results ...................... 98
4. Generating stacks ...................... 98
5. Force contour mapping ........................ 100
6. Customizing map style ......................... 100
L. Working with stacks ..... 102
1. Stack dialog .............................................102
2. Saving stacks to files ..................................................... 103
3. Playing stack as a movie .................................... 103
4. Recalculating force curves ...................... 105
5. Navigating to processing results ........................ 105
6. Customizing stack style ................................... 106
7. Drawing histograms for stack ............................ 107
8. Displaying descriptive statistics ...................................... 107
9. Displaying raw stack data .................................. 108
10. Making cross-sections ............................. 108
11. Horizontal and Vertical cross-sections ............... 109
12. Flexible cross-sections .......................... 111
13. Selecting interpolation method for stack cross-sections ....... 113
14. Overlaying map profiles on stack cross-sections ........ 114
M. Appendix ...................... 115
1. How to open Windows Command Prompt ....115
2. Force-indentation relations........................................................................ 115
3. AFM file formats ........................................................................................ 123
4

Written by Pawe Hermanowicz


Faculty of Biochemistry, Biophysics and Biotechnology, Jagiellonian University,Poland
pawel.hermanowicz@uj.edu.pl
AFM recordings by Micha Sarna
Faculty of Physics and Applied Computer Science,
AGH University of Science and Technology,Poland

A. AtomicJ License agreement


(C) Copyright 2013-2015 by Pawe Hermanowicz.
AtomicJ is an application for analysis of Atomic Force Microscopy recordings, in particular
extracting mechanical properties from force curves and analysis of AFM images recorded on
biological samples.
AtomicJ is a non-commercial, open source application, licensed under the terms of the GNU
General Public License (GPL). The whole text of the license in distributed with the software.
Please note that AtomicJ is distributed WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
license for details.

B. Installation and running


1. Download AtomicJ on your computer. AtomicJ can be downloaded free of charge from
SourceForge (http://sourceforge.net/projects/jrobust/). There are two different
distributions available, for different operation systems:
a) 64-bit Windows (Windows XP, Vista, 7 and 8) this distribution contains
executable AtomicJ.exe file and is bundled with Java 7 Runtime Environment .
b) platform-independent distribution, containing runnable AtomicJ.jar file. It can
be run on all operation systems for which Java is available, among them
Windows, Linux and Mackintosh.
2. Unzip the downloaded files. Open the main directory.
3. Run the application. A. For the Windows distribution:
5

Click on the AtomicJ.exe file (right in the main application directory, icon with yellow
triangle on black background. You may want to create a shortcut on your desktop).
AtomicJ will be opened with the default run parameters it will use up to 3 GB of the
RAM. AtomicJ.exe may not open if there is not enough memory. In such case follow
steps in B.
If Java 7 or later is not installed on your computer, AtomicJ will be run with the Java
Runtime Environment included in the distribution. Java can be downloaded free of
charge from Oracle website:
http://www.oracle.com/technetwork/java/javase/downloads.
B. For the Platform independent distribution and Windows distributions:
Click on the AtomicJ.jar file (icon with a steaming cup of coffee). AtomicJ will open with
the default run parameters, which depend on the version of Java installed on your
computer. You may want to override those default settings, especially the maximum
memory available for application. To do so, run AtomicJ.jar from the command shell (for
Windows, see appendix How to Open Windows Command Prompt).
On the shell, set the current working directory to the AtomicJ directory (in Windows,
just go to the directory using the cd command) and run the command:
java XmxmemoryMaximumm -jar AtomicJ.jar
The value memoryMaximum is the maximal amount of memory (in megabytes) that
AtomicJ can use. For example, if you work on a computer with 8GB RAM and you want
to process at once several large force maps, you may use 7GB of memory, using the
following command:
java Xmx7000m -jar AtomicJ.jar
The recordings used in this manual are included in the test files, available at
https://sourceforge.net/projects/jrobust/files/TestFiles/AFMRecordings.zip. You will find there
force curves (collected on prostate cancer cells), as well as a force map and a corresponding
AFM image of fibroblasts. Simulated curves for different tip shapes can be downloaded from
https://sourceforge.net/projects/jrobust/files/TestFiles/SimulatedCurves.rar. The curves are
accompanied by .properties files, which contain information about the recording conditions and
processing settings. Those files can be read-in to AtomicJ before processing (see section E.1.
Working with the processing assistant).

C. Structure of the Main window


Graphical Interface of AtomicJ consists of the main window, a number of dialogs for displaying
results, and assistants which help users to accomplish complex tasks.
The main window (Fig. 1) appears immediately after the program is started and remains
accessible throughout the session. It is equipped with a menu bar and a toolbar. All options can
be accessed through the menus from the menu bar, while the most commonly used are also
included in the toolbar.
Toolbar options :
Process (Ctrl + P) (Fig. 1 a) lets you calculate mechanical properties from
force curves or maps.
Open (Ctrl + O) (Fig. 1 b) lets you open force curves (without calculating
mechanical properties) or images.
Force curves (Fig. 1 c) shows the Force curves dialog, where the charts with
force curves opened during the session are stored. This action is initially
disabled, as there are no charts to show.
Graphical results (Fig. 1 d) shows the Charts dialog, which stores charts
generated during processing of force curves and force maps. Initially
disabled.
Numerical results (Fig. 1 e) shows the Results dialog. Click to view or to
analyze the results of processing of force curves and force maps. Initially
disabled.
Images (Fig. 1 f) shows the Images dialog. Click to view or process the AFM
images that were opened during the current session. Initially disabled.
Maps (Fig. 1 g) shows the Maps dialog. Click to view and analyze the force
maps generated during the current session. Initially disabled.
About (Fig. 1 h) displays information about copyright and license

Fig. 1. Main window. The toolbar icons (a h) correspond to the commonly used options: a
process force curves and maps, b open curves or AFM images,

Menu options
The main menu bar contains three menus and can be navigated with either the mouse, or the
keyboard, using the mnemonics in the brackets:

File menu (Alt + F), containing three actions:

o
o
o

Open (Alt + O) (also in the toolbar)


Process (Alt + P) (also in the toolbar)
Exit (Alt + E) exits the application

Controls menu (Alt + C), containing nine actions:


o
o
o
o
o
o

Force curves action (Alt + V) (also in the toolbar)


Images (Alt + I) (also in the toolbar)
Maps (Alt + M) (also in the toolbar)
Graphical results (Alt + G) (also in the toolbar)
Numerical results (Alt + N) (also in the toolbar)
Preferences allows you to set the number of concurrent tasks
(Fig. 2). AtomicJ can run various tasks concurrently on multiple
processors or cores. Among concurrent tasks are processing of
force curves, generating stacks and cross-sections, as well as
reading in and saving files.

Help menu (Alt + H), containing three actions:

o About (Alt + A) (also in the toolbar)


o Manual (Alt + U) opens the manual you are now reading.
Ask a question (Alt + Q) lets you send a mail to the AtomicJ developers.
8

Fig. 2. Preferences dialog lets you specify the maximum


number of processors or cores used by AtomicJ for parallel
processing. AtomicJ is a concurrent application, it can break
larger task into multiple subtasks that are run concurrently
on separate processors. It uses concurrency to process force
curves, read in and save files, generate stack frames,
calculate stack cross-sections and to create charts. All these
tasks are faster if more processors are used.

D. Viewing AFM Recordings


D.1. Working with the Open files assistant
AtomicJ can open and process different types of AFM recordings, in particular:

Single force curves - the recordings of force acting between the sample and the
cantilever tip when it is pushed into the sample and then withdrawn.
Force volume recordings (or force maps)- multiple force curves recorded in a grid. The
grid is specified over the sample and force curves are recorded in each node of the grid.
Flexible force curves recordings - multiple force curves recorded on the sample at
arbitrary points.
Images obtained by scanning the sample. The images usually consist of different
channels, for example sample topography, friction or error signal.

All these types of AFM recordings can be viewed with the Open files assistant (Fig. 3). It can be
accessed from the Main Window with the shortcut Ctrl + 0, or through the toolbar icon

Fig. 3. The Open files assistant allows you to


view all types of AFM recordings. New files can
be read in (a, Add button) from the hard disk
and then opened (a, Preview button). The
assistant also allows you to view the raw data
for the read-in files or to open them in the
default, external application.

or the main menu (go to File (Alt + F) Open). It lets you read in and open multiple AFM
recordings, possibly of different types. The files that you read in to the Open files assistant are
displayed in the list in its center (Fig. 3).
You can read in or delete files to open with the buttons (Fig. 3 a) and the context menu (b):

to read in a new file, click the Add button (Alt + A). A standard file dialog will be
displayed. It is important to select the right type of AFM files (Fig. 4 a). You do not need
to add all files one by one. If you select a directory, all files of the right type in this
directory and its subdirectories will be automatically read in and added to the list.

Fig. 4. The file dialog allows you to


find the files with the AFM recording
that you wish to view. Please
remember to select the correct file
type (combo box a).

to clear all files, click the Clear button (Alt + R).


to delete a single file, select it in the list, clicking on it with the left mouse button, then
press the Del key.
to delete multiple files, select them in the list, clicking on them the left mouse button
while holding down the Ctrl key, then press Del key.

You can open all read-in files or just the ones that you selected in the list.

to open all AFM recordings in the list, click the Open button (Alt + P).
to open some of the AFM recordings, select the corresponding file names in the list then
move the mouse over the selected files and click the right mouse button. The context
menu (Fig. 3 b) will appear, click Open.

Any number of files can be selected in the list:

to select a single file, click on it with the left mouse button.


to select a range of files, click the first file and then the last file, while holding down the
Shift key.

10

to add new files to the selection, hold down the Ctrl key and click the new files with the
left mouse button.
to select all files, use the shortcut Ctrl + A.

The force curves are plotted in the Force curve dialog (subsection D.3. Force curve dialog). All
individual curves from force volume recordings or flexible force curve recordings are plotted in
the Force curve dialog, too. If you wish to generate maps of mechanical properties from these
recordings, you need to process them see the section E Force curve processing. AFM images
are plotted in the Image dialog for details see the section J. Working with images.
The files can be also opened in the default application, associated with their extension by your
Operating System. This may be useful when you want to view the files in your AFM application
before processing in AtomicJ. To open files in the default application, select them in the list,
then click the selected files with the right mouse button. The context menu (Fig. 3 b) will
appear, click Open in default application.
The Open files assistant allows you to display the raw data that make up the AFM recordings.
This may be useful, for example, when the original recordings are saved in the binary form. To
display the raw data, select the files of interest in the list, then move the mouse over the
selected files and click the right mouse button. The context menu (Fig. 3 b) will appear. Click
Raw data. The raw data will be displayed in a separate dialog (Fig. 4).

D.2. Raw data dialogs


The Raw data dialogs (Fig. 5.) displays numerical data, for example, the coordinates of points of
the read-in force curves, a matrix of image values or a sample displayed in a histogram. The
dialogs contain a central tabbed pane with tables. Each distinct collection of numerical data (ex.
a force curve in Fig. 5) is displayed in a separate table, under its own tab.

Fig. 5. Raw data displayed for nine


force curves. They consist of a list of
coordinates for approach and
withdraw branches of the curves.
These data can be printed or saved
to a file (CSV or TSV).

11

The Raw data dialogs are equipped with a main menu bar (Fig. 5 a) and a set of buttons (b) that
allow you to print, save to a file or customize the data in the tables:

to save the currently displayed table to a file, press Ctrl + S or go to File (Alt + F) Save
(Alt + S) or click the Save button (Fig. 5 b). A file dialog will be displayed, which allows you
to choose where the table should be saved and in which format (TSV or CSV).

to print the currently displayed table, press Ctrl + P, or go to File (Alt + F) Print (Alt + P),
or click the Print button (Fig. 5 b).

to change the number format, go to Customize (Alt + U) Format data (Alt + F). The
Customize number format dialog will be displayed (Fig. 22). It lets you specify the number
of decimal fraction digits and the decimal separator used in the statistics tables.

to change the units, go to Customize Select units.


D.3. Force curves dialog

Anytime you open a force curve file, a chart is generated in the Force curves dialog. This is a
prototypical dialog for displaying charts, as more complicated dialogs in AtomicJ inherit its basic
structure. We will discuss it in greater detail and skip the redundant information in discussions
of more complex dialogs.
Force curves dialog consists of a main menu bar (Fig. 6 a), a set of buttons (b) for the most
commonly used actions, a central split pane, with the list of force curves on the left (c) and a
panel displaying the corresponding chart on the right (d).
The main menu bar contains of four menus:

File menu (Alt + F), containing nine actions:


o
o
o
o
o

Open (Ctrl + O) opens new force curve files.


Process (Ctrl + P) lets you calculate mechanical
quantities from the force curves displayed in the dialog.
Save (Ctrl + S) saves the currently displayed charts
Save all (Ctrl + Shift + S) opens the Batch save dialog.
Click this to save all the charts stored in the dialog
Open in dialog (Ctrl + O) opens the currently displayed
chart in a new dialog

12

o
o
o

Chart menu (Alt + C), containing two actions:

Open all in dialog (Ctrl + Shift + O) opens all the charts for the current sample in new
dialogs
Clear clears all the charts
Close closes the dialog

o Live chart style (Ctrl + L) opens a dialog where you can


modify chart style, the Live chart style dialog (see section
H.1. Working with Live chart dialog). Click to modify the
way the force curves are plotted.
Raw data opens a raw data dialog (see the section D.2. Raw data dialog), containing
the coordinates of points for the selected force curves.

Measure menu, containing three actions:


o

Measurement style opens a dialog for editing the style with which the
measurement lines are drawn.
o Measurements opens a dialog with the detailed
information about each measurement line you drew on
the currently displayed chart.
o Measure distance changes the way the mouse clicks are
interpreted by the chart. If this action is switched on
(when a tick-mark is visible), you can add a new
measurement line with mouse clicks.

Clear, Save all and Close options can be also accessed via buttons in panel b.

Preprocess menu provides many preprocessing procedures, that can be applied to all
force curves stored in the Force curve dialog, or just to the selected ones. The menu also
includes options for undoing and redoing the previous preprocessing operations.
o

Crop lets you crop the ends of the force curves. A


dedicated dialog (Fig. ) lets you specify whether all
curves should be cropped, or just the ones which are
selected (a). You can also restrict the operation to the
selected curve branches (ex. approach or withdraw)
(b).
All preprocessing dialogs have similar structure.

13

Translate lets you shift the curves in the x- or ydirection.

Median lets your smooth the curves (i.e. remove noise)


using median filter with arbitrarily-sizes window.

Weighted median lets your smooth the curves using


the median filter with different weights assigned to
different positions in the filter window. If a weight
equals n, then the corresponding point is repeated n
times in the set used for median calculation. The
regular median filter is a special case of weighted
median filter, with all weights set to 1.

Gaussian lets you smooth the force curves using Gaussian filter, with user-specified
standard deviation.

Savitzky Golay lets you smooth or differentiate the force curves, using Savitzky Golay filter. The filter is usually applied to regularly spaced points. If the spaces
varies, AtomicJ will use linear interpolation to produce regularly spaced points before
applying Savitzky-Golay filter.

Local regression lets you smooth or differentiate the force curves, using robust local
regression procedure with tricube weights. More details can be found in the original
paper: Cleveland, W. S. (1979). Robust locally weighted regression and smoothing
scatterplots. Journal of the American statistical association, 74(368), 829-836.

Convolve lets you convolve the force curves with a kernel of arbitrary size and
elements. Convolution can be used for example to smooth or to differentiate the
curves. If the curve points are not regularly spaced, AtomicJ will use linear
interpolation to produce regularly spaced points before applying convolution.

The list of force curves is equipped with a context menu (Fig. 6 e), triggered by right mouse click.
The context menu contains eight actions:

Process allows you to calculate mechanical quantities from the currently selected force
curves.
Raw data (the same as in the main menu)

14

Save selected opens the Batch save dialog, which will help you to save the charts for the
currently selected force curves.
Short names toggles between short names (usually filenames) and long names (usually
full paths) of force curves
Change font opens a font selection dialog. Click to change the font style or color of the
items in the list
Open all in dialogs (Ctrl + Shift + O) (the same as in the main menu)
Open in dialogs (Ctrl + O) (the same as in the main menu)
Delete deletes the selected force curves. Del key acts the same.

Fig.6. Force curves dialog.


This dialog stores charts of
the previewed force curves.
The list of the curves (c)
allows you to navigate
between charts (d).

15

E. Force curve processing


E.1. Working with the Processing assistant
Processing assistant is the most important assistant (or wizard) in the application, as it is the
entry point for processing of all types of indentation recordings. This is where the force curves
or maps are chosen, the parameters of analysis are specified and where the actual computation
is triggered. The assistant ensures that the necessary parameters are specified in the right order
and within the correct range. It consists of two pages, the first one is for selection of the data
for analysis, the second one is for specification of how the analysis should be performed. The
assistant allows you to create an arbitrary number of batches, each with different processing
settings.
To display the Processing assistant, click on the cog-wheel icon
in the main window
(Fig. 1 a). The assistant will pop up, displaying its first page, which is initially empty (Fig. 7).

Fig 7. Processing assistant


displaying its first page. This page
allows you to select the force
curves and maps which are to be
analyzed in the current batch. The
label on each button has one
character underlined. Pressing Alt
+ underlined character triggers the
corresponding action, provided
that the button is not greyed out.

The main elements of the first page are shown in Fig. 8:


a) The current task (Fig. 8 a).
b) The index number of the current batch (Fig. 8 b). Subsequent batches will have this
number incremented.

16

c)

The buttons for selection of the data for analysis (Fig. 8 c). They allow you to add new
files with force curves or maps, clear the files that have already been added, as well as
to plot and preprocess the curves (Preprocess button) to verify and improve their
quality. The Patchwork button lets you choose curves from a force map that should
be included in the current batch based on an AFM image. It also lets you partition a
force map into multiple batches. For more details on partitioning curves from a single
force map into multiple batches, see section E.2. Partitioning force maps into multiple
batches.

d) The navigation buttons (<<Back, Next>> and Finish) (Fig. 8 d) for navigating between
different pages of the assistant.
e) The list of curves already added to the batch, equipped with a context menu,
triggered by the right mouse button (Fig. 8 e). The context menu includes options for
displaying the raw data for selected curves (see the section D.2. Raw data dialog),
previewing, opening and deleting selected curves from the batch.

Fig 8. The first page of Processing


assistant. The force curves have
been added to the current batch.

The parameters of the analysis are specified in the second page of the processing assistant. The
settings specified in this page can be saved to a file, with the Export button. The saved settings
can be then read in with Import button, for example to speed up input processing settings for
subsequent batches.
The second page of the Processing assistant consists of three tabs General, Advanced
and Output. The General tab (Fig. 9) allows for input of the mandatory settings:

Batch name (subpanel a in Fig 9). The default name is the current batch index.
17

The method of contact point estimation whether the search for contact point should
be manual or automatic, and if automatic, which estimator should be used (panel b)
The estimator used for fitting the contact mechanics model to force-indentation data
(panel b)
The shape and size of the AFM tip used to collect the force curves. Contact models for
different shapes are implemented :
1. Cone
2. Sphere (Hertz's approximation)
3. Sphere (Sneddon's solution)
4. Fungs (hyperelastic material, sphere)
5. Ogdens (hyperelastic material, sphere)
6. DMT (model of adhesive contact, sphere)
7. JKR (model of adhesive contact, sphere)
8. Maugis (model of adhesive contact, sphere)
9. Pyramid
10. Power-shaped (shape obtained by revolving a power function along the y axis)
11. Hyperboloid
12. Hyperboloid (Suns model of adhesive contact)
13. Blunt cone
14. Blunt pyramid
15. Truncated (i.e. flat - ended) cone
16. Truncated pyramid (Fig. 9, panel c)

Depending on the shape, you will have to specify tip radius (radius of curvature at the
apex), half angle and transition radius (see tip sections in the Appendix M.2.). For blunt
tips, the value of transition radius that ensures smooth merge between spherical cap
and the tip body can be calculated automatically click the
button.
Poissons ratio of the sample (panel d).
The method of calculating energy of adhesion (panel d). Energy of adhesion can be
calculated from the adhesion force directly measured on the chart (option Calculate
from fit) or treated as a fitting parameter (option From fit) This action is enabled only if
the selected model of indentation takes into account adhesive interactions.
The degree of the polynomial fitted to the off-contact region of a force curve (panel e)
The spring constant of the cantilever and the optical lever sensitivity (panel f).
Sensitivity has to be specified only if the deflection values are provided as raw
photodiode output. Otherwise this field will be greyed out. Sensitivity is used to
convert voltage into deflection expressed in microns. It can be calculated based on a

18

force curve recorded on a clean, rigid substrate (i.e. mica), with the help of the
Calibration dialog (Fig. 14).

Fig.9. The second page of the


Processing
assistant.
The
general tab is visible. Here you
can specify how the curves
should be processed.

The Advanced tab (Fig. 10) allows for input of the optional settings:

Fig. 10. Second page of the


Processing assistant. The Advanced
tab is visible. It allows you to specify
preprocessing - how the curves
should trimmed (a) and smoothed
(b), and to specify the maximum load
or depth of indentation (c) that can
be used to calculate mechanical
properties. For thin samples, you can
choose to correct the bottom effect
(d), i.e. effect of a rigid substrate on
the apparent stiffness of a thin
sample. Bottom effect corrections
are available for spherical and
conical tips.

19

The extent of cropping how much of the extreme parts of the raw force curves should
be cropped (panel a in Fig. 10). You can either:
a)
b)

fill in the fields in the panel a;


or use the Cropping dialog (Fig. 11), which lets you specify cropping on the chart,
by dragging markers with the mouse. The Cropping dialog is displayed with the
Select button.

Fig. 11. Cropping dialog.


Parts of the force curve
outside the range and
domain interval markers
(area in blue) are cropped.
Drag the limits of intervals
with mouse to modify the
extent of trimming.

The maximal indentation or maximal load (panel c in Fig. 10). If these parameters are
set, parts of the force - indentation curve above the specified maximal values are
rejected.
Smoothing filter (panel b in Fig. 10). Two low-pass filters are available:
a)

Local regression.
Two parameters have to be specified:
Span determines what fraction of points closest to the current point is taken into
account for calculating local linear least-squares fit. Larger span ensures better
removal of noise, but smaller features may be lost or distorted.
Iterations determine how many robustness iterations should be performed.
Robustness iterations use residual from previous fits to calculate weights for new
least square fit. The greater the number of iterations, the better filters resistance
against outliers.

b)

Savitzky Golay filter


Two parameters has to be specified:
20

Half width determines the number of points to the left and to the right of the
current point that are included in the moving filter window. Larger half width
ensures better removal of noise, but smaller features may be lost or distorted.
Degree determines the degree of the polynomial fitted to the points within the
moving window. Higher degrees ensure that higher moments of data are preserved.

Bottom effect correction (panel d in Fig. 10). Bottom effect is the effect of the rigid
substrate on the apparent stiffness of the sample. Thin samples on rigid substrates
appear stiffer than they really are. You can specify the thickness of the sample either as
an absolute value, or choose a topography image (discussed below). The correction
depends on whether the sample is bonded to the substrate or not (checkbox
Adherent). The corrections are available for two tip shapes: cone and sphere.
Using topography for bottom effect correction: If you recorded the topography image
of your sample, AtomicJ can use it to find the thickness of your sample in the positions
where the curves where recorded. You should:
1. select the Use topography checkbox, then
2. click the Browse button. The Sample topography assistant will be displayed. It
lets you select the image file, choose the topography channel (ex. trace or
retrace) and select the sample on the image (Fig. 12). Topography images are
often affected by various artifacts, so you will usually need to correct them
using the options accessible through the context menu (Fig. 12 c) Thickness of
the sample will be read directly from the corrected topography image.
If a force curve file does not contain information about the recording position, the
application will assume that the sample was of infinite thickness, unless you have
specified explicitly the thickness in the Thickness field (Fig. 10 panel d).
Fig. 12. Sample topography
assistant, displaying the Correct
topography page. This page
allows
you
correct
the
topography image, so that the
height of the sample can be read
from it for during force curve
processing. Image correction
actions can be accessed from the
context menu (c) and applied to
selected Regions of Interest
(ROIs). To select the sample on
the image (b) as ROI use the
buttons in panel a. For more
information on selecting 21
ROIs,
see section G.4. ROI modes.

The Output tab (Fig. 13) lets you choose what kind of processing output should be generated.
You can specify:

which curves to plot in the output (Fig. 13 a) and whether model fits should be also
drawn.
whether a force map should be generated. (Fig. 13 b, checkbox Include in maps). This
option is enabled only if it is possible to generate the force map, i.e. at least some of the
curves within the batch contain information about their position on the sample.
whether the image of the sample should be read-in alongside force curves (Fig. 13 b,
checkbox Plot map area scans). This option is enabled only if the file with curves contains
image data or specifies another accessible image file.

By default, three charts are generated for each curve. For larger sets of curves, this may result in
large consumption of memory. 4 GB of RAM is enough to draw around 30 000 - 60 000 charts,
depending on the size of curves.

Fig. 13. By default, AtomicJ


generates three charts for each
force curve. It plots the force
curve itself, the force-indentation
curve and pointwise modulus
indentation curve. Each of these
curves is drawn together with the
fit of the indentation model. You
can override this behavior in the
Output tab of the Processing
assistant

E.2. Which settings to use?


Proper specification of the processing settings is crucial for obtaining high quality results.
Processing settings influence the estimates of material properties both directly and indirectly,
through the contact point estimates. Automatic contact point estimators implemented in
AtomicJ can handle large sets of force curves and are robust against various artifacts in the force
curves. Manual estimation of contact point can be used for small sets of curves. In case of large
22

sets of very poor force curves, it may be advisable to compare the results obtained with the
automatic and manual estimation, for a small subset of curves.
The quality of the automatic contact point estimates depends on how close is the modeled
force indentation relation to the true relationship. There are several sources of discrepancies
between model and reality in AFM indentation experiments. Analyzing force curves, we usually
assume that the sample is linear elastic, i.e. that the relationship between stress and strain is
linear. This assumption is usually satisfied if the indentations are small relative to the sample
thickness. If you suspect that at least some curves may exceed the limit of linear elasticity, you
may use robust estimators to fit model to data (LTS, LTA, HLTS or HLTA). Robust estimators will
reject the parts of force indentation data that grossly deviate from the model. Apart from the
material properties of the sample, force indentation relation depends on the tip shape and the
thickness of the sample (for equations, see Appendix M.2. Force - indentation relations.) If the
sample is thin, the cantilever feels underlying, rigid substrate, which leads to overestimation of
Youngs modulus. Fortunately, corrections for this effect are known for indentation with
spherical (Dimitriadis et. al 2002) and conical tips (Gavara and Chadwick 2012). These
corrections are implemented in AtomicJ.
The degree of a polynomial fitted to the off-contact may influence estimation of the contact
point. A straight line (i.e. degree 1) can be fitted if the off-contact parts of the force curves in
the batch are linear. However, the off-contact parts of force curves often exhibit some
curvature, so fitting a polynomial of degree higher degree usually works better. For single curves
polynomial of degree 2 is often optimal. Curves in force maps may exhibit more artifacts in the
off-contact part. In such cases you may consider fitting of a polynomial of degree 3.
The Poissons ratio is a property of the sample it tells how big lateral contraction (or
expansion) will accompany axial stretching (or compression). In principle, in order to obtain
accurate results of analysis, the correct value of Poisons ratio for our sample has to be
measured independently. However, biological samples are often assumed to be incompressible,
i.e. that their Poissons ratio is 0.5 (for example Radmacher 1996, Mathur 2001). Although
overestimation of Poissons ratio leads to underestimation of Youngs modulus, this error is
relatively small. In the extreme case, when you mistake a compressible sample (Poissons ratio
0) for an incompressible (0.5) one, Young's modulus is reduced by 25 %.
The spring constant of the cantilever has to be measured in order to convert cantilever
deflections into forces. Various methods of measuring cantilevers spring constant have been
described (Burnham et al 2003). Automatic measurement of spring constant usually can be
performed with programs operating AFMs. Overestimation of cantilver spring constant leads to
overestimation of Youngs modulus.

23

Burnham NA, Chen X, Hodges CS, Matei GA, Thoreson EJ, Roberts CJ, Davies MC, Tendler SJB (2003) Comparison of
calibration methods for atomic- force microscopy cantilevers. Nanotechnology 14: 1 - 6.
Dimitriadis EK, Horkay F, Maresca J, Kachar B, Chadwick RS (2002) Determination of elastic moduli of thin layers of
soft material using the atomic force microscope. Biophys J 82:27982810.
Gavara N and Chadwick RS (2012) Determination of the elastic moduli of thin samples and adherent cells using
conical AFM tips. Nat Nanotechnol. 7: 733736.
Radmacher M., Fritz M., Kacher CM., Cleveland JP, Hansma PK (1996) Measuring the Viscoelastic Properties of
Human Platelets with Atomic Force Microscope. Biophys J 70 : 556 567.
Mathur AB, Collinsworth AM, Reichert WM, Kraus WE, Truskey GA (2001) Endothelial, cardiac muscle and skeletal
muscle exhibit different viscous and elastic properties as determined by atomic force microscopy. J Biomech 34
(12): 1545 1553.

E.3. Partitioning force maps into multiple batches


Force maps usually contain regions with very different mechanical properties. Often they
contain both curves collected on the sample and on the rigid substrate to which the sample is
attached. Also the sample itself may be heterogeneous. Animal cells often exhibit huge
heterogeneity, for example the properties of cell body are different from the properties of thin
lamellopodia. There are many reasons for this heterogeneity, among them differences in
cytoskeleton, in the strength of adherence to substrate and differences in thickness.
AtomicJ offers multiple ways to deal with this variation. You may try several approaches:
1. setting the upper limit on the depth of indentation (Fig. 10 c). Any larger indentations
will be discarded from the force indentation data.
2. setting the upper limit of the applied force (Fig. 10 c). Any larger forces will be discarded
form force - indentation data.
3. using robust estimators (HLTS, HLTA, LTA or LTS) (Fig. 9 b) for fitting the model to force
indentation data. Robust estimators will automatically discard the parts of forceindentation data that significantly deviate from the assumed model, usually the large
indentation parts.
4. using the modified models for spherical or conical tips which take into account finite
sample thickness, especially if you have a topography image which can be used by
AtomicJ to find samples thickness in different locations (Fig. 10 d, Fig. 12).
You may use all this approaches together or any combination of them. You can also use
different approaches for different parts of a force curve. To do so, you need to partition a force
map into several batches of curves, using the Partition force map assistant (Fig. 14, Fig. 15, Fig.
16). This assistant can be opened from the Processing assistant (for details on using Processing
assistant, see section E.1. Working with the Processing assistant):
to open Partition force map assistant, add a force map to the Processing assistant, then
click the Patchwork button (Fig. 8 c)
24

The Partition assistant consists of


three pages. A panel of buttons
allows you to navigate between pages
(Fig. 14. c). The first page allows you
to choose the file (Fig. 14 b) which
contains AFM image of the area of
force map. Please remember that the
scan area must match the area of
force map.

Fig. 14. The first page of the Partition force map assistant,
which allows you to select the AFM image of the force map
area.

Fig. 15. The second page of the Partition force map


assistant. In this page you select the channel that you will
use to draw regions (here called patches) corresponding
to different batches

to choose an image file, click the


Browse button (Alt + R).
to preview the chosen image, click
the Preview button (Alt + P)

The second page of the assistant (Fig.


15) allows you to select one image
channel among those read in from
the image file you chose. Later, you
will use this channel to draw the
regions (or patches) corresponding to
different batches.
The third page (Fig. 16) allows you to
select areas (here called patches)
corresponding to different batches.
A single patch may consist of several,
possibly disjoint, Regions of Interest
(ROIs, for details on how to draw
ROIs, see section J.5. Creating and
modifying Regions of Interest (ROIs)).
ROIs belonging to the same patch are
drawn with the same color.

25

Using the buttons in Fig. 16 a you can


switch between different ROI shapes:
1. polygonal
2. rectangular
3. elliptical
4. arbitrary shape

Fig. 16. The third page of the Partition force map


assistant. Here you should select the patches
corresponding to different batches. Patches are
composed of ROIs of different shapes, you can change
the shape using buttons in a. The number of patches is
unlimited, you can use buttons in c to navigate between
them.

You may also draw a ROI which


includes whole image except the
selected area. This mode is working
when the Draw hole button
I
is selected. For example, if
if
you choose
rectangular
.
ROI and select the Draw hole button,
you can select all image except the
rectangle you drew.

Every patch may consist of an


unlimited number of ROIs. Also the
number of patches is unlimited.
You can create new batches and navigate between the existing ones using the buttons in Fig. 16
c. When you move to the next patch, the ROIs belonging to other patches remains visible and
you can still modify them. However, the newly drawn ROIs will be added to the current batch.
Once you selected all patches, click the Finish button (At + F). If you have not covered the image
completely with patches, AtomicJ will ask you whether the curves not included in any patch
should be discarded, or whether a new batch should be created for them (Fig. 17). This means
that when you want to partition a force map just into two patches, you really need to draw just
one of them, and the curves outside it can be automatically added to another batch. You may
also discard these curves, for example when you want to remove from the map the curves
collected on a rigid substrate.

26

Fig. 17. When some curves are not included in any of the selected patches, AtomicJ will ask you whether a new
batch should be created for these curves.

The third page of the Partition force map assistant also allows you change the style of ROIs for
the current patch, as well as to calculate the statistics, shape factors (i.e. area) and to draw
histograms for the selected ROIs. These actions can be accessed from the context menu. To
display the context menu, move the mouse over the image chart and click the right mouse
button.
E.4. Sensitivity calibration
Usually, cantilever deflection is measured with the optical lever technique. Force curves are
recorded as a relationship between voltage generated in the photodiode and the position of the
cantilever. Before processing, voltage should be multiplied by the optical lever sensitivity in
order to convert it into cantilever deflection. Optical lever sensitivity tells how much voltage
corresponds to a unit of deflection. It can be determined based on calibration curves, i.e. curves
recorded on a hard substrate (ex. mica) with the help of the Calibration dialog (Fig. 18).
There is no upper limit on the number of calibration curves you can use. If multiple curves are
used, the Calibration dialog will calculate average sensitivity. The Add button allows you to
choose new calibration curves from your computer file system. You have to choose at least one.
The newly chosen curves will appear in the list (Fig. 18 a). For each calibration curve, select the
range for calculation of the optical lever sensitivity (b). The range should encompass the linear,
in-contact part of the curve. The limits of this range can be dragged with mouse. The sensitivity
is the inverse slope of approach part of the curve.
Fig. 18. Dialog for calculation of the
optical lever sensitivity. Multiple
force curves can be used for
calibration (a), average sensitivity is
then calculated (c). The calibration
is done based on the part of the
approach curve within the blueshaded area (b), whose bounds can
be modified with the mouse. The

current sensitivity, the average


sensitivity and the number of
curves used for calibration so far
are displayed in panel c. The
average sensitivity will be used
for force curves processing.
27

The navigation buttons (Fig. 18 d) allow you to commit you selections or to move to other
curves. Click Apply to commit sensitivity calculated from the current curve and range, Skip to
move on to the next curve, Finish to finish calibration (current average sensitivity will be used
as the final result) and Cancel to cancel calibration no result is returned. The Clear button (Fig.
18 a) discards all calculated values (you may choose new set of calibration curves and repeat
calibration).
TIPS!
You can choose all calibration curves from a single directory at once just select the
directory and AtomicJ will read in all force curves in this directory.
You can choose a force map and use the curves recorded on hard substrate as
calibration curves click Substrate button to select the rigid substrate on an image.
You can skip a low quality calibration curve click Skip without clicking Apply.
You can zoom-in the in-contact part of the calibration curve.

28

E.5. Manual selection of the contact point


Contact point can be selected manually or semi-manually with the Contact point selection
dialog (Fig. 19).

Fig. 19. Dialog for manual determination of the contact point position.

To specify contact coordinates, you can either:

select the contact point with a left mouse click on the chart a and adjust its position
dragging it with the mouse. The current coordinates of the contact point are displayed
in the fields d.
enter the coordinates in the fields d. The contact point appears on the chart, where it
can be repositioned.

You can choose whether to use both or just a single coordinate of the selected contact point,
using the radio buttons e. In the latter case, the missing coordinate is found automatically. For
example, if you specify the Y coordinate to be 100 nN, the application will find the point on the
curve closest to 100 nN. Please remember that the force values are calculated from raw
photodiode readings, so they are shifted by a constant corresponding to the voltage signal
generated by the laser bounced off the unengaged cantilever.
You can preview what will be the results of processing if you apply the current contact selection.
The Live preview dialog (Fig. 20, you can display it with the button c) shows Youngs modulus
and transition indentation corresponding to the current contact point position, together with
the force-indentation and pointwise modulus curves. It gets instantly updated when you move
29

the contact point (ex. dragging it with mouse). This dialog can be used to demonstrate the
importance of proper selection of the contact point.
Once you have chosen the right point, you can apply it with the Apply button (Fig. 19 panel f).
The Apply to all button applies the current coordinates to all remaining curves. This is useful for
fast, cursory analysis, for example, of curves collected in a single location. The Skip button
allows you to skip the low quality curves that should not be included in the analysis.

Fig. 20.Live preview of the force indentation and pointwise modulus indentation curves, generated
based on the contact point selected manually.

30

Working with the results of curve processing


F.1. Results dialog
Numerical results of processing of force curves are displayed in the Results dialog. It is equipped
with a menu bar (Fig. 21 a), a toolbar (b) and a set of buttons (c). All options can be accessed
through the menus from the menu bar, while the most often used ones are also accessible from
the toolbar or via buttons.

Fig. 21. Results dialog.


Toolbar options:
Show histograms (Alt + W) opens the Histograms dialog, which stores all
histograms generated from the processing results in the current session. It is
initially disabled, as there are no histograms to show.
Pooled histogram (Alt + O) lets you generate a histogram for all the batches
combined.

31

Batch histograms (Alt + B) lets you generate a separate histogram for each
batch.
Descriptive statistics (Alt + D) opens the Live results statistics dialog. Click to
view mean, median, variance and other statistics for all batches and pooled
results.
Show box plots opens the Box plots dialog, which stores all box plots generated
from processing results in the current session. It is initially disabled, as there are
no box plots to show.
Add box plots (Alt + X) opens the Box plots assistant. Click to generate box plots
for selected subsamples of processing results.
Inference (Alt + I) opens the Statistical inference assistant. Click to test
hypotheses about means of arbitrary subsets of results.
Recalculate opens the Recalculate assistant (see section F.8. Recalculation).
Mark on the maps marks the position corresponding to the selected entries on
maps of the mechanical quantities
Menu actions:
The menu bar consists of four menus and can be navigated with the mouse or using keyboard
mnemonics in brackets:

File menu (Alt + F), containing four options:


o
o
o
o

Save (Alt + S, Ctrl + S) saves the results to a text file selected by


the user (available formats: CSV, TSV)
Print (Alt + P, Ctrl + P) prints the results
Clear (Alt + R) clears the results.
Close (Alt + C) hides the Results dialog. Use the main frame
toolbar to redisplay it.

Histograms menu (Alt + H), containing three options:

32

o
o
o

Box plots menu, containing two options:


o
o

Show box plots (also in the toolbar)


Add box plots (Alt + X) (also in the toolbar)

Statistics menu (Alt + T), containing two options:


o
o

Show histograms (Alt + W) (also in the toolbar)


Pooled histogram (Alt + O) (also in the toolbar)
Batch histograms (Alt + B) (also in the toolbar)

Descriptive statistics (Alt + D) (also in the toolbar)


Inference (Alt + I) (also in the toolbar)

Customize menu (Alt + U), containing two options:


o

o
o

Format data (Alt + F) opens the Customization dialog. Click


this to change the way results are displayed, for example to
change the decimal point or the number of decimal places.
Select units lets you change the units for each column.
Change visibility (Alt + V) lets you hide or redisplay columns
in the result table.

Clear, Save, Print and Close actions can be also accessed through the respective buttons in the
button panel (Fig. 21 c).
The results are displayed in a table (Fig. 21 d). Each row corresponds to one force curve. The
table contains the calculated values of Young modulus, coordinates of the contact point,
transition indentation, transition force, adhesion force, the most important processing settings
spring constant, optical lever sensitivity, tip shape and the batch name. The format of the
data in the table can be customized via the customize menu (see above).
Individual or all rows of the result table can be selected. You can select multiple rows:

to select non-contiguous rows, right-click with the mouse while holding down the Ctrl
key
to select a range of contiguous rows, click the first row and then the last row, while
holding down the Shift key
33

to select all rows, press Ctrl + A.

The results dialog is equipped with a context menu (Fig. 21 e). It contains options which are
performed on the currently selected rows:

Copy (Ctrl + C) copied the rows to the clipboard. The rows can be pasted to other
applications, including MS Excel.
Select all (Ctrl + A) selects all rows in the table
Jump to graphs shows the corresponding charts in the Graphical results dialog, if they
are available
Recalculate opens the Processing assistant. Click to recalculate the curves corresponding
to the selected rows. New results are added to the table, the old ones stays.
Recalculate and replace acts as Recalculate, but deletes the old results
Selection histogram opens the Histogram assistant. Click to generate a histogram for the
selected rows.
Selection statistics opens a dialog displaying statistics for the selected rows.
Delete deletes the selected rows.
F.2. Customizing results format

Format of the results can be modified with the Customize results table dialog (Fig. 22). It allows
you to change the number format, in particular:

Fig. 22. Dialog for customizing the format used in the


Result table. It allows you to set the number format
and specify, whether short or long (i.e. whole paths)
names of force curve files should be displayed,

the number of fraction digits


whether trailing zeros should be
shown
the decimal separator (dot or
comma)
the thousand separator (space,
comma, dot or apostrophe).

In addition, the dialog allows you to


choose whether to use short or long name
of the source file (the file which contains
the curve). Short name is usually just the
filename, long name is the whole path.

34

Each change to the format of results is saved as the applications default settings (in the registry
in the case of Windows), so you do not have to customize it again the next time you run
AtomicJ. The format is also preserved when results are saved to a text file.
F.3. Creating histograms
You can produce histograms of the results with the help of the Histogram assistant, which
gathers all the necessary settings. It consists of a variable number of pages that depends on the
number of samples to be plotted. If multiple samples are available, the first page (Fig. 23 left)
allows you to select which of them should be plotted. The next pages are the binning pages (Fig.
23 right), one page for each sample. If there is just one sample (ex. when you plot pooled results
for all batches), the assistant consist of a single binning page (Fig. 23 right).
In the binning page each histogram should be named (panel a). You can choose the binning
manually (filling either the bin width or bin count field), or use an automatic binning method
(panel b), one of the following:

Sturges k log2 n 1

Scotts h

Square root k n

the Freedman-Diaconis h

3.5
3
n
2 IQR
3
n

where n the sample size, k bin Count, h bin width, sample standard deviation, IQR
interquartile range, x is the smallest integer not less than x.
If the extreme values in your sample are dubious (ex. negative values of Youngs modulus), you
may want to discard a fixed percentage of largest/smallest values with the help of panel c.
Alternatively, you can change the range of data that are displayed in the histogram (panel e).
AtomicJ supports both ordinary and cumulative histograms. Bin height can be specified as the
count (number of values within the bin), its decimal logarithm, probability (i.e. the frequency of
values within the bin) or probability density (frequency divided by the width of the bin). A
theoretical distribution can be fitted to the sample and plotted together with the histogram.
AtomicJ supports the following distributions:

Normal
Log-normal
Laplace
35

Lorentz.

The log-normal distribution is not available when the sample contains negative values

Fig. 23.The first (left) and the second (right) page of the histogram assistant. The first page allows you to
specify the quantities for which you want to draw histograms, while the second page allows you to
specify the binning parameters

F.4. Histogram dialog


Histograms are stored in the Histogram dialog (Fig. 24). Its structure is similar to the Force curve
dialog. It contains a main menu bar (Fig. 24 a), a set of buttons (b) for the most commonly used
actions, a central split pane, with a list of samples on the left (c) and a tabbed panel displaying
the corresponding charts on the right (d). Charts for different quantities are located under their
own tabs. Basic information about fit, sample and binning are displayed in the panel e. This
information gets updated when you navigate between different histograms (clicking on
different tabs or selecting different the sample).
The main menu bar contains four menus. The File, Chart and Measure menus contain the same
options that we discussed in the subsection D.3. Force curve dialog. The fourth menu, Data (Alt
+ D) is specific for the Histogram dialog. It contains six actions:

All raw data (Ctrl + Shift + W) opens the Raw


data assistant where you can select the samples
you want to view. The raw numerical values for
36

selected samples are then displayed in a raw


data dialog.
Statistics (Ctrl + T) opens a statistics dialog. Click this to view mean, median, variance
and other statistics for all batches and pooled results.
Modify binning (Ctrl + B) opens the Binning dialog, which allows you to modify the
currently displayed histogram. It contains the same fields as the second page of the
Histogram assistant (Fig. 23 right). Histogram is instantly updated when you change the
settings in the Binning dialog. Thanks to instant updates, you can easily determine what
is the effect of the changes. For example, you can see how changes in the number of
discarded results on the quality of fit. The changes can be reverted with the Undo
button.
Fix zero (Ctrl + F) subtracts the smallest element of the sample from all the items in the
sample. After this operation the smallest element equals 0.
Add constant (Ctrl + D) allows you to add a constant to all items in the sample. You may
use it when you want to fit lognormal distribution to the sample that contains negative
values.
Transformations allows you to transform the sample, by square root, logarithmic (with
base 10) or reciprocal transformation. Note that square root and logarithmic
transformations require that all the items in the sample are positive. If necessary, get rid
of non-positive items with the Add constant action.

37

Fig. 24. Result histogram dialog. It stores all histograms that you have generated from the results of force
curve processing. The list of the samples (here named group of curves) (c) allows you to navigate
between histograms (d). For each sample several histograms can be generated for different quantities
for example for Youngs modulus and for transition indentation.

F.5. Creating box plots


Box plots (also known as box-and whisker plots) are useful for comparing distributions of
multiple samples. They carry less information then histograms, but are much more compact , so
they can be recommended when the number of samples is considerable. Box plots depict
several statistical properties of the sample (Fig. 25):

median
upper quartile
lower quartile
arithmetic mean
upper fence, i.e. the greatest value less than median + 1.5 times interquartile range
lower fence, i.e. the smallest value greater than median 1.5 times interquartile range
outliers, i.e. data greater than upper fence or less than lower fence

Fig. A box plot, calculated for a single sample.

38

To create box plots from results of force curve processing, you click the Add box plot
toolbar item in the Results dialog (see section F.1). The Box plot assistant will popup. Its first
page contains checkbox with names of all quantities that were calculated from the force curves.
Select the quantities that you want to plot and click the Next button to move to the next page of
the assistant.

The Box plot assistant now displays its second page, which allows you to select the force curves
that will comprise the first sample. Click the Add button to choose the force curves from the
processing results. The number of samples visualized in a box plot is not limited to add new
samples, click the Next button. When you are done, click the Finish button in the Box plot
assistant. Box plots will be then created.

39

F.6. Running statistical tests


You can test hypotheses about means of samples with the inference assistant. It consists of two
pages. The first page (Fig. 26 left) is for selection of the statistical test. Currently, t-tests for one
and two samples are available. The second page (Fig. 26 right) is for specifying the samples and
test parameters (for two-sample t-test, you have to specify the significance level, choose
whether the test should be one or two tailed and whether sample variances are to be
regarded as equal. Samples are independent of batches single sample may contain results
from multiple batches.
Click the Edit button to add new results to the
sample. The Sample editor will appear (Fig. 25). It
allows you to add new results to the sample and
choose which quantity you are interested in.
Once you have chosen the samples, click the Finish
button to run the test. A new dialog with test
results (Fig. 27) will pop up.
Fig. 25. Sample editor, allowing you to choose
which curves should be included in the sample and
which quantity should be analyzed statistically.

The Test results dialog is equipped with the main menu and a set of buttons. The following
actions can be performed:
Save (Ctrl + S) saves the test results to a text file (TSV or CSV)
Print (Ctrl + P) prints the test results
Close dismisses the dialog.

Fig.26. First (on the left) and second (right) page of the inference assistant.
40

Fig. 27. Results of the two sample t test.


The P value and confidence interval are
calculated.

F.7. Descriptive statistics


Descriptive statistics for processing results are displayed in the Live statistics dialog (Fig. 28). It
contains a separate table for each quantity under its own tab (Fig. 28 c). Each table contains
statistics for all batches taken together and each batch separately, in the successive rows. The
content of the tables cannot be directly modified by the user, however, it gets instantly updated
when results are deleted from the results dialog or new results are added. The Results dialog
also lets you calculate descriptive statistics for a selected subset of results, which are displayed
in a similar dialog.
For each sample, the following properties are provided:

Sample the name of the sample


Mean the arithmetic mean
Trim 5% - the trimmed arithmetic mean, calculated after 5% of smallest values and 5 %
of largest values are discarded. It is a more accurate estimate of average when outliers
are present. For more information, sett http://planetmath.org/trimmedmean.
Median
Q1 the lower quartile (25% of data are less than the lower quartile)
Q3 the upper quartile (75% of data are less than the upper quartile)
SD standard sample deviation
SE standard sample error
IQR interquartile range, the difference between the upper and lower quartiles. It is a
measure of sample dispersion, robust against outliers
Skewness sample skewness, a measure of asymmetry of the sample distribution. If the
distribution is symmetrical, like the normal distribution, skewness equals 0. If left tail is
41

longer, skewness is negative (distribution is left-skewed), if right is longer, then skewness


is positive (distribution is right-skewed). Youngs modulus measurement for animal cells
often exhibit positive skewness. For more information about skewness, see
http://mathworld.wolfram.com/Skewness.html.
Kurtosis sample excess kurtosis, a measure of peakedness of the sample distribution.
Excess kurtosis for normal distribution equals 0. It is positive when the distribution has
heavy tails. For more information, see http://mathworld.wolfram.com/Kurtosis.html.

Fig. 28. Live statistics dialog. The statistics are grouped in several tables (c), each for a different quantity,
under its own tab. Each table contains statistics for all batches taken together (i.e. all results in the
Results dialog) and for each batch separately.

Statistics dialogs can be displayed from the Results dialog (Fig. 21):

to display descriptive statistics for all results, click the toolbar icon
to Statistics (Alt + T) Descriptive statistics (Alt + D).

to display descriptive statistics for part of results, select the corresponding rows in the
results table, then move the mouse over the selected rows and click the right mouse
button. Click Selection statistics in the context menu (Fig. 21 e).

(Fig. 21 b) or go

The statistics dialogs are equipped with the main menu (Fig. 28 a) and a set of buttons (b), that
allow you to print, save to a file or customize the calculated statistics:

to save the currently displayed table to a file, use the shortcut Ctrl + S, or click the Save
button (Fig. 28 b), or go to File (Alt + F) Save (Alt + S). In each case, a file dialog will be
displayed, which lets you choose where the table should be saved and in which format
(TSV or CSV).
42

to print the currently displayed table, use the shortcut Ctrl + P, or click the Print button
(Fig. 28 b), or go to File (Alt + F) Print (Alt + P)

to change the number format, go to


Customize (Alt + U) Format data (Alt + F).
The Customize statistics dialog will be
displayed (Fig. 29). It lets you specify the
number of decimal fraction digits and the
decimal separator used in the statistics
tables.

Fig. 29. Dialog for specifying the number format used


in the table with descriptive statistics.

F. 8. Recalculation

If the results of processing are


unsatisfactory, you may recalculate them
using different processing settings. Result
dialog features a dedicated Recalculation
dialog (Fig. ), which can be easily accessed
from the toolbar

You can recalculate all curves, the selected curves or only the curves from a particular batch. If
you want to delete old values, select the checkbox Delete old calculations, otherwise both old
and new results will be stored. Independently, you may specify whether the old curve charts
should be removed (select Delete old curve charts ) and whether the maps of mechanical
quantities (if any) should be modified (select Modify maps in place), or whether new maps
should be created and old ones kept intact.
F.9. Graphical results dialog
The Graphical results dialog stores charts generated during processing of force curves. Three
different types of charts can be generated for each curve (depending on the settings in the
Processing assistant):
43

the recorded force curve. It is annotated with:


a) estimated contact point. It can be dragged with the mouse if the icon
is
pressed in. The curve is then recalculated instantly with the new contact point.
b) transition point. It can dragged it with the mouse if the icon
is pressed in.
The curve is then recalculated instantly, with the new transition point.
c) adhesion force marker, a vertical line segment, whose x coordinate is the position
of largest adhesion, and its length is equal to the magnitude of adhesion force. It
is visible only if the adhesion force has been calculated for the plotted force
curve.
d) fit of the indentation model, determined by the selected tip shape and sample
thickness. The fit is drawn for the branch used in calculations (either withdraw or
approach)

the force indentation curve, annotated with:


a) transition point
b) fit of the indentation model

the pointwise modulus indentation curve, annotated with:


a) transition point
b) fit of the indentation model, which is always a straight, horizontal line. The
position of fit corresponds to overall Youngs modulus.

The Graphical results dialog contains a main menu bar (Fig. 30 a), a toolbar (e), a set of buttons
(b) for the most commonly used actions, a central split pane, with the list of processed force
curves on the left (Fig. 30 c) and the tabbed panel displaying the corresponding charts on the
right, with each type of chart under its own tab (d). The menu bar contains four menus. The File
menu and Measure menu contain the options we discussed in the section D.3. Force curve
dialog.
Toolbar options:
Recalculate opens the Recalculate assistant (see section F.8. Recalculation).
Correct contact point - if pressed , you can drag the contact point with the
mouse. The force curve will be instantly recalculated, also the corresponding
maps and result dialog entries will be updates.
44

Correct transition point - if pressed , you can drag the transition point with the
mouse. The force curve will be instantly recalculated, also the corresponding
maps and result dialog entries will be updates.
Mark on the maps marks the position corresponding to the selected curves on
maps of the mechanical quantities, if they are available.
Measure lets you measure distances on the chart.
Crop lets you crop the end of all the curves or the selected ones.
Gaussian smoothing lets you smooth the curves (all or the selected ones) with
Gaussian filter.
Median smoothing lets you smooth the curves with the median filter.
Convolve

The Chart menu (Alt + C) contains three options:


Live chart style (Ctrl + L) opens a dialog that lets you modify
chart style, named the Live chart style dialog (see section
H.1. Working with Live chart dialog). Click this to modify the
way the force curves are plotted.

Raw data opens a raw data dialog (see the section D.2. Raw data dialog), containing
the coordinates of points for the selected force curves.

Overlay (Ctrl + Y) lets you plot the results for two force curves in a single chart. It opens
the Overlay assistant, which let you select the curves to overlay. This feature is useful
when you want to compare two different force curves or to compare the results of
processing obtained for the same curve, but with different settings, as in Fig. 31.

The Data menu (Alt + D) allows you fix contact point, i.e. to move it to the origin of the plot
coordinate system. All other points in the charts are translated accordingly.

Fix contact fixes contact point in the force curve plot that is
currently displayed.
45

Fix contact for all fixes contact point in all force curves
plots stored in the dialog.

The list of the processed curves has a context menu containing one additional action Jump to
results, which shows the numerical results for the selected force curves in the Results dialog.

Fig. 30. The Graphical


results dialog, storing the
charts of force curves, force
- indentation and pointwise
modulus - indentation
curves. These charts are
created when curves are
processed. The dialog
contains a list of processed
curves (c), and a tabbed
pane with the
corresponding charts (d).

Fig. 31. The Graphical results


dialog displaying two
pointwise modulus
indentation curves, calculated
for the same force curve, but
with different processing
settings. The force curve was
artificially generated for a
blunt cone (Youngs modulus
20 kPa, apex radius = 0.1 m,
half angle 35). The pointwise
modulus curve in red was
obtained when the tip was
correctly specified as a blunt
cone, while the curve in green
was obtained when the tip
was misspecified as a cone.

46

G. Mouse actions on charts


The effects of mouse clicks or movements over charts depend on which mouse mode is active.
Only one mode is active at a time. You can change the mode through the main menu or a
toolbar, if available. There are seven main mouse modes:

Normal mode
Measure distance mode
Extract profile mode (or Extract slice for stacks)
ROI modes:

Polygon ROI mode


Rectangular ROI mode
Elliptic ROI mode
Free hand ROI mode

For line charts and histograms, only the normal and the measure distance mode can be used. All
mouse modes are available for maps, images and stacks. For slices you can use all the modes
except the extract profile mode.

G.1. Normal mode


The following actions work in the normal mode. They also work for all other modes:

Zooming in to zoom on part of the chart, you can:


a) left click in the left upper corner of the zoom-in area, then drag the mouse
downwards and leftwards. The area highlighted in semi-transparent bluish color
will be zoomed-in after you release the mouse.
b) roll up the mouse-wheel. The zoomed-in area will be centered around the mouse
cursor.
c) click Zoom-in action, accessible from the context menu. You can zoom in both or
just a single axis. The context menu is triggered by a right mouse click.

Zooming out to zoom out, you can:

47

a) left click anywhere in the chart, then drag the mouse in any direction except in
the left down direction.
b) roll down the mouse wheel.
c) click Zoom-out action, accessible from the context menu. You can zoom out both
or just a single axis. The context menu is triggered by a right mouse click.

Panning to pan a chart (also when zoomed), hold down the Ctrl key, then left click
anywhere in the chart and drag the mouse

Adjusting title, legend and scale bars positions to move a title, legend or a scale bar
drawn inside the plot (i.e. within the data area), move the mouse over it, press the left
button and drag. The element you caught will follow the mouse movements.

Changing data series name to


rename a series, double click the
appropriate item in the legend. A small
dialog (Fig. 32) will appear where you
should enter the new name.

Fig. 32. Dialog for setting the series name.

G.2. Measure distance mode


In this mode, you can measure distance between two selected points on the chart or the length
of a polyline drawn on the chart. If the measurement is done on an image or map chart, it will
be copied to all other channels from the same image. Thanks to this feature you can easily
compare the size and position of a given structure in all channels.

to switch on/off this mode, click Measurements in the menu bar, then select the type of
the measurement in the drop-down menu. Three options are available: Line
measurement, Polyline measurement and Free hand measurement. In the Image dialog
and the Map dialog, you can click one of the toolbar icons with a pair of compasses
instead:
(line),
(polyline) or
(free hand measurement).

to add a new measurement, click the left mouse button on the start point, then move the
mouse towards the end point. To finish drawing a linear measurement, just click the left
48

button at the endpoint. For polyline measurements, you can add nodes with left mouse
click, while to finish drawing a polyline or free hand measurement, click the right mouse
button. When drawing is finished, a distance measurement dialog will pop up, containing
detailed information about the length and position of each measurement line.

to translate a measurement, move the mouse over the measurement line, press the left
mouse button and drag the mouse. The measurement line will follow the mouse.

to modify a measurement, move the mouse over the measurement and single click the
left mouse button. Moveable circles will appear at the ends of the line measurement, or in
the nodes of the polyline/free hand measurement. To reposition one of the endpoints or
nodes, move the mouse over the circle, press the left button and drag the mouse. To hide
the circles, single click the left button on the measurement line.

to remove a measurement, move the mouse over the measurement line and double click
the left mouse button.

The style of the measurement lines can be modified with the Measurement style dialog (go to
Measure Measurement style). For details, see the section H.2. Edit measurement style.
G.3. Extract profile mode
In this mode, you can extract height profiles from maps, images or stacks along an arbitrary
section line, polyline or free-hand path. For multi-channel images and maps, profiles are
automatically extracted from all the channels along the profile. This makes it easier to find
correlations between the imaged properties.

To switch on/off, you can:


1. in the Map or Image dialog, go to Profiles (Alt + P), then select the type of the profile
in the drop-down menu. Three options are available: Line profile, Polyline profile
and Free hand profile. Alternatively, you can click one of the toolbar
icons with crossed knives:
profile)

(line),

(polyline) or

(free hand

2. in a Stack dialog, go to Sections (Alt + T), then select either Line section, or Polyline
section, or Free hand section in the drop-down menu.

49

to add a new profile, click the left mouse button on the start point, then move the
mouse towards the end point. To finish drawing a linear profile, just click the left button
at the endpoint. For polyline profiles, you can add nodes with left mouse click, while to
finish drawing a polyline or free hand profile, click the right mouse button. The section
line will be drawn on all channels of the current image and the cross-section dialog will
pop up, containing chart with height profile extracted from all channels.

to translate a profile, move the mouse over it, press the left mouse button and drag the
mouse. The line will follow the mouse.

to modify a profile, move the mouse over it and single click the left mouse button.
Moveable circles will appear at the ends of the line profiles or the nodes of the
polyline/free hand profiles. To reposition one of the endpoints or nodes, move the
mouse over the circle, press the left button and drag the mouse. To hide the circles,
single click the left button on the line.

to remove a profile, move the mouse over the cross-section line and double click the left
mouse button.

Profiles are equipped with triangular, moveable markers. For each marker, another marker
is drawn in the cross-section chart in the same position. Both in the original image and the
cross-section chart markers can be moved, added or removed with the mouse.
to add a new marker, move the mouse over the section line and click the right mouse
button or double click the plotted curve in the cross-section chart.

to move a marker, move the mouse over, press the left mouse button and drag the
mouse. The marker will follow the mouse.

to remove a marker, move the mouse over and double click the left mouse button.

The style of section lines can be modified with the Profile style dialog (click Profiles in the main
menu bar, then Profile style). For details, see the section J.4. Editing style of profile lines.

50

G.4.ROI modes
ROI modes allow you to select regions of interest of different shapes. Various actions can be
then applied to these areas. For multi-channel images and maps, ROIs are selected for all the
channels at once.

to switch on/off this mode, go to ROI (Alt + R), then select from the drop-down menu
the ROI mode of your choice, one of the following: Polygon ROI, Rectangular ROI,
Elliptic ROI or Free hand ROI. In the Image dialog and the Map dialog, you can select
the right shape from the toolbar.

to create a rectangular or elliptic ROI, click the left mouse button at the desired
position. A small ROI will be drawn, which can be then reshaped.

to create a polygon ROI, click the left mouse button, move the mouse to the next
vertex and click the left mouse button there. Repeat this until all vertices are added.
To finish, click the right mouse button.

to create a free-hand ROI, click the left mouse button and move the mouse. ROI
boundary will follow mouse movement. To finish, click the right mouse button.

to reshape a rectangular or elliptic ROI, move the mouse over its edge, press the left
mouse button and drag the mouse.

to reshape a polygon or free hand ROI, move the mouse over its edge and single click
the left mouse button. Moveable circles will appear at the vertices. To reposition one
of them, move the mouse over the circle, press the left button and drag the mouse.
To hide the circles, single click the left button on the line.

to translate a ROI, move the mouse over it, press the left mouse button and drag the
mouse. The ROI will follow the mouse.

to remove a ROI, move the mouse over its edge and double click the left mouse
button.

You can also draw ROIs which includes whole image, except for a hole (Fig. 33 B). The shape of
the hole depends on the current ROI mode. For example, when drawing holes is switched on
and the Rectangular ROI mode is on, you can select a ROI which includes the whole image
51

except for a rectangle. To draw ROIs with a hole, click ROI in the menu bar, then select in the
drop-down menu the Draw ROI hole item

Fig. 33. Regular Rectangular ROI (A) and a Rectangular ROI with a hole (B). The area inside ROI is
whitish.

The style of ROIs can be modified with the ROI style dialog (go to ROI ROI style). For details,
see the section J.9. Editing style of ROIs.

H. Customizing style of charts


AtomicJ gives you a full control over the style of charts. This flexibility in customizing chart style
combined with the wide range of supported files allows you to create high quality figures.
There are a few ways to customize the style of a chart, depending on the type of data it shows.
Most chart features can be modified with the Live chart style dialog (Fig. 34), which is available
for every type of charts and stacks. In addition, color gradients for stacks, image charts and map
charts can be modified with the Color gradient dialog and the Gradient range dialog. The style
of regions interest can be modified with the ROI style dialog (section J.9.), the style of
measurement lines with the Measurement style dialog (section H.2.), while the style of profile
lines with the Profile style dialog (section J.4.).

52

H.1. Working with Live chart style dialog


The Live style dialog will help you to modify the appearance of almost every detail of every type
of chart. To display the Live chart style dialog you can either:
1. move the mouse over the chart and click the right mouse button. A context menu will
appear. Click the Live chart style action, the first item in the context menu.
2. or double-click an axis, scale bar or the frame of a legend. The live chart style dialog will
be displayed. The tab corresponding to the clicked element will be selected.
3. or go to Chart Live chart (Ctrl + L).

Fig. 34. Live style dialog gives


you almost full control over
the styles used to render
different elements of charts,
such as data series, axes, title,
and legends.

The dialog consists of the main menu bar (Fig. 34 a), a set of buttons (b) for the most commonly
used actions, and the central tabbed pane. Each tab contains an editor with controls for
modifying style of different chart elements (d).
The main menu bar contains the Style menu (Alt + T), with six options:

Batch apply (Ctrl + B) applies the style for the


current chart element to all charts of the same type
in the same dialog. Charts of the same type are
usually grouped under the same tab in a chart
dialog.
Save as defaults (Ctrl + S) saves the style for the
current chart element (the one for which the tab is
53

currently selected) to an OS-dependent backing store. In case of MS Windows, the


backing store is simply the Windows Registry. From now on, this style will be used to as
the default style to draw the charts of the same type as the currently modified chart.

Reset to defaults (Ctrl + R) resets the style for the current chart element to the default
style (see above).

Undo (Ctrl + U) reverts the changes introduced to the current chart element.

Batch apply all (Ctrl +Shift + B) applies the style for all chart elements to all charts of the
same type in the same dialog. Charts of the same type are usually grouped under the
same tab in a chart dialog.

Save all as defaults (Ctrl + Shift + S) saves the style for all chart elements to an OSdependent backing store. From now on, this style will be used to as the default style to
draw the charts of the same type as the currently modified chart.

Reset all as defaults (Ctrl + Shift + R) resets the style for all chart elements to the default
style

Undo all (Ctrl + Shift + U) reverts the changes introduced to any of the chart elements

The chart is instantly updates when its style is edited. This feature helps you to find the best
style for the chart, as you can immediately see what the effects of the changes you are
introducing are.
The Live chart dialog consists of separate editors, each for different chart element. The number
and type of editors depend on the type of chart. Those editors are available for every chart:
a. Series editor
Series editor lets you modify the way the data are renderer. Different forms of this editor are
available for different types of charts. A series editor for a line chart is displayed in Fig. 34.
A more detailed description of series editors specific for histograms, images and maps can be
found in later sections.
b. Plot editor
Plot editor (Fig. 35) lets you modify the style of the plot, understood here as the inner area of
the chart, where data are actually draw. The editor allows you to set the plot background, to
specify the stroke of plots outline, hide or show range and domain gridlines, as well as to
change their stroke and color. The interval between gridlines is always equal to the interval
54

between the ticks on the corresponding axis. In addition, you can select the plot orientation.
There are two options:
1. Vertical orientation - the domain axis is horizontal, the range axis is vertical. This is the
usual orientation.
2. Horizontal orientation - the domain axis is vertical, the range axis is horizontal.

Fig. 35. The editor for plot - the inner area of the chart.

c. Axes editor
Axes editor (Fig. 36) contains separate subeditors for each axis. Most line charts contain two
axes domain and range axis, while stacks, as well as image and map channels contain also a
third axis depth axis, which is drawn next to the gradient bar. Those subeditors give you
control over every detail of the axis. Here, you can hide or show the axis, invert it or change its
range. You can also modify its main label, tick marks, ticks labels, axis line, position in the chart
or the number format (ex. the decimal separator).
You will usually want to keep the style of all axes the same. Axes editor allow you to choose
whether the axes are allowed to differ in their style:

to ensure that changes in style of one axis are also applied to other axes, select (press
in) the chain link button. When selected, its icon changes from
to . .

55

Fig. 36. The editor for axes. The style can be set separately for each axis. Press in the chain link
button if you want the same style to be used for all axes.

The Axes editor can be opened as a tab in the Live chart dialog, but it can be accessed even
faster:

to open the Axes editor, move the mouse cursor over one of the axes and double click
the left mouse button.
d. Title editor

The Title editor (Fig. 37) lets you add or modify the title of the chart. It consists of three tabs:
1. Text tab allows you to set text of the title, its font and color. Instead of simple color, you
can fill the letters with a gradient (check in the Use gradient box and then click the
Select button to choose the gradient).
2. Frame tab allows you to choose whether frame should be drawn around the title. You
can select the color and stroke of the frame, and the color of the title background.
3. Position tab allows you to choose whether the title should be drawn inside or outside
the area of the plot occupied by plotted data and in which position. Here you can also
set the title padding and margins. Note that the title can be simple dragged with the
mouse on the chart for details see the section G. Mouse actions on chart.

56

The Title editor can be opened as a tab in the Live chart dialog, but it can be accessed even
faster:

to open the Title editor, move the mouse cursor over the title and double click the left
mouse button.

Fig. 37. The editor for chart title.

e. Scale bar editor


Scale bar (Fig. 38) editor contains two subeditors one for the domain (usually horizontal) scale
bar, the other for the range scale bar (usually vertical). Here you can hide or show the scale
bars, change their position and length. The default length of a scale bar is equal to the interval
between axis ticks. The editor allows you to select the stroke and color of the scale bars, as well
as the size and font of its labels. In addition, the scale bar position can be set. Note that the
scale bars can be simple dragged with the mouse on the chart for details see the section G.
Mouse actions on charts.
The Scale bar editor can be opened as a tab in the Live chart dialog, but it can be accessed even
faster:

to open the Scale bar editor, move the mouse cursor over the scale bar and double click
the left mouse button.

57

Fig. 38. The editor for scale bars

f. Legend editor
Legend editor (Fig. 39) lets you change the style and position of a legend. If the chart has
multiple legends, for each of them a separate editor is included in the Live chart style dialog.
The Legend editor contains two or three (depending on the type of the legend) tabs:
1. Position tab lets you choose whether the legend should be drawn inside or outside the
area of the plot occupied by plotted data and in which position. Here you can also set
the legend padding and margins. Note that the legend can be simple dragged with the
mouse on the chart for details see the section G. Mouse actions on charts.
2. Style tab lets you set the font and color used for text in the legend. You can also choose
whether frame should be drawn around the title, select the color and stroke of the
frame, and the color of the title background. Note that legends for image and map
charts contain depth axes that can be edited from the Axes editor, but not from the
Legend editor.
3. Strip tab lets you set the outline and width of the color gradient strip that is the main
part of legends for image and map charts. This tab is included in the Legend editor only if
the edited legend contains a strip.

58

Fig. 39. The editor for a legend.

g. Chart editor
Chart editor (Fig. 40) lets you change the chart padding, background color and whether
antialiasing should be used. In addition, the lock aspect ratio action allows you to specify
whether natural aspect ratio of the chart (i.e. determined by unit lengths on the axes) should be
preserved when the dialog is resized.

Fig. 40. Editor for the general chart style.

59

H.2. Editing measurement style


All types of charts support distance measurements. The style of measurement lines can be
edited through the Measurement style dialog (Fig. 41). To display Measurement style dialog,
got to Measurement Measurement style.

Fig. 41. Dialog for editing style


of
measurement
lines.
Different styles can be set for
finished measurement lines
and the unfinished ones using
the controls in the tabbed
pane a. The styles can be
applied to measurements in
other charts or saved as
default using the buttons b.

The dialog (Fig. 41) lets you set different style for finished measurements and the measurement
lines that are being drawn. The measurement lines get instantly updated when you introduce
changes to their style, which makes it easier to find the optimal style parameters.

Fig. 42. The simple measurements (A) and


measurements with distances in x and y
directions (B)

You can edit the stroke of the measurement lines,


as well as the color and font of the labels. The X
distance and Y distance checkboxes controls
whether measurements of distance in the x and
y direction (Fig. 42 B) should be also drawn, or
skipped (A). If the quantities on the x and y
axis are different, the Euclidean distance cannot
be calculated, so only the distances in the
directions of axes are reported.

Actions accessible through buttons (Fig. 41 b):

Batch apply (Alt + B) applies this measurement style to all charts of the same type in the
same dialog. Charts of the same type are usually grouped under the same tab in a chart
dialog.

60

Save as defaults (Alt + S) saves this measurement style to an OS-dependent backing


store. In case of MS Windows, the backing store is simply the Windows Registry. From
now on, this style will be used to as the default style to draw measurement lines on the
charts of the same type as the currently modified chart.
Reset to defaults (Alt + R) resets the style of measurement lines to the default style (see
above).
Undo (Alt + U) reverts the introduced changes.

61

H.3.Gradient dialog
The gradient dialog (Fig. 43) allows you to modify the color gradient used to find the color for
each z-axis value (ex. height in topographical images). The range and the colors that form the
gradient are important when you want to bring out interesting features of your image, map or
stack.
The Range panel is where you specify the range of the gradient. The minimal value will
be colored with the first color in the gradient, the maximal value with the last one. You can
specify the range in three ways:
1)
2)

enter the range limits manually to the corresponding fields.


or choose one of the predefined ranges:
a. Full stretches the gradient to fit all data
b. Automatic stretches the gradient so that it fits all
data except the tails of their distribution
c. ROI full stretches the gradient to fit all data
within the selected ROIs data (it is greyed out
when there is no ROIs selected)
3) or set its limits on the data histogram. Click the
button. The Gradient range dialog will appear. You
can select the range limits there (see section H.5.).
The Full range panel reports what is the smallest and the
largest value in the data.
The Range colors panel shows the current color
gradient. To modify it or to choose another gradient,
click the Edit button. The Color gradient editor will
appear. For details, see the section H.4.

Fig. 43. Gradient dialog. It allows you to set


the range of values the gradient is applied
to, to edit gradient itself and to apply mask
to ROIs.

The Outside range colors panel allows you to specify


which colors should be used for data outside the range
of the color gradient. By default, the first gradient color
is used for the values smaller than the lower gradient
limit, and the last gradient color for the values greater
than the upper gradient limit. To override this, select the
Use different colors checkbox. Now you can select
different colors for the smallest and the largest values
(i.e. underflow and overflow colors).
62

The ROI masks panel allows you to specify a different color, independent of the gradient, which
will be used for the parts of the chart outside or inside regions of interest.
H.4. Editing color gradients
Color gradient editor (Fig. 45) allows you to modify the current color gradient or to choose a
new one. A gradient is determined by its color nodes, their position and the method of
interpolation between them. The control over the color gradient is provided by interactive
gradient bar (Fig. 45 a), a set of buttons (b) and widgets that control how colors are interpolated
(c).

to reverses the order of colors, click the Invert button


to choose a new gradient among the built-in or userdefined gradients, click the Built-in button. The Select
gradient dialog (Fig. 47) will be shown (see section H.6.).
to specify the number of colors in the palette, use the
Palette size field. This is the total number of different
colors in the gradient, obtained through interpolation of
the color nodes.
to change the method of interpolation between color
nodes (Fig. 44), use the Mixing combo box.
to read in a gradient saved in a file, click the Import
button
to save the current gradient to a file, click the Export
Fig. 44. Colors making cup gradient can
button
be linearly mixed (a) or form bands (b).
The colors that form the current color gradient can be
modified with the mouse:
to insert a new color node, move the mouse over the
gradient bar at the position where you want to insert
a new color and double click the left mouse button.
to move a color node, move the mouse over the
small white triangle left of the gradient bar, press the
left button and drag the mouse. The end-colors,
which have black triangles, cannot be moved.
to remove a color node, move the mouse over the
white triangle and double click the left mouse button.
The end-colors cannot be removed.
Fig. 45. Dialog for editing color gradients.

63

to replace a color node, move the mouse over the droplet right of the gradient bar and
double click the left button. The Color chooser will appear. Choose the new color node
and click OK.
H.5. Gradient range dialog

The Gradient range dialog contains the data histogram plotted against the color gradient used
for their visualization (Fig. 46). The area painted with the color gradient is flanked by markers.
The gradient range can be specified in several ways:

to select the range manually, move the mouse over one of the markers flanking
colored area, press the left mouse button and drag the marker. Release the left
button when the marker is in the right position.
to choose the automatic range, which contains all the data except the distribution
tails, go to Range (Alt + G) Restore automatic (Ctrl + R) .
to choose the full range, which fits all the data, go to Range (Alt + G) Restore full
(Ctrl + Shift + R)

You can modify histogram binning to reveal all its features. Go to Data (Alt + D) Modify
binning (Ctrl + B)

Fig. 46. Gradient range dialog. To modify the range of values that the gradient is
applied to, drag with the mouse the lines on the edges of colored area.
64

H.6. Select gradient dialog


The Select gradient dialog (Fig. 47) lets you
select a color gradient among the predefined
gradients. These gradients are either built-in in
the application, or were designed by the users
in the current or previous sessions. The dialog
is equipped with a small main menu (Fig. 47 a),
a panel displaying a list of available gradients
(b) and a set of buttons (c).

to select a color gradient, click the item in


the list b (colored bar or gradient name)
to add a new custom gradient, go to
Custom (Alt + U) Add new gradient.
You can press Ctrl + N instead. The Color
gradient editor will appear (Fig. 45). It will
let you design a new gradient (see).
to clear custom gradients, go to Custom
(Alt + U) Clear custom gradients. All the
custom gradients designed in the current
or a previous session will be cleared.

Fig. 47. Dialog for selecting one of the


standard color gradients. There are many
predefined standard gradients, you can
also add your own gradient to the
standard gradients.

65

I. Saving charts to files

AtomicJ gives you much flexibility in saving charts. It supports multiple image formats, both
raster (TIFF, JPEG, JPEG2000, Windows Enhanced Metafile, GIF, PPM, Bitmap and AVI for
movies) and vector formats (EPS, PS, PDF, SVG), as well as text formats (TSV and CSV). You can
save a single chart or multiple charts at once. The actions described in this section are applicable
to any type of charts, except the part on saving as a movie, which is applicable only to stacks.

I.1. Options for file formats


You can specify different option for each of the file formats, which influence the quality and size
of the saved images. The dialogs for saving charts are equipped with panels that collect those
settings. Here, they are shown after short description of options available for different formats.
EPS, PS, PDF. You can specify:
i. Size of the output page. If Custom is selected, you can specify the size in the Width and
Height fields, in printers point (pts., equal to 1/72 inch). These fields are greyed out if a
predefined size is selected. The following sizes are available: A0 A6 , B0 B6, Executive
(522 x 756 pts.), International (595 x 791 pts.), Legal (612 x 1008 pts.), Letter (612 x 792
pts.), Ledge (792 x 1224 pts.)
ii. Margins. The following options are available: None (no margins are left), Small (20 pts.),
Medium (30 pts.), Large (40 pts.).
Please note that if the Keep aspect ratio checkbox is selected, the margins may be made
larger to keep the original aspect ratio.
iii. Orientation. It can be Portrait (i.e. vertical) or Landscape (i.e. horizontal).
iv. Fit to page. If this checkbox is selected, the chart is drawn as large as possible, with the
only constraints being the size of page, margins, as possibly the aspect ratio, if the Keep
the aspect ratio checkbox is selected.
v. Keep aspect ratio. If this checkbox is selected, the aspect ratio of the chart is preserved
when you change the width, the height is updated accordingly, and the other way round.

66

vi. Save only data area. If this checkbox is selected, only the inner part of the chart, where
the image is actually drawn, is saved. Axes are left out, just are those legends or titles
that are draw on the margins of the chart.

Fig. 48. Dialog for setting options for the EPS file format. Dialogs for the PDF and PS formats are
identical.

PNG, SVG, GIF, PPM, Bitmap. You can specify:


i.

Size of the image file. Enter the Width and Height of the image in printers points.

ii.

Keep aspect ratio. If this checkbox is selected, the aspect ratio of the chart is preserved
when you change the width, the height is updated accordingly, and the other way round.

iii.

Save only data area. If this checkbox is selected, only the inner part of the chart, where
the image is actually drawn, is saved. Axes are left out, just are those legends or titles
that are draw on the margins of the chart.

Fig. 49. Dialog for setting options for the PNG file format. Dialogs for the SVG, GIF, PPM and
bitmap formats are identical.
67

TIFF. You can specify:


i.

Compression. You can save the file Uncompressed, or use the LZW (lossless Lempel-Ziv
and Welch algorithm) or PackBits (lossless) compression.

ii.

Size of the image file. Enter the Width and Height of the image in printers points.

iii.

Keep aspect ratio. If this checkbox is selected, the aspect ratio of the chart is preserved
when you change the width, the height is updated accordingly, and the other way round.

iv.

Save only data area. If this checkbox is selected, only the inner part of the chart, where
the image is actually drawn, is saved. Axes are left out, just are those legends or titles
that are draw on the margins of the chart.

Fig. 50. Dialog for setting options for the TIFF file format.

JPEG. You can specify:


i.

Quality. The image quality can be specified as a number between 1 (highest quality) and
0 (lowest).

ii.

Size of the image file. Enter the Width and Height of the image in printers points.

iii.

Keep aspect ratio. If this checkbox is selected, the aspect ratio of the chart is preserved
when you change the width, the height is updated accordingly, and the other way round.

68

iv.

Save only data area. If this checkbox is selected, only the inner part of the chart, where
the image is actually drawn, is saved. Axes are left out, just are those legends or titles
that are draw on the margins of the chart.

Fig. 51. Dialog for setting options for the JPEG file format.

JPEG 2000.
i.

Lossless. You can choose whether lossless compression will be applied.

ii.

Quality. The image quality can be specified as a number between 1 (highest quality) and
0 (lowest). Quality cannot be set when lossless compression is used.

iii.

Size of the image file. Enter the Width and Height of the image in printers points.

iv.

Keep aspect ratio. If this checkbox is selected, the aspect ratio of the chart is preserved
when you change the width, the height is updated accordingly, and the other way round.

v.

Save only data area. If this checkbox is selected, only the inner part of the chart, where
the image is actually drawn, is saved. Axes are left out, just are those legends or titles
that are draw on the margins of the chart.

69

CSV, TSV. These are text formats. You can specify:


i.

Number of fraction digits.

ii.

Trailing zeroes. The checkbox controls whether the trailing zeroes are shown.

iii.

Decimal separator (dot or comma).

iv.

Thousand separator (space, comma, dot or apostrophe. The Use separator checkbox
control whether the thousand separator is shown.

Fig. 52. Dialog for setting options for the CSV file format. The dialog for TSV format is identical.

AVI. Stack can be saved as a movie in this format. You can specify:
i.

Compression. You can save the movie Uncompressed, or use the PNG
compression (lossless, please note that you may need a codec to open the file!)
or JPEG compression (lossy).

ii.

Backwards. If this checkbox is selected, the movie is saved in reverse (as if played
backwards)

iii.

First frame. The first frame of the stack that will be included in the movie. You
can set this to a higher value to skip the initial frames of the stack, which often
appear noisy due to low signal-to noise ratio.

iv.

Last frame. The last frame of the stack that will be included in the movie. You can
set this to a smaller value to skip the last frames of the stack.
70

v.

Rate. The rate of frames per second. Changing the frame rate results in the
changes of the movie length, because the number of frames is constant.

vi.

Length. The length of the movie. Changing the movie length results in the
changes of the frame rate, because the number of frames is constant.

vii.

Size of the frames. Enter the Width and Height of the frames in printers points.

viii.

Keep aspect ratio. If this checkbox is selected, the aspect ratio of the stack
frames is preserved when you change the width, the height is updated
accordingly, and the other way round.

ix.

Save only data area. If this checkbox is selected, only the inner part of the chart,
where the image is actually drawn, is saved. Axes are left out, just are those
legends or titles that are draw on the margins of the chart.

Fig. 53. Dialog for setting options for the AVI file format. The dialog allows you specify the
compression method, the range of the movie (i.e. which frames should be included), its speed
and the size of an individual frame.

71

I.2. Saving single charts


To save a single chart, you can either:

1.
2.
3.

click File (Alt + F) in the menu bar in the dialog where the chart is displayed, then click
Save (Alt + S) in the drop-down menu.
move the mouse over the chart, then click the right mouse button. Click the Save as
item in the context menu.
use the shortcut Ctrl + S.
In each case, the Save dialog will be
displayed (Fig. 54). It lets you specify
where the chart is to be saved (the
Browse button, Alt + B), select the
format and specify the saving options
(the Options button, Alt + P). The
saving options are format specific
and are described above.

Fig. 54. Dialog for saving a single chart.

72

I.3. Saving multiple charts


AtomicJ allows you to save at once multiple charts displayed in the same dialog. Saving charts to
files is parallelized (i.e. uses multiple processor threads), except when they are compressed in
ZIP file. Parallelization gives sizeable performance gain on multi-core processors. Multiple charts
can be saved through the Batch save dialog, To display this dialog, you can either:
1.
2.
3.

click File (Alt + F) in the menu bar in the dialog where the chart is displayed, then click
Save all in the drop-down menu.
click the Save all button at the bottom of the chart dialog
use the shortcut Ctrl + Shift + S.

The Batch save dialog will be then displayed. The dialog is where you specify which charts are to
be saved and where, in which format, and how to name the files. It consists of three tabs:
General tab (Fig. 55). Here, you
specify:

Fig. 55. Dialog for saving multiple charts at once. The


tab with general settings is displayed. Note that the
frames can be directly add to an archive (like tar.gz).

the destination directory. Click the


Select button (Alt + S) to choose the
directory. If you want to save each
chart in the same directory where
the
original
file
with
the
corresponding AFM recording is
located, click the Default button (Alt
+ D)
the chart to save. If the dialog
contains multiple types of charts,
you select the ones which you want
to save,
whether generated files should be
added to a archive, and if so, how to
name the archive. Select the Archive
checkbox to pack charts into an
archive.

Format tab (Fig. 56). Here you can


specify the file format and the format-

Fig. 56. Dialog for saving multiple charts at once. The tab with format settings is displayed.
73

specific parameters that are described in


the subsection Options for file formats.
File naming tab (Fig. 57). Here you can
specify how the names of files should be
formed. At first glance, the naming may
seem complex, but the scheme we
applied allows you to give a meaningful
and unique name to any number of
charts. The important points are:

Fig. 57. Dialog for saving multiple charts at once. The


tab with file naming settings is displayed.

Names consist of three parts:


1.
2.
3.

Prefix by default the name of the type of chart plus underscore (ex. Youngs
modulus_).
Root the central part of the name, by default the name of the file with the AFM
recording corresponding to the chart.
Suffix - by default a number incremented for each chart of a given type.

The name components can be set to:


1.
2.
3.

4.

The naming is separate for each


type of charts. This gives greater
flexibility.

Arbitrary string. The string can be typed into the appropriate field in the File
naming tab.
Name of the file with the AFM recording corresponding to the chart
Serial number, i.e. the file with the AFM recording corresponding to the chart.
The initial serial number, used for the first chart, can be set in the Initial serial #
field.
Type of the chart plus underscore (ex. Youngs modulus_ ).

Append extension checkbox controls whether extension are added.

74

I.4. Saving multiple stack frames


You can save at once all or a subset of frames from a stack. Saving charts to files is parallelized
(i.e. uses multiple processor threads), except when they are compressed in ZIP file.
Parallelization gives significant performance gain on multi-core processors. Multiple frames can
be saved through the Save all frames dialog. This dialog can be display from the Stack dialog in
the following ways:
1. click File (Alt + F) in the menu bar in the Stack dialog, then click Save all frames in the
drop-down menu.
2. use the shortcut Ctrl + Shift + S.
The Save all frames will be then displayed. The dialog is where you specify which frames are to
be saved and where, in which format, and how to name the files. This dialog is similar to the
Batch save dialog, described in the previous section. It consists of three tabs:
General tab (Fig. 58). Here, you
specify:

Fig. 58. Dialog for saving multiple stack frames at once.


The tab with general settings is displayed. Note that the
frames can be directly add to a archive (ZIP).

the destination directory. Click the


Select button (Alt + S) to choose the
directory. If you want to save each
frame in the same directory where
the original AFM file is located, click
the Default button (Alt + D)
the range of frames to save. By
default, this range includes all
frames.
whether generated files should be
added to a ZIP archive, and if so,
how to name the archive. Select the
Add to archive checkbox to pack
charts into an archive.

Format tab. Here you can specify the options for the AVI format (currently the only movie
format available) that are described in the subsection Options for file formats.
File naming tab. This tab is similar to the File naming tab in the Batch save dialog, described in
the previous section.

75

J. Working with images


J.1. Image dialog
Atomic Force Microscope records different type of sample images, depending on the mode of
operation. Usually the AFM image consists of several channels, each for different quantity,
because multiple quantities may be simultaneously recorded during scanning (topography, error
signal and friction, for example). We will refer to a set of image channels simultaneously
recorded in the same scan area as an Image recording. All types of image recordings, whatever
the physical meaning of their channels, are read - in in the same way, described in the section D.
Viewing AFM recordings, and are stored in the same Image dialog (Fig. 59).

Fig. 59 The Image dialog stores the AFM images opened in the current session. It contains a list of image
files (d) and a central panel (c), displaying each image channel under its own tab. Images can be
manipulated and analyzed through action accessible from the main menu bar (a), toolbar (b) and a set
of buttons (c).

The Image dialog is equipped with a menu bar (Fig. 59 a), a toolbar (b) and a set of buttons (c)
for the most commonly used actions and a list for navigating between the read-in image
recordings (d). The list is equipped with a context menu (d). The central panel (e) displays the
channels for the currently selected image recordings, each under its own tab.
76

While working with images, you will use mainly the actions included in the menus from the
menu bar and the toolbar, which provide easy access to the most frequently used actions.
Toolbar options :
Draw histogram (Ctrl + D) lets you generate histograms for whole image
channels.
Draw ROI histogram (Ctrl + Shift + D) lets you generate histograms of values
inside or outside selected regions of interest (ROIs).
Show histograms (Ctrl + H) opens a histogram dialog with all the histograms
generated for images in the current session. It is initially disabled, as there are
no box plots to show.
Show box plots opens the Box plots dialog, which stores all box plots generated
for image ROIs in the current session. It is initially disabled, as there are no box
plots to show.
Draw ROI box plots. opens the Box plots assistant, which lets you generate box
plots for selected ROIs. See also section F.5. Creating box plots.
Statistics (Ctrl + T) shows statistics (including mean, median, variance) for each
image channel.
Statistics ROIs (Ctrl + Shift + T) shows statistics for the selected ROIs
Polygon ROI toggles polygonal Regions of Interest (ROIs), changing the way
mouse clicks are interpreted by the chart. If this action is switched on you can
add a new polygonal ROI with the mouse. See the section J.5. Creating and
modifying Regions of Interest.
Rectangular ROI toggles rectangular ROIs
Elliptic ROI toggles elliptic (this includes circular) ROI
Free hand ROI toggles free-hand ROIs.

77

Wand ROI tool lets you build a ROI which includes a part of image with values
close to the value in an image position selected with the mouse.
Line measurement lets you draw a new straight line measurement on the image
with the mouse.
Polyline measurement lets you draw a polyline measurement (i.e. composed of
several connected line segments) with the mouse.
Free hand measurement lets you draw a polyline measurement with the
mouse. The measurement line will follow the movement of the mouse.
Line profile lets you draw profile lines on the image with the mouse. The crosssection dialog appears, displaying height profiles for all profile lines.
Polyline profile lets you draw a polyline profile (i.e. composed of several
connected line segments) with the mouse. Click left mouse button to add new
profile node (segment of the polyline), click right mouse button to finish
drawing of the profile.
Free hand profile lets you draw a polyline profile with the mouse. The profile
will follow the movement of the mouse. Click right mouse button to finish
drawing of the profile.
Convolve opens the Convolution dialog, which lets you convolve the image with
a kernel of arbitrary size.
Overlay (Ctrl + Y) lets you add channels from another image as new layers to the
charts generated for the currently selected image. It brings up the Overlay
assistant. Charts for the currently selected image are copied and new image is
created.
Resize lets you add a new layer to the currently selected image chart, containing
the same data, but with the number of pixels increased through bilinear or
bicubic spline interpolation. See: Smoothing dialog.
Lock aspect - when switched on (the button is pressed in), the natural aspect
ratio of the image (i.e. determined by its width and height in microns) is
preserved when the dialog is resized.
78

Menu options:
The menu bar contains four menus and can be navigated with the mouse or using keyboard
mnemonics and accelerators in brackets:

File menu (Alt + F) (the same as in the Force curve dialog, see section D.3.)

Measure menu (the same as in the Force curve dialog, see section D.3.)

Chart (Alt + C) menu lets you modify the chart style:


o
o
o

o
o
o

Live chart style (Ctrl + L) opens the Live chart style dialog.
Click to modify the way image is plotted.
Edit color gradient (Ctrl + G) opens the Color gradient
dialog. See Color gradient edition for details.
Gradient histogram (Ctrl + Shift + G) opens the Gradient
range dialog, where you can easily set the range of color
gradient against the image histogram. See Color gradient
edition for details.
Resize (Ctrl + M) (also in the toolbar)
Overlay (Ctrl + Y) (also in the toolbar
Lock aspect (also in the toolbar)

Data menu:
o
o
o
o
o

Draw histogram (Ctrl + D) (also in the toolbar).


Draw ROI histogram (Ctrl + Shift + D) (also in the toolbar).
Show histograms (Ctrl + H) (also in the toolbar).
Statistics (Ctrl + T)
Raw data (Ctrl + W) opens the raw data assistant, where
shows the raw, numerical values that make up the image

Process menu:
o Fix zero (Ctrl + F) subtracts the lowest value from the current image channel. For
example, if the lowest value on a topography image is 0.2 m, this value is
subtracted from each pixel in the image.
o Remove background (Ctrl + I) allows you to subtract a polynomial fitted to the
whole image, or the area that is inside or outside regions of interest.
79

o Match lines
o Line fit correction
o Add function allows you to add a linear function (a plane) to the whole image
channel, or to the area inside or outside the selected ROIs.
o Threshold data allows you to replace with a constant value the parts of the image
that are either greater or lesser than a threshold. This can applied to the whole
image channel, or to the area that is inside or outside the ROIs.
o Replace allows you to replace the data inside or outside the ROIs with a linear
function. In particular, you can replace them with a constant.
o Transform is a submenu for basic image operations: flipping (i.e. reflection through
a vertical or horizontal line that goes through the center of the image), transposition
(reflection through diagonal ) and rotation.
o Filter is a submenu with several image processing actions for edge detection (Sobel,
Prewitt, Laplacian of Gaussian), enhancing (sharpening, unsharp mask), noise
removal (weighted median filter, Gaussian blur), derivative calculation and general
convolution.
ROI (Alt + R) menu, containing fifteen actions, most of which
are disabled unless at least one region of interest is selected:
o
o

ROI style opens a dialog for editing the style with which the
ROIs are drawn.
Apply mask (Ctrl + K) opens the ROI mask dialog, which lets
you apply a distinct color to the area inside or outside
regions of interest.
Draw histograms for ROIs (Ctrl + Shift + D) opens the
Histogram assistant, which lets you generate histograms for
the area inside ROIs. You can create at once a histogram for
each channel of the selected image.

Live ROI histogram (Ctrl + Shift + H) opens the Live histogram dialog, displaying
histograms of the data inside regions of interest for each channel of the currently
selected image. These histograms are instantly updated when you move, add or
delete a ROI.
Live ROI box plots opens the Box plot dialog, displaying box plots of the data inside
regions of interest for each channel of the currently selected image. These
histograms are instantly updated when you move, add or delete a ROI.
80

o Raw data for ROIs (Ctrl + Shift + W) opens the Raw data assistant where you can
select the image channels for which you want to view raw data. The raw numerical
values for pixels inside regions of interest are then displayed in a raw data dialog.
o Statistics for ROIs (Ctrl + Shift + T) opens a statistics dialog, containing mean,
median, variance and other statistics for each image channel for data inside the
regions of interest
o Shape factors for ROIs (Ctrl + Shift + U) opens the ROI shape factors dialog with
detailed information about the geometry of each region of interest selected on the
current image. See the section J.9. ROI Shape factors dialog.
o Correct ROI plane (Ctrl + Shift + I) fits a plane the data inside regions of interest and
subtract it from the whole image. This action is useful for background removal.
The next four actions allows you to draw new regions of interest:
o
o
o
o

Polygon ROI switches on drawing Polygon ROIs (the same as in the toolbar)
Rectangular ROI switches on drawing Rectangular ROI (the same as in the toolbar)
Elliptic ROI switches on drawing Elliptic ROIs (the same as in the toolbar)
Free hand ROI switches on drawing Free hand ROIs (the same as in the toolbar)]

The last action controls the behavior of all ROI selection modes:
o Draw ROI hole controls whether in ROIs modes the shape that you draw with the
mouse is the inside or outside the ROI. If this action is selected, the shape is treated
as a hole in a larger ROI that encompasses all image

Profiles (Alt + P) menu, containing four actions:


o

o
o
o

Profile style opens a dialog for editing the style with


which the profile lines (lines along which crosssections are cut) are drawn.
Profile geometry opens a dialog with information about length and position of
each profile line drawn on the current image
Show cross-sections (Ctrl + Shift + X) opens the Profile dialog, where the crosssections (or height profiles) are displayed.
Cross section (the same as in the toolbar)

81

J.2. Making profiles


Profiles show how the quantity visualized in an image channel changes along an straight line,
polyline or an arbitrary path, drawn with the mouse. The Image dialog lets you draw and modify
profiles of arbitrary length and position. When you draw a profile on one channel, it is
automatically drawn on the others, and the profiles are extracted from all channels at once. This
feature makes it easier to compare and find correlations between profiles from different
channels.
Profiles in the Image dialog are equipped with small, moveable triangular markers. Their
position corresponds to the position of another set of triangular markers, drawn on the profiles
itself. Markers help you to find out how exactly the features visible in the images correspond to
the features noticeable in profiles.
Height profiles are drawn in a separate Profile dialog, but they are modified in response to
actions in the Image dialog (ex. image processing), to ensure the consistency between images
and profiles. In the Image dialog, profile lines can be translated or modified, and the
corresponding height profiles are immediately updated. They are also updated when you
process the image itself, for example by removing the background.
Image dialog actions for extracting and modifying profile lines:

to extract a new profile, click Profiles (Alt + P) in the menu, then select the type of the
profile: Line profile, Polyline profile or Free hand profile. This will turn on the Extract
profile mode, in which you can draw the profile line with the mouse. Please refer to the
section G. Mouse actions on charts for more details. The Profile dialog will be displayed
(Fig. 60).

to translate a profile, move the mouse over it, press the left mouse button and drag the
mouse. The line will follow the mouse and the cross-section will be instantly updated.

to modify a profile, move the mouse over it and single click the left mouse button.
Moveable circles will appear at its ends of line profiles and nodes of the polyline/free
hand profiles . To reposition one of the endpoints or nodes, move the mouse over the
circle, press the left button and drag the mouse. To hide the circles, single click the left
button on the line. The cross-section will be instantly updated.

to remove the profile, move the mouse over the cross-section line and double click the
left mouse button.
82

Image dialog actions for manipulating profile markers:

to add a new marker, move the mouse over the section line and then click the right
mouse button. In the Image dialog, a new triangular marker will be drawn on the profile
line. In the Profile dialog, a new triangular marker will be drawn in the corresponding
position on the height profile.

to move a marker, move the mouse over the triangular marker, press the left mouse
button and drag the mouse. The marker will move along the section line.

to remove a marker move the mouse over the triangular marker, then double click the
left mouse button.

Profile dialog actions for manipulating profile markers:

to add a new marker, move the mouse over the plotted profile. When the mouse cursor
changes to a cross, you can add markers by clicking the left mouse button. In the Image
dialog, a new marker will be drawn in the corresponding position on the profile line.

to move a marker, move the move over the triangular marker, press the left mouse
button and drag the mouse.

to remove a marker move the mouse over the triangular marker, then double click the
left mouse button.

Other image dialog action for profiles:

to view the length, angle and position of the profile lines, go to Profiles (Alt + T)
Profile geometry in the Image dialog. A dialog with geometrical parameters of profile
lines will be displayed.

to edit the style of profile lines, click Profiles (Alt + T) Profile style in the Image
dialog. The Edit profile style dialog will be displayed. For more details on how to use this
dialog, see section H. Customizing style of charts.

83

The Profile dialog (Fig. 60) stores charts of height profiles. The center of the dialog is occupied
by a list of image names and a tabbed panel, displaying profiles for different channels. Multiple
height profiles can be plotted on a single chart, if multiple profile lines were drawn on the
image. The Profile dialog is equipped with the main menu bar (Fig. 60 a) and a set of buttons (b)
for saving and clearing profiles. To show profile dialog from the Image dialog, use the shortcut
Ctrl + Shift + X, or go to Profiles (Alt + P) Show profiles.

Fig. 60 Profile dialog, containing height profiles for two different section lines for each channel
of an image. Topographical profiles are visible.

84

J.3. Selecting interpolation method for height profiles


Creating a height profile requires interpolation to find the values corresponding to the positions
between the centers of pixels in the image. AtomicJ supports three interpolation methods:

nearest-neighbor interpolation (always works)


bilinear interpolation (always works)
bicubic spline interpolation (does not work if there are missing values, i.e. empty pixels.
This is rare in images, but is more common in maps, for example in those created from a
patchworked force - volume recording)

You can also specify the number of points calculated for the cross-section, i.e. its resolution. For
image profiles, the default value is always 200. The choice of interpolation method influence the
visual appearance of the height profile, and the influence is greatest for low resolution images
(Fig. 62). To change the interpolation method, use the Profile interpolation dialog (Fig. 61). To
display it, use the shortcut Ctrl + I or click Interpolation (Alt + I) in the main menu bar of the
cross-section dialog, then click Change section interpolation (Alt + S).

Fig. 61. Dialog for specifying the method of interpolation and the number of points making up a height
profile. Nearest neighbor, bilinear and bicubic spline interpolation methods are supported.

The section interpolation dialog allows you to select the method of interpolation and the
number of points that make up the profile. The profiles are immediately updated to reflect the
introduced changes. The dialog is equipped with three buttons.
1.
2.
3.

The Apply to all button (Alt + A) applies the interpolation to profiles. This button is
disabled for horizontal and vertical cross-sections.
The Reset button (Alt + R) discards all the changes you have made.
The Close button (Alt + C)

85

J.4. Editing style of profile lines


The style of profile lines can be edited with the Profile style dialog (Fig. 63). To display Profile
dialog, go to Profile (Alt + P ) Profile style.

Fig. 62. Influence of interpolation method on the appearance of a height profile. The height profile was
cut along a diagonal of a 128 x 128 AFM topography image. A Nearest neighbor interpolation, B
Bilinear interpolation, C Bicubic spline interpolation.

Fig. 63 Dialog for editing style


of profile lines. Different
styles can be set for finished
and unfinished profile lines,
using the controls in the
tabbed pane a. The styles can
be applied to ROIs in other
charts or saved as default
using the buttons b.

The Profile style dialog allows you to set different style for finished profile lines and the profile
lines that are still being drawn. Profile lines get instantly updated when you introduce changes
86

to their style, which makes it easier to find the optimal style parameters. You can edit the stroke
of the profile lines, the size of the arrowhead that shows the direction of the profile, and the
color and font of the labels.
Actions accessible through buttons (Fig. 63 b):

Batch apply (Alt + B) applies this profile line style to all charts of the same type in the
same dialog. Charts of the same type are usually grouped under the same tab in a chart
dialog.
Save as defaults (Alt + S) saves this profile line style to a OS-dependent backing store. In
case of MS Windows, the backing store is simply the Windows Registry. From now on,
this style will be used to as the default style to draw profile lines on the charts of the
same type as the currently modified chart.
Reset to defaults (Alt + R) resets the style of profile lines to the default style (see above).
Undo (Alt + U) reverts the introduced changes.

J.5. Creating and modifying Regions of Interest (ROIs)


Often it is necessary to restrict analysis of an AFM image to a selected region. For example, you
may need to compare distributions of some quantity in different regions of a heterogeneous
sample, or to exclude substrate from the analysis. AtomicJ allows you to select Regions of
Interest (ROIs) for this purpose. ROIs are supported by images, maps, stacks and stack crosssections.
You can draw any number of ROIs on a single image with the mouse. ROIs are automatically
drawn on all image channels. Four types of ROIs are available rectangular, elliptic (including
circular), polygonal and free hand (of arbitrary shape). Before you add one, you have to choose
the type of ROI you need.- The current type of ROI determines how mouse actions on the chart
clicks and movements are interpreted to create a ROI. In other words, each type of ROI is
associated with its own mouse input mode for details, see section G. Mouse actions on charts.
Different types of ROI can be easily drawn on the same image - you can always add a ROI of
other shape, just switching to different ROI type.
Actions for selecting input modes for ROIs:

to select the polygonal ROI mode, press in the toolbar icon


Polygon ROI

to select the rectangular ROI mode, press in the toolbar icon


R) Rectangular ROI

or go to ROI (Alt + R)

or go to ROI (Alt +

87

to select the elliptic ROI mode, press in the toolbar icon


Elliptic ROI

to select the free hand ROI mode, press in the toolbar icon
(Alt + R) Free hand ROI

or go to ROI (Alt + R)

or go to ROI

Once you have selected the type of ROI you need, you can draw and modify it with the mouse.
to create a rectangular or elliptic ROI, click the left mouse button at the desired
position. A small ROI will be drawn, which can be then reshaped.
to create a polygon ROI, click the left mouse button, move the mouse to the next vertex
and click the left mouse button there. Repeat this until all vertices are added. To finish,
click the right mouse button.
to create a free-hand ROI, click the left mouse button and move the mouse. ROI
boundary will follow mouse movement. To finish, click the right mouse button.
to reshape a rectangular or elliptic ROI, move the mouse over its edge, press the left
mouse button and drag the mouse.
to reshape a polygon or free hand ROI, move the mouse over its edge and single click
the left mouse button. Moveable circles will appear at the vertices. To reposition one of
the them, move the mouse over the circle, press the left button and drag the mouse. To
hide the circles, single click the left button on the line.
to translate a ROI, move the mouse over it, press the left mouse button and drag the
mouse. The ROI will follow the mouse.
to remove a ROI, move the mouse over its edge and double click the left mouse button.
to merge multiple ROIs, go to ROI Merge ROIs. A dialog will appear, which will let you
select which ROIs should be merged and whether individual ROIs should be deleted after
merging.
to subtract ROIs, go to ROI Subtract ROIs. A dialog will appear, which will let you
select the operands and whether individual ROIs should be deleted after subtraction.

88

This action is unavailable if there are no overlapping ROIs drawn on the currently
displayed image.
to complements ROIs, go to ROI Complement ROIs.

You can also draw ROIs which includes whole image, except for a hole (Fig. 33 B). The shape of
the hole depends on the current ROI mode. For example, when drawing holes is switched on
and the Rectangular ROI mode is on, you can select a ROI which includes the whole image
except for a rectangle. To draw ROIs with a hole, go to ROI Draw ROI hole.
By default, ROIs are identified with consecutive natural numbers. You can also specify a name
for the ROI. Move the mouse over ROIs label, then double - click left mouse. A dialog will
appear, which will lets you specify a new name.
J.6. Descriptive statistics for ROIs.
Descriptive statistics (Fig. 64) are calculated for the area inside all ROIs taken together and for
each ROI separately. For the list of statistics calculated by AtomicJ, see the subsection
Descriptive statistics in Working with the results of curve processing.
The descriptive statistics are instantly updated when you move or reshape ROI, so you can use
ROI to probe the differences between parts of the sample.

Fig. 64. Descriptive statistics calculated for image ROIs. The statistics are grouped in several tables, each
for a different image channel, under its own tab. Each table contains statistics for all ROIs taken
together) and for ROI batch separately. The statistics are instantly updated when you reshape or
translate one of the ROIs.

to display descriptive statistics for ROIs, go to Data Statistics ROIs, or use the
shortcut Ctrl + Shift + T.

89

J.7. Histograms for ROIs


Image dialog lets you generate both static and live histograms for the area inside all ROIs. Static
histograms are not updated when you translate or modify ROIs. Live histograms are instantly
updated in response to every modification to ROIs. For more information about histograms, see
section F.3. Creating histograms.

to generate static histograms for ROIs, click the toolbar icon


Draw ROI histograms, or use the shortcut Ctrl + Shift + D.

to display histograms already generated in the current session, you click the toolbar
icon
, or go to Data Show histograms, or use the shortcut Ctrl + H.

, or go to Data

Histograms for ROIs are stored in the same dialog as the histograms for the whole image.

to display Live ROI histogram, you can use the shortcut Ctrl + Shift + H, or go to Data (Alt
+ R) Live ROI.
J.8. Box plots for ROIs

Image dialog lets you generate both static and live box-plots for the area inside ROIs. Static box
plots are not updated when you translate or modify ROIs. Live box plots are instantly updated in
response to every modification to ROIs. For more information about box plots, see section F.5.
Creating box plots.

to generate static box plots for ROIs, click the toolbar icon
ROI box plots.

to display histograms already generated in the current session, you click the toolbar
icon
, or go to Data Show box plots.

to display Live ROI box plots go to Data (Alt + R) Live ROI box plots.

or go to Data Draw

90

J.9. ROI Shape Factors dialog


The Shape factors dialog (Fig. 65) provides detailed information about the geometry of the
selected regions of interest. It contains the values of shape factors, like area or perimeter,
calculated for each ROI. It can be accessed from all dialogs that display charts supporting regions
of interest (ex. Image Dialog and Map Dialog). To display it, go to ROI Show ROI shape factors
or use the shortcut Ctrl + Shift + U.

Fig. 65. Dialog containing shape factors for ROIs. The shape factors are instantly updated when you
reshape or translate one of the ROIs.

For each ROI, the following properties are provided:

ROI the name of the ROI. The same name is used as a ROI label in the chart.
Area area in square microns.
Centroid X the first coordinate of the geometric center
Centroid Y the second coordinate of the geometric center
Perimeter
Box width the width of the smallest rectangle that completely encloses the roi and
whose sides are parallel to the axes
Box height the height of the smallest rectangle that completely encloses the roi ad
whose sides are parallel to the axes
Feret min the shortest feret (or caliper) length
Feret max the longest feret (or caliper) length
Circularity index a measure of circularity, calculated according to the equation:
f

4 A
P2

where f circularity index, A area, P perimeter


91

J.10. Editing style of ROIs


Regions of Interest (ROIs) are supported by images, maps, stacks and stack cross-sections. In all
cases, their style can be edited with the ROI style dialog (Fig. 66).

to display ROI style dialog, click ROI in the main menu bar, the click ROI style in the
drop-down menu.

Fig. 66. Dialog for editing style


of ROIs. Different styles can
be set for finished and
unfinished ROIs, using the
controls in the tabbed pane a.
The styles can be applied to
ROIs in other charts or saved
as default using the buttons b.

The ROI style dialog allows you to set different style for finished ROIs and the ROIs that are
being drawn. The ROIs get instantly updated when you introduce changes to their style, which
makes it easier to find the optimal style parameters.

Fig. 67. The inside of the ROI can be left empty (A) or
filled with a color, preferably a semi-transparent one.

You can edit the stroke used to draw


the boundaries of ROIs, as well as the
color and font of the labels. In addition,
you can choose whether the inside of
ROIs should be filled. Filling with semitransparent color is helpful when ROIs
are self-intersecting and it is not
immediately clear which area is inside
(Fig. 67).

Actions accessible through buttons (Fig. 66 b):

Batch apply (Alt + B) applies this ROI style to all charts of the same type in the same
dialog. Charts of the same type are usually grouped under the same tab in a chart dialog.
Save as defaults (Alt + S) saves this measurement style to a OS-dependent backing store.
In case of MS Windows, the backing store is simply the Windows Registry. From now on,
92

this style will be used to as the default style to draw ROIs on the charts of the same type
as the currently modified chart.
Reset to defaults (Alt + R) resets the style of ROIs to the default style (see above).
Undo (Alt + U) reverts the introduced changes.
J. 11. Image processing

The Image dialog lets you modify the whole images and the selected Regions of Interest. Height
profiles, descriptive statistics and the Live Histogram are instantly updated whenever you
modify the images.

to ensure that the values in the image starts from 0, you can either:
1. go to Process Fix zero.
2. or move the mouse over the image, then click the right mouse button. Click Fix
zero in the context menu.
3. or use the shortcut Ctrl + F.
This option finds the lowest value in the image and subtracts it from all values in the
image.

to correct the substrate tilt, first draw a ROI (see subsection J.5. Creating and modifying
Regions of Interest (ROIs)) around the substrate in the image (or multiple ROIs), then
either:
1. go to ROI (Alt + R) Correct ROI plane.
2. or move the mouse over the image, then click the right mouse button. Click the
Correct ROI plane in the context menu.
3. or use the shortcut Ctrl + Shift + I.
This options fits a plane to the inside of all selected ROIs taken together and subtracts it
from the whole image.

to threshold the parts of image, go to Process Threshold . The Set data thresholds
dialog (Fig. 68) will be displayed. It lets you specify whether the thresholding should be
applied to the whole image, the area outside or the area inside of ROIs, set the lower
and upper thresholds, and specify the values that will replace the pixels smaller than the
lower threshold and greater than the upper threshold.

93

Fig. 68. Dialog for thresholding images. Thresholding can be applied either to the whole image,
or to the area inside or outside the selected ROIs.

to add or subtract a plane, go to Process Add function. The Add function dialog (Fig.
69) will be displayed. It lets you specify whether the plane should be added to the whole
image, or to the area outside or inside the selected ROIs. Here you can also set the
parameters in plane equation.

Fig. 69. Dialog for adding (or subtracting) plane to images. The plane can be added to the whole
image, or the area inside or outsides the selected ROIs

to remove polynomial background, go to Process Remove background. The Remove


background dialog (Fig. 70) will be displayed. Here you can specify the degree of the
polynomial that will subtracted as the image. The degrees for x and y can be set
independently. The polynomial can be fitted to the whole image, or to the area that is
inside or outside selected regions of interest. The image is instantly updated when you
change the degrees or the area to which the polynomial is fitted.

Fig. 70. Dialog for removing


the polynomial background.
Polynomial can be fitted to
the whole image, or the
area inside or outside ROIs.
Its degree can be set
independently for x and y.

94

to replace parts of the image inside or outside ROIs with a place, go to Process
Replace. The Replace data dialog (Fig. 71) will be displayed. It lts you specify whether the
plane should replace the outsides or insides of ROIs and set the plane equation
parameters

Fig. 71. Dialog for replacing insides or outsides of ROIs with a plane.

to convolve the image with an arbitrary kernel, go to Process Convolve. The Convolve
dialog (Fig.) will popup. It lets you specify the components of the convolution matrix and
whether it should be normalized. You can apply the convolution to the whole image, or
only to its selected parts, outside or inside ROIs.

Fig. Dialog for generic


convolution. You can
specify the dimensions
of kernel and the values
of its elements. The
convolution can be
applied to the whole
image, all to the area
inside or outside of all
selected ROIs.

95

N. Working with maps


K.1. Map dialog
The maps generated from the processed force volume recordings are stored in the Map
dialog. It stores all maps that were generated during the current session, unless they have been
cleared. The map dialog contains a list of force volume recordings (Fig. 72 d) that allows you to
navigate between maps for different recordings.
The map dialog pops up immediately after processing of force curves is finished, if any of the
processed batches contained a force-volume recording. It contains a central tabbed pane and
each of the generated maps is located under its own tab. Seven different maps are always are
generated:

Map of Youngs modulus


Map of Transition indentation, which shows the indentation depth at which significant
deviations from the Hertz model first appeared
Map of Transition force, which show the force that was necessary to reach the transition
indentation
Map of Contact position, which is the map of the sample topography
Map of Contact force
Map of Adhesion force
Map of Deformation, which shows the maximum indentation depth

Depending on the contact model used for force map processing, additional maps may be
generated:

Map of Adhesion energy (DMT, JKR, Maguis and Sun-Akhremitchev-Walker)


Map of the Fungs exponent (for Fungs hyperelastic model, see section M.2., equation
13, where it is denoted as b).

The Map dialog resembles the Image Dialog. All actions that can be performed on images

can also be performed on maps. In addition, the map dialog allows recalculating of force
curves and for creating stacks.

96

K.2. Recalculating force curves


The map dialog lets you recalculate force curves in the current force-volume recording. You can
recalculate all curves, curves within ROIs or just a single curve. Thanks to this, you can use
different processing settings for different parts of a map, or to recalculate manually the force
curves that turned out to be poorly processed with the automatic method.
To recalculate all force curves, go to Curves (Alt + U) Recalculate (Ctrl + R). A dialog will
popup, where you can specify whether to recalculate all curves, or the curves inside or outside a
selected ROI. You can also specify whether to update the old maps, or to keep them intact and
create new ones with the recalculate results. The old charts for individual curves and the old
entries in the Result dialog can be deleted or kept along the recalculated ones.
To recalculate a single curve, move the mouse over the position in a map that you want to
recalculate, then click the right mouse button. Click the Recalculate curve item in the context
menu.

Fig. 72. The Map dialog stores the maps generated in the current session. It contains a list of processed
files with force-volume recordings (d) and a central panel (c), displaying each map under its own tab.
Maps can be manipulated and analyzed through action accessible from the main menu bar (a), toolbar
(b) and a set of buttons (c).
97

K.3. Navigating to processing results


The map dialog allows you to find charts showing the force curve, force indentation curve and
pointwise modulus indentation curve, as well as the numerical results of processing that
correspond to the selected position on the map.

to go to charts, you can either:


1. move the mouse over the position of interest, then click the right mouse button.
Click the Find graphs in the context menu.
2. move the mouse over the position of interest, then double click the left mouse
button.
3. add map marker. Click Curves in the menu bar, then Add map marker. The map
marker is a moveable chart annotation when it is dragged with mouse, the
charts corresponding to its position are selected.
The Graphical results dialog will be shown, displaying the charts corresponding to the
clicked position, if they are accessible. If the charts cannot be found (either they
were not generated or they have been deleted), another dialog will pop up, asking
you whether you want to preview the force curve.

to go to the processing results, the mouse over the position of interest, then click the
right mouse button. Click the Find results in the context menu. Unless the results have
been cleared, The Results dialog will be shown, with the rows corresponding to the
clicked position selected.
K.4. Generating stacks

Force volume recordings contain information about the changes in mechanical properties of
the sample across its depth. This information cannot be displayed in a single map, but you can
still extract this information in the form of stacks.
Stacks consist of series of frames and can be thought of as movies. Each frame is a map showing
the spatial distribution of some quantity, calculated either for a particular indentation depth
(Fig. 73 A) or tip displacement (Fig. 73 B). You can generate stacks for the following quantities:

force that produced the current indentation or tip displacement

pointwise modulus, calculated for the current indention depth or tip displacement

stiffening, which is the difference between Youngs modulus calculated from the fit
to force indentation curve and the pointwise modulus, calculated for the current
indentation depth or tip displacement.
98

Fig. 73. Stacks can be generates for a


series of indentation depths (A) or tip
displacements (B).

Often we are not interested in the whole area in the map, but only in a particular region. This is
the case when the map contains not only your sample, but surrounding substrate, ex. mica. The
map dialog allows you to create stack only for the selected ROIs.
All types of stacks can be generated through the main menu of the Map dialog:

to generate the force stack, go to Stacks (Alt + T) Force stack.

to generate the pointwise modulus stack, go to Stacks (Alt + T) Pointwise modulus


stack.

to generate the stiffening stack, go to Stacks (Alt + T) Stiffening stack.

In each case, a dialog similar to the dialog in Fig. 74 will appear. Here you can specify the
settings necessary for generating the stack:
o

o
Fig. 74. Dialog for specifying the parameters of
a stack.

the part of map used for stack generation. You


can generate a stack for the whole map, the
area inside or outside a single ROI or all ROIs
taken together
the Fix contact checkbox determines whether
the frames are calculated for different values
of indentation (checkbox selected) or tip
displacement (not selected)
the Minimum field lets you specify the
smallest
value
of
indentation/tip
displacement. It will be used for the first
frame.

99

o
o

the Maximum field lets you specify the largest values of indentation/tip
displacement. It will be used for the last frame.
the Frame no field lets you specify the number of frames n. This number determines
the step between successive frames, which equals (Maximum Minimum)/(n - 1).

Once you specified all the parameters, click the OK button (Alt + O).
K.5. Force contour mapping
Force contour mapping resembles stacks
described above, but now each frame is
generated for a fixed value of force. Force
exerted on the sample is a function of the
position on the sample and the depth of
indentation (or, alternatively, tip displacement).
Each frame shows a contour of this function,
calculated for a particular value of force F, i.e. the
set of points for which force equals F. Fig. 75
explains how force contours are calculated.
Fig. 75. Force contour mapping involves generating
a series of 2D arrays or frames, each showing indentation
for a particular value of force.

K.6. Customizing map style


Style of maps can be customized using the
dialogs described in the section H.
Customizing the style of charts. The chief
among them is the Live style dialog,
containing a special series editor for maps. It
consists of two tabs. The General tab (Fig.
76) allows you to specify the style of pixels
forming the map, while the Label tab (Fig.
77) is for specifying the format of numeric
labels that can be added to the map (Fig. 78).
Fig. 76. Series editor (see section H.1.a.) for maps. The General tab is displayed. Here you can specify
whether tooltips should be displayed, what shape should be used as a map pixel or whether to draw
guidelines (i.e. lines that shows the grid on which the maps is based).
100

Fig. 77. Series editor (see section H.1.a.) for maps. The Label tab is displayed. Here you can specify whether
labels should be displayed and what color and font should be used. You can also set the number format
used for labels. By default if the map is too large to display all labels clearly, the labels are hidden.

Fig. 78. A zoomed-in part of a Young's modulus map with labels visible. Labels are hidden by default if the
map is so large that the labels would overlap, but you can always switch them off for a smaller, zoomed-in
area, using the Live chart style dialog.

101

L. Working with Stacks


Stacks provide an insight into three-dimensional distribution of the mechanical properties of the
sample. Stacks are series of frames, showing force, pointwise modulus or stiffening calculated
for particular values of indentation or tip displacement. They can be generated from processed
force-volume recordings, through the Map dialog (see the section J. Working with maps).
L.1. Stack dialog
Stacks are displayed in the Stack dialog (Fig. 79), resembling a movie player. It is equipped with
a menu bar, a central panel where the stack is displayed, a slider for manual changing of frames
and a set of buttons for playing the stack as a movie. While stack as a whole can be thought of
as a movie, individual frames are charts, similar to map charts, so most of the actions that can
be performed on other charts can be also performed on stacks.

Fig. 79. The Stack dialog. The


central panel displays the
current frame of the stack (b).
Stacks can be manipulated
and analyzed using the
actions accessible from the
main menu bar (a) or played
as a movie with the help of
dedicated controls (c, b).

102

L.2. Saving stacks to files


You can either save a whole stack as a movie file, or individual frames as image files.

to save the current frame, you can either:


1. go to File (Alt + F) Save (Ctrl + S).
2. move the mouse over the stack, then click the right mouse button. A context
menu will appear. Click the Save as item.
In both cases, the Save dialog appears. See section I. Saving charts for details.

to save all frames as separate image files, go to File (Alt + F) Save all frames (Ctrl +
Shift + S)

to save the whole stack as an AVI movie, go to File (Alt + F) Save as movie. The Save
dialog appear. See section I. Saving charts for details.
L.3. Playing stack as a movie

Stacks can be played as a movie both forward and in reverse. The user can modify the frame
rate and the movie length. The stack dialog is equipped with an easily accessible set of buttons
(Fig. 79 d) for playing the movie. Additional actions can be accessed from the Movie menu (Alt +
M in the main menu bar):

to play the movie, you can either:


1. click the button
at the bottom of the stack dialog
2. click Movie (Alt + M) in the menu bar (Fig. 78 a), then select the Play checkbox
item

to stop the movie, you can either:


1. click the button
at the bottom of the stack dialog
2. click Movie (Alt + M) in the menu bar, then deselect the Play checkbox item

to go to the next frame, you can either:

103

1. click the button


at the bottom of the stack dialog
2. go to Movie (Alt + M) Next frame.
3. use the shortcut Ctrl + Right arrow.

to go to the last frame, you can either:


1. click the button
at the bottom of the stack dialog
2. go to Movie (Alt + M) Last frame.
3. use the shortcut Ctrl + Up arrow

to go to the previous frame, you can either:


1. click the button
at the bottom of the stack dialog
2. go to Movie (Alt + M) Previous frame.
3. use the shortcut Ctrl + Left arrow.

to go to the first frame, you can either:


1. click the button
at the bottom of the stack dialog
2. go to Movie (Alt + M) First frame.
3. use the shortcut Ctrl + Down arrow.

to reverse the direction, go to Movie (Alt + M) Forward.

to change frame rate or movie length, go to Movie (Alt + M) Edit parameters. The
movie parameters dialog (Fig. 80) will be displayed. Here you can specify the rate in
frames per seconds (fps) or the length in seconds. These parameters are interdependent
when you change one, the other gets updated automatically.

Fig. 80. Dialog for changing the rate or


length of the stack movie.

104

L.4. Recalculating force curves


The Stack dialog allows you to recalculate curves in the force-volume recordings from which the
stack was generated. This is similar to recalculating curves from the Map dialog. Now, however,
you can judge whether recalculation is necessary from the quality of stack. You can recalculate
all curves, curves within ROIs or a single curve. You can also use different processing settings for
different parts of the stack, or to recalculate manually the force curves that turned out to be
poorly processed with the automatic method.

to recalculate all force curves, go to Curves (Alt + U) Recalculate (Ctrl + R). This opens
The Processing assistant, allowing you to recalculate the force-volume recordings
corresponding to the stack. For instruction on how to process force curves, see section E.
Force curve processing. After processing is over, recalculated maps will be added to the
Map dialog. Now you can generate a new stack for details, see section K. Working with
maps.

to recalculate the curves within ROIs, go to Curves (Alt + U) Recalculate ROIs (Ctrl +
Shift + R)

to recalculate a single curve, move the mouse over the position in the stack that you
want to recalculate, then click the right mouse button. A context menu will appear. Click
the Recalculate curve item.

L.5. Navigating to processing results


The Stack dialog allows you to find charts showing the force curve, force indentation curve
and pointwise modulus indentation curve, as well as the numerical results of processing that
correspond to the selected position on the current frame of the stack.

to go to charts, you can either:


1. move the mouse over the position of interest, then click the right mouse button.
A context menu will appear. Click the Find graphs item.
2. move the mouse over the position of interest, then double click the left mouse
button.
The Graphical results dialog will be shown, displaying the charts corresponding to the
clicked position, if they are accessible. If the charts cannot be found (either they

105

were not generated or they have been deleted), another dialog will pop up, asking
you whether you want to preview the force curve.

to go to the processing results, the mouse over the position of interest, then click the
right mouse button. A context menu will appear. Click the Find results item. Unless the
results have been cleared, The Results dialog (Fig. 21) will be shown, with the rows
corresponding to the clicked position selected.

L.6. Customizing stack style


Style of stacks can be customized using the same menu options and dialogs that are available
for image and map charts. You can use The Live chart style dialog, the Color gradient dialog or
the Range histogram dialog, all of which can be displayed from the Chart (Alt + C) menu in the
main menu bar for details go to section H. Customizing style of charts. Here it is important to
note that:
1. the changes in the style of the stack are always applied to all frames, so you can modify
the whole stack with a single click.
2. stacks are updated instantly when you modify their style, even if they are being played
as a movie. This makes it easier to choose the best style, as you see at once what is the
effect of the changes you are introducing.
3. by default, the stack title gets updated when you change the frame or play the stack as
a movie. The current level of the stacking quantity (for example force) is automatically
set as the title. You can override this behavior, using the Title editor of the Live chart
dialog (Ctrl + L) (see section H.1.d.). It contains an additional tab, named Updating,
where you can also set the number format used for automatic titles.

106

L.7. Drawing histograms for a stack


Histograms can help you to analyze the distribution of the quantity shown in the stack. You can
find out how distribution changes between frames using the Live histogram dialog. The live
histogram is instantly updated when you change the frames manually or the movie is playing.
Alternatively, you can generate a histogram for a single frame:

to draw a histogram for the current frame, go to Data Draw frame histogram
(Ctrl + D). The histogram assistant will appear, where you can specify how the histogram
should be drawn. For details about the Histogram assistant, see section F.3. Creating
histograms.
to view the histograms already generated for the frames, go to Data (Alt + C) Frame
histograms (Ctrl + H)
to draw a live histogram, go to Data Live histogram (Ctrl + Shift + L). If the live
histogram has not been already drawn, the Histogram assistant will be displayed to
collect drawing settings.
L.8. Displaying descriptive statistics for a stack

Descriptive statistics are calculated for each frame separately and are stored in a separate
dialog. Statistics for all frames are displayed in the same table, so you can easily compare them
(Fig. 81). See section F.7. Descriptive statistics for details about the descriptive statistics
calculated by AtomicJ. To display descriptive statistics for each frame, go to Data Statistics
(Ctrl + T).

Fig. 81. Descriptive statistics calculated for stack frames.

107

L.9. Displaying raw stack data


Each frame of a stack is a visual representation of an array of numbers. You may want to view or
save this raw data, for example to analyze it statistically or to plot it using another application.
For more details on displaying raw data, see section D.2. Raw data dialog. To display raw stack
data, go to Data Raw data (Ctrl + W).
L.10. Making cross-sections
Cross-sections can help you to analyze the stack, revealing spatial distribution of the visualized
quantity in the direction perpendicular to the sample surface. Stack cross-sections are twodimensional arrays of values, with rows corresponding to the frames in the stack. Those arrays
are displayed as images. You can control the interpolation method used to create the crosssection, which is especially important if the cross-section is not cut along the pixels.
The simplest cross-sections are horizontal or vertical, cut along the lines formed by pixels in the
stack frames. You can create at once a series of such cross-section, cut at regular intervals.
Sometimes, however, you will need greater flexibility, for example to make cross-section
perpendicular the direction of filaments or fibers present in the sample. The stack dialog allows
you to create flexible cross-section cut along an arbitrary line.
The cross-sections are dynamic entities, tightly coupled to their parent stacks. User-interactive
chart elements - lines and markers, are drawn both in the stack and cross-section charts. They
help you to find out how the futures in the stack correspond to the features visible in the crosssection.
In the cross-section chart, the following interactive elements are drawn by default:
1. a horizontal line (white dashed in Fig. 82 and 84), marking the Y-coordinate of the
current frame in the stack. You can move it with the mouse to change the frame in the
stack. It moves when you change frames in the stack itself.
2. at least one vertical line (white solid in Fig. 82 and 84), acting as a moveable marker. This
marker is coupled with a corresponding triangular marker in the stack if you move one,
the other also moves.
In the stack, the user interactive elements are drawn when cross-sections dialogs are visible or
in case of flexible cross-sections when the Extract profile mode is on:

108

1. cross-section lines (white solid in Fig. 85) showing where the cross-sections were cut.
You can move these lines with the mouse - the cross-sections are then updated
accordingly.
2. triangular markers (white triangles in Fig. 85) that can be moved with the mouse along
the section lines. Their position is coupled to the position of the vertical lines in the
cross-section chart. You can delete the marker or add new markers with mouse.
Actions for manipulating markers, common to all stack cross-sections:

to add a new marker in the Stack dialog, move the mouse over the section line and then
click the right mouse button. In the Stack dialog, a new triangular marker will be added.
In the Cross-section dialog, a new vertical line will be drawn in the position
corresponding to the marker.

to add a new marker in the Cross-section dialog, go to Markers (Alt + K) Add marker
(Alt + A). If this item is selected, the mouse cursor appears as a cross over the crosssection plot and you can add markers by clicking the left mouse button. Once you added
markers, deselect the Add marker item.

to move a marker in the Stack dialog, move the mouse over the marker (small triangle),
press the left mouse button and drag the mouse. The marker will move along the section
line.

to move a marker in the Cross-section dialog, move the mouse over a vertical line, press
the left mouse button and drag the mouse.

to remove a marker in the Stack dialog move the mouse over the marker (small
triangle), then double click the left mouse button.

L.11. Horizontal and Vertical cross-sections


Series of horizontal and vertical cross-sections are displayed in separate Cross-section dialogs.
You can think of a series of cross-sections as a movie. Successive cross-sections, taken at regular
intervals, are then frames. The Cross - sections dialog resembles a movie player. It is equipped
with a menu bar (Fig. 82 a), a central panel where the current cross-section is displayed (b), and
a slider together with a set of buttons for playing the series of cross-sections as a movie (c). For
details on how to play a movie, see L.3. Playing stack as a movie in the section Working with
stacks.
109

to display a stack cross-section, go to Sections (Alt + E) in the menu bar, then Horizontal
slices (Alt + H) or Vertical slices (Alt + V). A cross-section dialog will be displayed
(horizontal shown in Fig. 82, vertical in Fig. 83).

Fig. 82. The Horizontal section dialog. The central panel displays the current frame of the cross-section
movie (b). Cross-sections can be manipulated and analyzed through action accessible from the main
menu bar (a) or played as a movie with the help of dedicated controls (c, b).
The horizontal dashed line marks the Y-coordinate of the current frame in the sectioned stack.

Fig. 83. The Vertical section dialog.

110

L.12. Flexible cross-sections


Flexible cross-sections are extracted along arbitrary section lines that can be drawn on any stack
frame. To generate a cross-section, you have to first draw the section line. Please consult the
G.3. Extract profile mode subsection in Mouse actions on charts. The cross-sections are
displayed in the Flexible slices dialog (Fig. 84). The dialog contains a separate tab for each
section you have made. The tab name is the section number, the same that is displayed in the
Stack dialog next to the section line (Fig. 85). If you generate a new cross-section, a new tab is
added, if you delete a section, the corresponding tab is removed.
Flexible cross-sections are dynamic. When you translate, change the angle or length of the
section line in Stack dialog, the corresponding cross-sections in the Flexible dialog are
immediately updated. Just like horizontal or vertical sections, the flexible cross-sections are
tightly coupled to their parent stacks. The same user-interactive chart elements - lines and
markers - are draw both in the stack and cross-section chart.
Actions accessible from the Stack dialog:

to generate a new flexible cross-section, go to Sections (Alt + T) in the menu bar of the
Stack dialog, then select the Line section, Polyline section or Free hand section in the
drop-down menu. This will turn on the Extract profile mode, in which you can draw the
cross-section line with the mouse. Please refer to the section Mouse actions on charts
and stacks for more details. A cross-section dialog will be displayed (Fig. 84).

to translate the section profile in the Stack Dialog, move the mouse over it, press the
left mouse button and drag the mouse. The line will follow the mouse and the crosssection will be instantly updated.

to modify the section profile, move the mouse over it and single click the left mouse
button. Moveable circles will appear at its ends of line profiles and nodes of the
polyline/free hand profiles . To reposition one of the endpoints or nodes, move the
mouse over the circle, press the left button and drag the mouse. To hide the circles,
single click the left button on the line. The cross-section will be instantly updated.

to remove the cross-section, move the mouse over the cross-section line and double
click the left mouse button.

to show flexible cross-sections, go to Sections (Alt + T) Flexible sections (Alt + F) in


the Stack dialog.

111

to view the length, angle and position of the section lines, go to Sections (Alt + T)
Section geometry (Alt + G) in the Stack dialog. A dialog with geometrical parameters of
section lines will be displayed.

Fig. 84 (above). The Flexible section


dialog. Its central part is occupied by a
tabbed pane, displaying crosssections. Each cross-sections is
displayed under its own tab, named
the same as the corresponding section
line in the Stack dialog (Fig. 85).

Fig. 85 (left). The Stack dialog with


two section line draw. The
corresponding cross-sections are
displayed in the Flexible section
dialog. Note the small triangular
markers on the section lines each of
them corresponds to a vertical marker
in the Flexible section dialog, located
in the same position.

112

L.13. Selecting interpolation method for stack cross-sections


Creating a stack cross-section may require interpolation to find values corresponding to the
positions between the nodes in the grid of force-volume data. Interpolation is almost always
necessary for flexible sections. Because horizontal and vertical sections are cut along the nodes
of the force volume data (i.e. along the pixels in stack frames), interpolation is not used as long
as the number of points included in the cross-section equals the size of grid. AtomicJ supports
three interpolation methods:

nearest-neighbor interpolation
bilinear interpolation
bicubic spline interpolation

You can also specify the number of points calculated for the cross-section, i.e. its resolution. For
horizontal and vertical sections the default number of points is equal to the size of the grid. For
flexible cross-sections, the default value is always 200. The choice of interpolation method
influence the visual appearance of the cross-section.

to change the interpolation method, use the Section interpolation dialog (Fig. 86). To
display it, you can either:
1. click Interpolation (Alt + I) in the main menu bar of the cross-section dialog, then
click Change section interpolation (Alt + S) in the drop-down menu.
2. use shortcut Ctrl + I.

Fig. 86. Dialog for specifying the


method of interpolation and the
number of points extracted from each
frame of the stack. Nearest neighbor,
bilinear
and
bicubic
spline
interpolation methods are supported.

The section interpolation dialog (Fig. 86) allows you to select the method of interpolation and
the number of points that make up the cross-section. The images of cross-section are
immediately updated to reflect the introduced changes. The dialog is equipped with three
buttons.
1. The Apply to all button (Alt + A) applies the interpolation to all flexible crosssections. This button is disabled for horizontal and vertical cross-sections.
2. The Reset button (Alt + R) discards all the changes you have made.
3. The Close button (Alt + C)
113

L.14. Overlaying map profiles on stack cross-sections


Features present in the stack cross-section may be correlated with the features visible in the 2D
maps, for example sample topography (i.e. position of contact point) or Youngs modulus. To
find out if there is any correlation, you may wish to overlay the stack cross-section with map
profiles. Cross-section dialogs allows you to choose which profiles should be overlaid and which
interpolation method should be used to generate them.

Fig. 87. The Overlay assistant. You can


overlay map profiles selected in the
Overlay assistant on a stack cross-section.
Map profiles will be extracted along the
same line as the stack-cross-sections.

to overlay a map profile on the stack cross-section,


go to Overlay Overlay section (Ctrl + Y). An
Overlay assistant will be displayed (Fig. 87). It
contains several checkboxes, each for a different
map. Select the checkboxes for the maps whose
profiles you want to overlay and click the Finish
button (Alt + F). The overlaid profiles are now visible
(contact position overlaid in Fig. 88)

to change interpolation method used to generate


overlaid profile, go to Interpolation Change
overlay interpolation. An Interpolation parameters
dialog will be displayed, where you can select the
method of interpolation.

Fig. 88. The Horizontal


section dialog with the
overlaid Contact position
profile extracted from the
map. The position of contact
point shows the sample
height. Both stack crosssection and map profile are
instantly updated when you
move
or
modify
the
corresponding section line in
the Stack dialog or Map
dialog.

114

M. Appendix
M.1. How to open Windows Command Prompt?
Vista, Windows 7:
1. Click Start (the Windows flag in left bottom corner)
2. Type cmd
3. Press enter.
Windows XP:
1. Click Start (left bottom corner)
2. Click Run
3. Type cmd

M.2. Force indentation relations


The relation between indentation and force depends on the shape of the tip and the thickness
of the sample. AtomicJ supports several tip shapes Sphere, Cone, Pyramid, Power-shaped,
Hyperboloid, Power-shaped, Blunt cone, Blunt pyramid, Truncated (flat-ended) cone and
Truncated pyramid. For sphere and cone it also implements corrections for finite thickness of
the sample. All equations assume that the material behaves as linear elastic (i.e. that the
indentations are relatively small).

115

Fig. 89. Tip shapes: a. Paraboloid that approximates sphere in the Hertzs equation. R radius of
curvature at the apex. b. Hyperboloid. R radius of curvature at the apex, half angle
between the asymptotes.

e
Fig. 89 (cont.). Tip shapes. c. Cone.
half angle. d. Blunt cone (cone capped
by a sphere). R- radius of curvature at
the apex, b tip radius at the level of
transition between the capping sphere
and the cone, half angle. If the
transition from sphere to cone is
smooth,

then

b RCos .

e.

Truncated cone. b truncation radius,


half angle

In the equations, we will use the following symbols:


E Youngs modulus;
Poissons ratio
depth of indentation;
a contact radius
h sample thickness
Tip geometry parameters are explained in Fig. 88.
1. Sphere (Hertz). An approximation of the sphere by a paraboloid. It is accurate when the
contact radius a is much smaller than the sphere radius R, which means that

R.
116

4E
P
3 1 2

3
2

2. Sphere (Sneddon). Unlike Hertzs, Sneddons solution (Sneddon 1965) does not require that

R.

E R2 a2
Ra
P
Log
a R
2
1 2
Ra

a
Ra
Log

2
Ra

3. Sphere, thin sample (Dimitriadis et al. 2002)

4E
3 1 2

3
2
4 2
8
4 2 3 16 3 3 2 4
R 2 1 2 2 3 3
4

15

where

R
h

Coefficients and depends on whether the sample is adherent to the substrate or not.
For adherent sample:
3 2
1
5 2
0.056
1

0.347

For non-adherent sample:

1.2876 1.4678 1.3442 2


1

0.6387 1.0277 1.5164 2


1

4. Hyperboloid (Akhremitchev and Walker 1999)

R Cot
1
Ea 3 2
2

ArcTan
where

2
2
a
1 R
2 2
2

117

1
a2
ArcTan
2R 2
2 2

5. Cone (Harding and Sneddon 1945)


P

2E Tan

6. Cone, thin, incompressible sample (Gavara and Chadwick 2012)

8E Tan
3

2Tan
2
2
1
16 Tan 2
2h
h

For adherent sample, = 1.7795, for non-adherent = 0.388.


7. Power-shaped (Galin 1946). The tip is modeled as a solid obtained by revolving a power
function along the y axis. The tip is thus axisymmetric and its profile is given by the power
function f(r) = Ar.


2
E A
2
P
2 a 1
2
1 2 1
2

A 2 2
2 a

where is Eulers gamma function. Hertzs equation for sphere and Sneddons equation for
cone are special cases of the equation for the power-shaped tip, with = 2, A = 1/(2R) and = 1,
A = 1/Tan[], respectively. For example, the equation with = 2, A = 0.5 corresponds to the
Hertzs model with R = 1 m. In the AtomicJ interface, A is termed the factor and is termed the
exponent.
8. Blunt cone (Briscoe et al. 1994). The Hertz solution for the sphere is applied for small
indentations, for which the contact radius a is smaller than the transition radius b. This is the
case as long as

b2
. For larger indentations:
R

118

2E
a2
b a
a

ArcSin

a 2 b2

2
2 Tan 2
1
a 3R

a
b a 2 2
ArcSin a b
Tan 2
a R

1
2

1/2

b
a 2 b2

2Tan
3R

9. Truncated cone (Briscoe et al. 1994). Truncated cone can be treated as a special case of
blunted cone, for which the radius of curvature at the apex is infinite. Substituting R = into
the equations for blunt cone, we get:

2E
a2
b
a

ArcSin a 2 b2

2
2 Tan 2
1
a

1
2

2Tan

a
b
ArcSin
Tan 2
a

10. Pyramid, regular, four sided (Bilodeau 1992)

1.4906 ETan[ ] 2

2 1 2

11. Blunt pyramid, regular, four-sided (Rico et al. 2005). The Hertz solution for the sphere is
applied for small indentations, for which the contact radius a is smaller than the transition
radius b. This is the case as long as

2E
1 2

b2
. For larger indentations
R

21/2 a 2
b a
ArcSin
a 2 b2
a
Tan

2
a
3
R

23/2 a
b a 2 2

ArcSin a b
Tan 2
a R

1
2

21/2 b
a 2 b2


Tan
3
R

1/2

12. Truncated pyramid (Rico et al. 2005). Truncated pyramid can be treated as a special case of
blunted pyramid, for which the radius of curvature at the apex is infinite. Substituting R = into
the equations for blunt pyramid, we get:

119

2E
21/2 a 2
b
a

ArcSin a 2 b2

2
Tan 2
1
a

1
2

21/2 b

Tan

23/2 a
b
ArcSin
Tan 2
a

HYPERELASTIC MODELS
13. Sphere, Fungs hyperelastic model (Fung 1979) .The equation for force indentation depth
relation was derived by Lin et al (2009), who found that the equation for spheres contact radius
a
from Hertzz model (used here) holds for hyperelastic materials as long as 0.4 .
R

a3 15Ra 2
20 E0 a5 15Ra 4 75R 2 a3
P
exp b

2
2
3
2
3
9 1 2 5Ra 50 R a 125R
25R a 125R

a R
14. Sphere, Ogdens hyperelastic model (Ogden 1972).The equation for force indentation
depth for single-term Ogdens model relation was derived by Lin et al (2009):
/2 1
1
40 E0 a 2
a
a

P
1 0.2
1 0.2
R
R
9 1 2

a R

ADHESIVE CONTACT
15. Derjaguin-Muller-Toporov (DMT) (Derjaguin et al. 1975). DMT model was derived for
indentation with a sphere (approximated by a paraboloid) in the presence of adhesion forces.
We implemented the most commonly referenced form of the DMT model, in which the
additional load due to adhesive forces equals 2R and is independent of indentation. This
formulation is due to Maugis (1992). DMT model gives good approximation of the load
indentation relationship only for stiff samples, small values of tip radius R and small surface
energy .
P

4E R
3/2 2 R
2
3 1

120

16. Johnson-Kendall-Roberts (JKR) (Johnson et al. 1971). JKR model was derived for indentation
with a sphere (approximated by a paraboloid) in the presence of adhesion forces. JKR model is
a good approximation of the load indentation relationship for soft samples, large value of
radius R and large energy of adhesion (Maugis 1992).

P=

4Ea 3
Ea 3
2
2
3R 1- 2
1- 2

a2

2 a
E
(1 2 )

17. Sphere, Maugis solution. Maugis (1995) derived the load indentation relationship in the
presence of adhesion, which takes into account the true shape of a spherical tip (as opposed to
the JKR model, which uses parabolic approximation).

2 2 + 2
+

2
Log [
]
2

1
4

2
1 2
(
)
=

a
+
2
Log [
]

1 2

18. Hyperboloid, Sun-Akhremitchev-Walker (SAW). Sun et al (2004) derived the load contact
radius and indentation contact radius relations for indentation with a hyperboloidal tip in the
presence of adhesion.
2

2
( ) 1


23 (1 2 )

+
(
+
ArcSin
[
])

2
)
2
1 2
2
2

( ) + 1
(
)

where = Cot[]

2
(
) 1

2(1 2 )
=
( + ArcSin [ 2
])

2 2

() + 1

121

References:
1. Akhremitchev BB and Walker GC (1999) Finite Sample Thickness Effects on Elasticity
Determination Using Atomic Force Microscopy. Langmuir 15: 5630 5634.
2. Bilodeau G (1992) Regular Pyramid Punch Problem. ASME J Appl Mech. 59: 519 523.
3. Briscoe DJ, Sebastian KS and Adams MJ (1994) The effect of indenter geometry on the elastic
response to indentation. J Phys D: Appl Phys 27: 1156 1162.
4. Derjaquin BV, Muller VM, Toporov YP (1975) Effect of contact deformations on the adhesion of
particles. J Colloid Interface Sci 53: 314-326.
5. Dimitriadis EK, Horkay F, Maresca J, Kachar B, Chadwick RS (2002) Determination of elastic
moduli of thin layers of soft material using the atomic force microscope. Biophys J 82:2798
2810.
6. Fung YC, Fronek K, Patitucci P (1979) Pseudoelasticity of arteries and the choice of its
mathematical expression. Am J Physiol-Heart C 237:H620H631
7. Galin LA (1946) Spatial contact problems of the theory of elasticity for punches of circular shape
in planar projection. J. Appl. Math. Mech. (PMM), 10: 425448.
8. Gavara N and Chadwick RS (2012) Determination of the elastic moduli of thin samples and
adherent cells using conical AFM tips. Nat Nanotechnol. 7: 733736.
9. Harding JW, Sneddon IN (1945) The elastic stresses produced by the indentation of the plane
surface of a semi-infinite elastic solid by a rigid punch. Proc Camb Philol Soc. 41:16.
10. Johnson KL, Kendall K, Roberts AD (1971) Surface energy and the contact of elastic solids. Proc.
R. Soc. Lond. A 324: 301-312.
11. Lin DC, Schreiber DI, Dimitriadis EK, Horkay F (2009) Spherical indentation of soft matter beyond
the Hertzian regime: numerical and experimental validation of hyperelastic models. Biomech
Model Mechanobiol 8:345358.
12. Maugis D (1992) Adhesion of spheres: The JKR-DMT transition using a Dugdale model. J Colloid
Interface Sci 150: 243 269.
13. Maugis D (1995) Extension of the Johnson-Kendall-Roberts theory of the elastic contact of
spheres to large contact radii. Langmuir 11: 679 682.
14. Maugis D (1995) Extension of the Johnson-Kendall-Roberts theory of the elastic contact of
spheres to large contact radii. Langmuir 11: 679 682.
15. Ogden RW (1972) Large deformation isotropic elasticityon the correlation of theory and
experiment for incompressible rubberlike solids. Proc R Soc Lond A Math Phys Sci 326: 565584.
16. Rico F, Roca-Cusachs P, Gavara N, Farre R, Rotger M and Navajas D (2005) Probing Mechanical
Properties of Living Cells by Atomic Force Microscopy With Blunted Pyramidal Cantilever Tips.
Phys Rev E 72, 021914.
17. Sneddon IN (1965) The relation between load and penetration in the axisymmetric Boussinesq
problem for a punch of arbitrary profile. Int J Eng Sci 3: 47 - 57.
18. Sun Y, Akhremitchev B, Walker G (2004) Using the adhesive interaction between atomic force
microscopy tips ad polymer surfaces to measure the elastic modulus of compliant samples.
Langmuir 20: 5837 5845.

122

M.3. AFM file formats

AtomicJ supports plain text files, as well as files generated by microscopes from Agilent
Technologies, Bruker, JPK, Asylum Research, Park Systems and NT-MDT. It also supports some
file formats generated by the Nanotec Electronica WSxM software.
If you use another microscope, please send me a few sample files generated by your
microscope, ideally both in binary and text format (pawel.hermanowicz@uj.edu.pl). If possible,
please attach print-screens showing how the files are displayed by the software that operates
your AFM. I will then add support for this type of files.
You can also convert your files to plain text (ASCII) files. AtomicJ can open comma-separated
(.csv) and text separated (.tsv) files. Their structure is very simple:

Plain text files for force curves consist of two columns of numbers, separated by commas
(.csv) or tabs (.tsv) (Fig. 90). The left column contains values of scanner position (or
alternatively cantilever position), while the right on the corresponding deflections or
forces. Each column begins with the name of the quantity and a SI unit in brackets. You
will find curves saved in this format among the files available at
https://sourceforge.net/projects/jrobust/files/TestFiles/AFM Recordings.zip.

Fig. 90. A force curve saved in plain text format (.csv), here viewed in MS Excel. The file consists of two
columns - the left contains values of cantilver/scanner position, the right one the corresponding
deflections or forces.

Plain text files for images (Fig. 91) should consist of a header and data for one or more
image channels. Header should contain eight fields:
1. Type obligatory field, it should be always Image
123

2. XQuantity the quantity on X-axis. Usually it is length in microns. The unit should
be written in brackets and only SI units will be recognized.
3. YQuantity the quantity on Y-axis. Usually it is length in microns. The unit should
be written in brackets and only SI units will be recognized.
4. XCount- the number of pixels along the X-axis (i.e. the number of column in the
image).
5. YCount- the number of pixels along the Y-axis (i.e. the number of rows in the
image).
6. XLength the length of the image along the X-axis.
7. YLength the length of the image along the Y-axis.
8. Data obligatory field, marking the header and beginning of the channel data
After the header you should specify channels, one by one. For each channel, you have
to include :
1. Channel - obligatory field, marking the beginning of the channel data.
2. ZQuantity - the quantity visualized in the channel. The unit should be specified in
brackets. For example, if the channel shows topography in microns, ZQuantity
can be 'Topography (um)', if the channel shows phase shift, ZQuantity can be
'Phase (deg)'
3. The array of pixel values. Each row of pixels in the channel should be written in a
separate row in the file.
An image saved in plain text (CSV) format is included the among the files available at
https://sourceforge.net/projects/jrobust/files/TestFiles/AFM Recordings.zip.

Fig. 91. An image saved in plain text format (CSV), here viewed in MS Excel. The file consists of a header,
where the image dimensions and quantities on axes are specified, and data for channels.

124

Anda mungkin juga menyukai