Skip to content

Conversation

@tosalonijain
Copy link

I suppose alike what we have done for image conversion in case of grayscale and binary (cd<3), for coloured images also:
"# -1 to have 0-indexing per C++"

" " "if (cd < 3) # grayscale or binary
for j = 1:Base.size(img,2) # index row first (Mat is row-major order)
for k =1:Base.size(img,1) # index column second
# slow algorithm - will try to use pointer method (C++)!
pixset(mat, k-1, j-1, float(img[k,j,1].i))
end
end
end
" " "
Although I haven't run this yet since I was looking through the code from another pc. May be I am misinterpreting the situation.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant