Feeds
提问
Hi all...i am writing a code to calculate the PSNR of two images....but i am getting an error as 'Attempted to access A1(1,401); index out of bounds because size(A1)=[400,400].'..Here A1 is the R component of image.. The code is shown below
clc; close all; clear all; A = imread('F:\EXPERIMENTION RESULTS\fruits_ORIGINAL.jpg'); A = imresize(A ,[400 40...
10 years 前 | 2 个回答 | 0
2
个回答提问
hi all.. i am writing a program to convert image to text... but i am getting an error " Invalid file identifier. Use fopen to generate a valid file identifier."...can pls get me out of it...i am attaching the code with it...
clc; clear all; img=imread('F:\TEST PICTURES\car.jpg'); %Read a Gray image from workspace img=rgb2gray(img); [r c] = size(im...
10 years 前 | 1 个回答 | 0
1
个回答提问
hi all... i am writing a program to histogram equalize particular bit planes in an image..but i am getting an error in the 1st bit plane..Attempted to access a(241,320); index out of bounds because size(a)=[240,320]. Error in BITPLANE (line 59)
clc; close all; clear all; a = imread('F:\TEST PICTURES\car.jpg'); a = rgb2gray(a); [m n] = size(a); % t...
10 years 前 | 1 个回答 | 0
1
个回答提问
Hi..i am trying to use the function "blockproc" for histogram equalization of an image blockwise...but i am gettin an error....
a = imread('C:\Users\Public\Pictures\Sample Pictures\image14.jpg'); a = rgb2gray(a); b = blockproc(a,[8,8],histeq); ...
11 years 前 | 1 个回答 | 0
1
个回答提问
hi..i am getting an error while using the "axis" function....the value that i gave was [0 255 0 1] ....0 to 255 are grey scale values of image on the x axis and 0 to 1 the cdf on the y axis....
x = linspace(0,1,255) plot(x,cdf_data) axis(0 , 255 , 0 , 1) set (gca, 'xtick', 0:1:255) set (gca, 'ytick', 0:0.2:1) ...
11 years 前 | 1 个回答 | 0
1
个回答提问
hi..i am writing the code for recursive mean separate histogram equalization..i am getting an error called "Undefined function 'averpixcal' for input arguments of type 'double'."when calling the function 'averpixcal'..code is attached for reference
//----main module-----// PicOri=imread('C:\Users\Public\Pictures\Sample Pictures\image14.jpg'); % if isgray(PicOri)==0 ...
11 years 前 | 2 个回答 | 0
2
个回答提问
hi ..i am writing a code for quadrant dynamic histogram equalization...but i am getting an error while mapping back to the original image as 'Attempted to access map(0); index must be a positive integer or logical.'..i have attached the code
clc; close all; clear all; WAAD_img= imread('C:\Users\Public\Pictures\Sample Pictures\image14.jpg'); WAAD_img= rgb...
11 years 前 | 2 个回答 | 1
2
个回答提问
i am writing the matlab code for bi-histogram equalization for the color image...i am using the 'function' to extend to all three planes i.e, RG&B ...but i am getting error 'Function definitions are not permitted in this context.'.
clc; close all; clear all; function y = BBHE(x); sz = size(x); o_mean = round(mean(x(:))); ...
11 years 前 | 1 个回答 | 0