Question

In: Electrical Engineering

Given a tumorous brain image .take out the t umour using ittikoch saliency detection method Given...

Given a tumorous brain image .take out the t umour using ittikoch saliency detection method

Given a tumorous brain image .take out the tumour using ittikoch saliency detection method

need matlab code

if you know then do or else leave it for other.dont try if you dnt know

Image processing.electrical

Solutions

Expert Solution


%%% demonstration of how to use simpsal,
%%% the simple matlab implemenation of visual saliency.

%% 1. simplest possible usage : compute standard Itti-Koch Algorithm:


%% 2. more complciated usage:
% [I, cmap] = imread('032.gif','frames','all');
% img=ind2rgb(I,cmap);
img = imread('c.jpg');
p = default_fast_param;
map1 = simpsal(img,p);
p.blurRadius = 0.005; % e.g. we can change blur radius
map2 = simpsal(img,p);

subplot(1,3,1);
imshow(img);
title('Original');

subplot(1,3,2);
imshow(map1)
title('Itti Koch');

subplot(1,3,3);
imshow(map2);
title('Itti Koch Simplified');

function result = attenuateBordersGBVS(data,borderSize)
% attentuateBorders - linearly attentuates the border of data.
%
% result = attenuateBorders(data,borderSize)
% linearly attenuates a border region of borderSize
% on all sides of the 2d data array

% This file is part of the SaliencyToolbox - Copyright (C) 2006
% by Dirk Walther and the California Institute of Technology.
% The Saliency Toolbox is released under the GNU General Public
% License. See the enclosed COPYRIGHT document for details.
% For more information about this project see:
% http://www.saliencytoolbox.net

result = data;
dsz = size(data);

if (borderSize * 2 > dsz(1)) borderSize = floor(dsz(1) / 2); end
if (borderSize * 2 > dsz(2)) borderSize = floor(dsz(2) / 2); end
if (borderSize < 1) return; end

bs = [1:borderSize];
coeffs = bs / (borderSize + 1);

% top and bottom
rec = repmat(coeffs,1,dsz(2));
result(bs,:) = result(bs,:) .* rec;
range = dsz(1) - bs + 1;
result(range,:) = result(range,:) .* rec;

% left and right
rec = repmat(coeffs,dsz(1),1);
result(:,bs) = result(:,bs) .* rec;
range = dsz(2) - bs + 1;
result(:,range) = result(:,range) .* rec;


function param = default_fast_param()

param = {};

% Note "classic Itti" refers to "A model of saliency-based visual attention for rapid scene analysis" in PAMI


%%%%%%%%% scale parameters %%%%%%%%%%%%%%%

param.mapWidth = 64; % this controls the size of the 'Center' scale

param.useMultipleCenterScales = 0; % classic Itti Algorithm uses multiple scales ( "c \in {2,3,4}" ). but here we default to just 1.

param.surroundSig = 5; % this is the standard deviation of the Gaussian blur applied to obtain the 'surround' scale(s).
% default : one surround scale works fine in my experience. with sigma = 5.
% this can also be an array of surround sigmas, e.g. [ 4 6 ]
% Note: in classic Itti algorithm, we have ( "delta \in {3,4}\" ).
% .. **I think** this should correspond to roughly surroundSig = [sqrt(2^3) sqrt(2^4)]

%%%%%%%% normalize maps according to peakiness ? %%%%%

param.useNormWeights = 0; % 0 = do not weight maps differently , 1 = weight according to peakiness
% in classic Itti algorithm, this is used with local maxima normalization.

param.subtractMin = 1; % 1 => (subtract min, divide by max) ; 0 => (just divide by max)

%%%%%%%%% channel parameters %%%%%%%%%%%%%

param.channels = 'DI'; % can include following characters: C or D (color), O (orientation), I (intensity), F or X (flicker), M (motion)
% (D is in DKL color space, C is RG , BY color space)
% e.g. use 'IO' to include only intensity and orientation channels.
% note (F or X) and M require temporal input.

param.nGaborAngles = 4; % number of oriented gabors if there is an 'O' channel
% as an example, 4 implies => 0 , 45 , 90 , 135 degrees
% for video
param.flickmotionT = [1 2 4]; % this is the (number of frames difference) .. e.g., 1 means subtract previous frame from current one.
% see getchan.m to understand how this is used.

param.nMotionAngles = 4; % number of motion directions if there is an 'M' channel

%%%%%%%%% final operations on saliency map %%%%

param.centerbias = 0; % apply global center bias (0 =no, 1=yes)
% (using center bias tends to improve predictive performance)

param.blurRadius = 0.04; % blur final saliency map (sigma=0.04 works well in my experience).
% NOTE: ROC and NSS Scores are VERY sensitive to saliency map blurring. This is
% highly suggested.


function param = default_pami_param()

param = default_fast_param;

param.mapWidth = 64;

% DIO is better, but change to CIO for more faithful implementation
param.channels = 'CIO';

param.useMultipleCenterScales = 1;
param.surroundSig = [ 2 8 ];
param.useNormWeights = 1;

function b = padImage( a , vpad , hpad )

if ( nargin == 2 )
hpad = vpad;
end

u = repmat( a(1,:) , [ vpad 1 ] );
b = repmat( a(end,:) , [ vpad 1 ] );

l = repmat( a(:,1) , [ 1 hpad ] );
r = repmat( a(:,end) , [ 1 hpad ] );

ul = repmat( a(1,1) , [ vpad hpad ] );
ur = repmat( a(1,end) , [ vpad hpad ] );
bl = repmat( a(end,1) , [ vpad hpad ] );
br = repmat( a(end,end) , [ vpad hpad ] );

b = [ ul u ur
l a r
bl b br ];

If you are having any doubt plz comment below.


Related Solutions

Immunoassay Precipitation-> Ag Detection Method and Ab Detection Method with the way
Immunoassay Precipitation-> Ag Detection Method and Ab Detection Method with the way
4. The practical value of using UV absorbance as a method of detection is that: A....
4. The practical value of using UV absorbance as a method of detection is that: A. Any given compound can be detected by UV absorption, so it is a universal detection technique. B. It can be used to correlate a measurable quantity (absorbance) to a quantity that cannot be measured directly (concentration), according to Beer’s Law. C. Neither A nor B are correct. D. Both A and B are correct.
Question 1: Describe a molecular method used for the detection of + a given human genetic...
Question 1: Describe a molecular method used for the detection of + a given human genetic disease (analyze a related paper) + a given infectious disease (analyze a related paper)
Saliency detection using scale change.you have to take two window of different sizes and calculate the...
Saliency detection using scale change.you have to take two window of different sizes and calculate the saliency by considering the feature vector. if you know the answer then only write or else leave for other. image processing ELECTRICAL.
solve using powers series method, full procedure please: y´(t) = -y(t) + t
solve using powers series method, full procedure please: y´(t) = -y(t) + t
How might a brain image of a person with a mental disorder differ from a person...
How might a brain image of a person with a mental disorder differ from a person without a mental disorder? Choose a specific mental disorder (e.g., schizophrenia, drug addiction, etc.) and describe the differences.
The objective of this is to carry out a hypothesis test using the Welch Approximate t...
The objective of this is to carry out a hypothesis test using the Welch Approximate t Procedure, to determine if there is evidence of a difference in the caffeine content between sugar and diet soda. Use both Diet & Sugar Soda Data to answer questions A) Use the Data Analysis ToolPak to carry out the Welch Approximate t Procedure. Include the output from Excel as a figure : B) Identify the value of the test statistic from the Excel output...
A. Verify that the method is appropriate, write out formula for your t-statistic, and explain/show the...
A. Verify that the method is appropriate, write out formula for your t-statistic, and explain/show the steps you use to get your value of t. (If you solved this with JMP or Excel Data Toolpak, that is fine, but please either explain what you did or provide screenshots of your input) B. Explain (possibly with a sentence) how you obtained your p-value, and then explain how your p-value led you to your final conclusion. (Even if you used technology, explain...
For this assignment, you will take a position on whether “the image of the intermediary does...
For this assignment, you will take a position on whether “the image of the intermediary does not need to be consistent with the image of the brand" or "the image of the intermediary must match the image of the brand." Support your position with credible research.
Compare and contrast conventional CT with spiral CT in terms of image quality, image acquisition method,...
Compare and contrast conventional CT with spiral CT in terms of image quality, image acquisition method, speed of acquisition, post-processing functions and patient dose.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT