sir i processed xray,satelllite img,and graylevel ,also medical imge using super resolution algrothim .i got codings from matlab login. i too processed and got result.but after sometime its not working

since its useful for my phd work ,solve my problem sir

5 Comments

it shows error as undefined function syntdataset
% Author: Victor May
% Contact: mayvic(at)gmail(dot)com
% $Date: 2011-11-19 $
% $Revision: $
%
% Copyright 2011, Victor May
%
% All Rights Reserved
%
% All commercial use of this software, whether direct or indirect, is
% strictly prohibited including, without limitation, incorporation into in
% a commercial product, use in a commercial service, or production of other
% artifacts for commercial purposes.
%
% Permission to use, copy, modify, and distribute this software and its
% documentation for research purposes is hereby granted without fee,
% provided that the above copyright notice appears in all copies and that
% both that copyright notice and this permission notice appear in
% supporting documentation, and that the name of the author
% not be used in advertising or publicity pertaining to
% distribution of the software without specific, written prior permission.
%
% For commercial uses contact the author.
%
% THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO
% THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
% FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR BE
% LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
% DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
% PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
% ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
% THIS SOFTWARE.
% This file is an example script for executing the Super-Resolution
% algorithm.
clc
clear variables
close all
dbstop if error
%%Prepare the reference image
im = imread('F:\Data\typewrtr.jpg');
im = rgb2gray(im);
im = imresize(im, [ 128 128 ]);
im = im2double(im);
%%Simulate the low-resolution images
numImages = 4;
blurSigma = 1;
[images offsets croppedOriginal] = SynthDataset(im, numImages, blurSigma)
%%Compute the Super-Resolution image
[ lhs rhs ] = SREquations(images, offsets, blurSigma);
K = sparse(1 : size(lhs, 2), 1 : size(lhs, 2), sum(lhs, 1));
initialGuess = K \ lhs' * rhs; % This is an 'average' image produced from the LR images.
HR = GradientDescent(lhs, rhs, initialGuess);
HR = reshape(HR, sqrt(numel(HR)), sqrt(numel(HR)));
%%Visualize the results
ShowLRImages(images);
figure;
subplot(1, 3, 1);
imshow(HR);
title('Super-Resolution');
subplot(1, 3, 2);
imshow(imresize(imresize(croppedOriginal, 0.5), 2));
title('Bicubic Interpolation');
subplot(1, 3, 3);
imshow(croppedOriginal);
title('Reference');
%%Compute the mean-square error of reconstruction.
mse = sum((HR(:) - croppedOriginal(:)) .* (HR(:) - croppedOriginal(:))) / numel(HR);
fprintf(1, 'Reconstruction Mean-square error: %f\n', mse);
sir if possible correct this code and send me,its my humble request and help me too, i tried more than 2weeks to correct this error,so asking u to view this code verify it, i got this code from mathworks (super resolution algroithm)
When you emailed mayvic(at)gmail(dot)com, what kind of response did you get? Otherwise, have you seen this link? It will let you solve virtually all problems.

Sign in to comment.

Answers (1)

You need to go to http://www.mathworks.com/matlabcentral/fileexchange/33839-image-super-resolution-iterative-back-projection-algorithm and click on the Download Zip link. Download the .zip file and unzip it into a directory of its own. Then go into MATLAB and use pathtool to add that directory and all subdirectories to your MATLAB path. After that the code should be able to find that routine.

Categories

Asked:

on 3 Oct 2015

Answered:

on 4 Oct 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!