Time for action – heading

  1. Action 1
  2. Action 2
  3. Action 3

Instructions often need some extra explanation so that they make sense, so they are followed with:

What just happened?

This heading explains the working of tasks or instructions that you have just completed.

You will also find some other learning aids in the book, including:

Pop quiz – heading

These are short multiple-choice questions intended to help you test your own understanding.

Have a go hero – heading

These practical challenges give you ideas for experimenting with what you have learned.

You will also find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: “Adapthisteq performs global histogram equalization.”

A block of code is set as follows:

function [output] = CroppedContrastEnhancement(input,method)

% Function that performs area-based image contrast enhancement with 
% methodsincorporated in MATLAB toolboxes
% Inputs:
%           input - Input image
%           method - Enhancement method (1: histeq, 2: imadjust, 
%                                        3: adapthisteq)
% Output:   
%           output - Output image (with enhanced contrast)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

img = imread(‘my_image.bmp’); % Read image
subplot (1,2,1) % Open a figure for 2 images
imshow(img) % Show original image
title (‘Original image’) % Add title
threshold = 150; % Set threshold level
img(img > threshold) = 255; % Set pixels above 150 to 255
img(img <= threshold) = 0; % Set pixels below 150 to 0
img = logical(img); % Convert img to binary
subplot (1,2,2) % Make second image spot active
imshow(img) % Show thresholded image
title (‘Thresholded image’) % Add title

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: “You should start with the first and easiest step, which is loading and displaying our photograph into the Workspace window.”.

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset