help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: i am getting the subscript error for the following program please he


From: Doug Stewart
Subject: Re: i am getting the subscript error for the following program please help me resolving the problem
Date: Wed, 26 Feb 2014 13:08:30 -0500




On Wed, Feb 26, 2014 at 2:37 AM, address@hidden <address@hidden> wrote:
#Author : Athi Narayanan #M.E, Embedded Systems,#Erode, Tamil Nadu,
India.#http://sites.google.com/site/athisnarayanan/address@hidden
Memory & Command Windowclc;clear all;close all;#Parameters for the
SegmentationnBins=5;winSize=7;nClass=6;#Read Input ImageinImg =
imread('peppers.png');imshow(inImg);title('Input Image');#segmentationoutImg
= inImg(inImg,nBins, winSize, nClass);#Displaying
Outputfigure;imshow(outImg);title('Segmentation Maps');colormap('default');





I fixed up your code:
#Author : Athi Narayanan
#M.E, Embedded Systems,
#Erode, Tamil Nadu,India.
#http://sites.google.com/site/athisnarayanan/
#address@hidden

#Clear Memory & Command Window
clc;
clear all;
close all;

#Parameters for the Segmentation
nBins=5;
winSize=7;
nClass=6;

#Read InputImage
inImg =imread('peppers.png');
imshow(inImg);
title('Input Image');

#segmentation
outImg= inImg(inImg,nBins, winSize, nClass);

#DisplayingOutputfigure;
imshow(outImg);
title('Segmentation Maps');
colormap('default');
 

this line looks ????

outImg= inImg(inImg,nBins, winSize, nClass);



--
DAS


reply via email to

[Prev in Thread] Current Thread [Next in Thread]