图像的水平和垂直投影 [英] horizontal and vertical projection of an image

查看:96
本文介绍了图像的水平和垂直投影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个有关MatLab软件中图像伪造检测的项目.但是我对图像处理和Matlab还是陌生的.

I am doing a project on image forgery detection in MatLab software. But I am new to both image processing and matlab.

现在我必须计算图像的水平和垂直投影.在Matlab中如何做?

Now I have to calculate horizontal and vertical projection of an image. How to do it in matlab?

我用过

ver=imfilter(edge1,[1 0 -1])

hor=imfilter(edge1,[1 0 -1]')

其中,edge1是边缘图像.

但是我不确定是否正确.边缘检测算法基于标准偏差.我没有使用内置的边缘检测功能.我已经实现了基于标准偏差的边缘检测.任何人都可以帮我这个忙.我需要立即知道这一点.谢谢.期待您的回答........

But i am not sure if it is right or not. Edge detection algorithm is based on the standard deviation. I have not used built in edge detection function. I have implemented standard deviation based edge detection.Can anybody help me on this . I need to know this very immediately. Thanks. Expecting your answers........

推荐答案

什么是图像投影?我认为使用和边缘检测器是不正确的.

What is image projection? I think using and edge detector is NOT correct.

如果我没记错的话,图像项目就是水平或垂直灰度级的直方图".

If I remember correctly image project is an "histogram over horizontal or vertical way of grayscale level".

如果需要对边缘进行投影,则需要进行第一步开发.

If you need a projection of the edges you developed the first step.

然后,我认为您必须对行或列的图像灰度进行求和.

Then, I think you have to sum over rows or columns the grayscale of image.

sum(image,1)

sum(image,2) 

这是我的照片的投影(对我的徒劳表示歉意)

here the projection of my photo (apologize fro my futility :)

这篇关于图像的水平和垂直投影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆