I need to construct a location table from the elements of matrix as below
1 view (last 30 days)
Show older comments
Turtle Shell Matrix
b = rem(0:255,8);
y=rem(1:255,2);
x=y';
c=cumsum([1;(3 - x)]);
d=bsxfun(@plus,-1:254,c);
f=rem(d,256);
out=b(f+1);
From the matrix shown in fig 'turtleshell matrix', I need to create a location table as shown in fig 'location table' based on the position of pixels present in four locations as shown in fig 'location'.The values in location 1 and location 4 are always {1,3,5,7} and location 2 and location 3 are always {0,2,4,6).
Is it possible to implement in matlab?? Could anyone please help?
0 Comments
Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!