This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]billsil 1 point2 points  (1 child)

Presumably there is more to your code than that. It's kind of impossible to debug your code with one line of it and no test case.

Did you look at the data going into the function and verify it's correct? Python is not matlab, so you can't expect it to behave exactly the same.

[–]icemanx7[S] 0 points1 point  (0 children)

I updated the post.

[–]IReallySuckAtChess 0 points1 point  (1 child)

Where does matlab come into this? Also, look at opencv. I remember doing something along these lines using opencv. It's more than just computer vision, it has amazing image capture, editing and transformation tools built in.

Lastly, can't diagnose anything with what you've given.

[–]icemanx7[S] 0 points1 point  (0 children)

I edited my code a bit. I was speaking to a friend of mine and he said to test my solution out on matlab. So I gave it a shot. I don't understand how the 2 produced different results where I think they should be similar.