我是MatLab的新手.一直在玩并阅读帮助指南,但我似乎无法解决这种情况.

我已经使用高斯算法去除了噪音.这是成功的,但我没有设法让图像清晰,我尝试使用Richardson-Lucy去模糊算法,但它不起作用.知道怎么解决这个问题?Thnx提前.
这是我到目前为止所做的.
图像尺寸= 21kb图像尺寸= 264 x 126
img = imread('car_plate.jpg')
subplot(331);
imshow(img), title('Original Image')
PSF = fspecial('gaussian',15,15);
blur = imfilter(img,PSF,'replicate');
subplot(332);imshow(blur);title('Filter image');
motion_noise = fspecial('disk', 7);
luc1 = deconvlucy(img,motion_noise);
subplot(333); imshow(luc1);
title('Disk and Lucy');
LEN = 9; THETA = 1;
motion_noise2 = fspecial('motion', LEN, THETA);
luc2 = deconvlucy(blur,motion_noise2);
subplot(334); imshow(luc2);
title('Motion and Lucy');
Run Code Online (Sandbox Code Playgroud)
当我尝试使用中值滤波器时,我得到了这个输出
使用medfilt2时出错
预期的输入数字1,A是二维的.medfilt2> parse_inputs(第106行)中的错误
validateattributes(a,{'numeric','logical'},{'2d','real'},mfilename,'A',1);medfilt2中的错误(第48行)
[a,mn,padopt] = parse_inputs(varargin {:});a1q21中的错误(第2行)
J = medfilt2(img);
而我目前的结果是这样的.

在一个表中,我有3个索引,每个索引调用一个函数.在每个函数中,都有一个添加按钮,用于将数据添加到CoreData中.前两个工作,但当我按第三个索引并按添加时,出现此错误.
2011-07-19 16:57:11.079 CoreDataMelaka[2704:207] * **Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-1447.6.4/UITableView.m:976**
2011-07-19 16:57:11.080 CoreDataMelaka[2704:207] **Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification. Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (0) must be equal to the number of rows contained in that section before the update (0), plus or minus the number of rows …Run Code Online (Sandbox Code Playgroud)