IOS比较2个80% - 90%相同的图像?

时间:2017-05-29 04:44:46

标签: ios objective-c image duplicates compare

我想要比较2个80%的图像 - 90%相同意味着如果我拍摄两张图像我第一张图像我站在图像的中间而另一张我站在离中心一点点的位置相同的姿势,然后这对我不起作用,一个图像是模糊的,另一个图像是清晰的,然后它也不会返回真实,或者如果1图像是黑暗,另一个是明亮的则必须返回真实...

如何使用散列技术运行它或者如果有任何其他技术任何帮助将会受到很多赞赏....谢谢

使用代码的技术之一如下,但它不适合我:

 Private Sub Calculate_Click(sender As Object, e As EventArgs) Handles Calculate.Click

            'Dim ready_ship As Integer = GetInStock()

            Dim display_spools As Integer = ReadyToShip()
            Dim display_backOrders As Integer = BackOrdered()


            lbl_rship.Text = display_spools.ToString()
            lbl_backo.Text = display_backOrders.ToString()





        End Sub
        Function GetInStock() As Integer


            Dim amount_Spools As String = Nothing

            amount_Spools = InputBox(" Enter the number of spools currently in stock: ")

            Return CInt(amount_Spools)


        End Function
        Function ReadyToShip() As Integer
            Dim ready_ship As Integer = GetInStock()
            Dim a As Integer

            a = CInt(ready_ship)

            Return a
        End Function
        Function BackOrdered() As Integer
            Dim b As Integer = ReadyToShip()
            Dim c As Integer
            c = b - CInt(TextBox1.Text)
            Return c
        End Function




    End Class

{

-(CGFloat)compareImage:(UIImage *)imgPre capturedImage:(UIImage *)imgCaptured

0 个答案:

没有答案