Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Slightly increase the image overall intensity by 15% and show the modified image. (Hint: to avoid potential issues, use tofloat() function. Here is the image:

Slightly increase the image overall intensity by 15% and show the modified image. (Hint: to avoid potential issues, use tofloat() function.

Here is the image:

image text in transcribed

Here is the tofloat() code:

function [out, revertClass] = tofloat(in)

%TOFLOAT Converts an image to floating point.

% [OUT, REVERTCLASS] = TOFLOAT(IN) converts the input image IN to

% floating-point. If IN is a double or single image, then OUT

% equals IN. Otherwise, OUT equals IM2DOUBLE(IN). REVERTCLASS is

% a function handle that can be used to convert back to the class

% of IN.

% Copyright 2002-2020 Gatesmark

% This function, and other functions in the DIPUM Toolbox, are based

% on the theoretical and practical foundations established in the

% book Digital Image Processing Using MATLAB, 3rd ed., Gatesmark

% Press, 2020.

% Book website: http://www.imageprocessingplace.com

% License: https://github.com/dipum/dipum-toolbox/blob/master/LICENSE.txt

identity = @(x) x;

todouble = @im2double;

converter_table = {'uint8', todouble, @im2uint8

'uint16', todouble, @im2uint16

'int16', todouble, @im2int16

'logical', todouble, @logical

'double', identity, identity

'single', identity, identity};

classIndex = find(strcmp(class(in), converter_table(:, 1)));

if isempty(classIndex)

error('Unsupported input image class.');

end

out = converter_table{classIndex, 2}(in);

revertClass = converter_table{classIndex, 3};

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions