English 中文(简体)
2. 平均差错的位置[EDIT]
原标题:Plot of mean square error [EDIT]

如果是MSE用于RGB图象A的公式,B的大小为256*200,那么,如何为代表MSE值的轴心和轴心的每个钢子获得一个线块。

MSE = reshape(mean((A)(双重(B))2,1),[1,3]

仅有两种图像A和B。 该地块应当说明A和B的每组子之间的变化,而后者是MSE的意思。

最佳回答

如果你想显示“每张钢材”的变动,那么你所显示的不是mean<>m>平方位的错误——就不再发生。 (除非你打算在三个彩色飞机上平均使用,但我不建议:R,G,B的改动对人体视像系统来说并不相同。) 如果你真的必须这样做,那么你可能想把他们加起来,即:对于哪一个更具有代表性的人来说,2:4:1,但这仍然是临时性的,而且不大可能给出一个非常准确的想法,说明什么差异将look<>/em>最大。

当然,看到每页纸错是完全合理的,但我不建议使用直线图显示错误;这很可能是混淆而不是提供信息。 相反,将其描绘成一个形象:

errs = (double(A)-double(B)).^2;
image(errs / max(errs(:)));
axis image;

which you can then compare by eye with A and B to see what image regions/features/... correspond to worse errors. The brightness and colour of each pixel indicate the amount of error and how it s distributed across the R, G, and B planes.

另一方面,或许你实际需要的是,在图像单行或栏目上,有点错误。 在此情况下,在创建<条码>后,如上所示,使用<条码>mean计算行文或栏目;这将给你256-by-1--3或1-200-by-3的形象;现在我建议将R,G,B曲线分开,除非你(如上所述)坚持对飞机进行核对。

row_errs = mean(errs,2); % this is now of size [n,1,3]

现在,row_errs(:,1)是MS-a cross-rowsred的病媒,row_er(:,2)是MS-a cross-rows Green差错的病媒。 您可将这些内容输入plot

问题回答

暂无回答




相关问题
Resources for Image Recognition

I am looking for a recommendation for an introduction to image processing algorithms (face and shape recognition, etc.) and wondered if anyone had an good recommendations, either for books, ...

Good reference book for digital image processing? [closed]

I am learning digital image processing on my own and would like recomendations on good reference books. If you know of books to definately stay away from that would be useful as well. Thanks

Python Tesseract can t recognize this font

I have this image: I want to read it to a string using python, which I didn t think would be that hard. I came upon tesseract, and then a wrapper for python scripts using tesseract. So I started ...

What s the quickest way to parallelize code?

I have an image processing routine that I believe could be made very parallel very quickly. Each pixel needs to have roughly 2k operations done on it in a way that doesn t depend on the operations ...

Computing object statistics from the second central moments

I m currently working on writing a version of the MATLAB RegionProps function for GNU Octave. I have most of it implemented, but I m still struggling with the implementation of a few parts. I had ...

Viola-Jones face detection claims 180k features

I ve been implementing an adaptation of Viola-Jones face detection algorithm. The technique relies upon placing a subframe of 24x24 pixels within an image, and subsequently placing rectangular ...