I have writing a code in order to get pixel values of a image along a line. I want to repeatedly to apply the function to the image to get pixel values along multiple lines. My question is how can create such loop in mathematica.
IMGV1 = ImageValue[img, Table[{i, 1111}, {i, 300, 2451, 0.5}]];
IMGV2 = ImageValue[img, Table[{i, 1112}, {i, 300, 2451, 0.5}]];
IMGV3 = ImageValue[img, Table[{i, 1113}, {i, 300, 2451, 0.5}]];
IMGV4 = ImageValue[img, Table[{i, 1114}, {i, 300, 2451, 0.5}]];
IMGV5 = ImageValue[img, Table[{i, 1115}, {i, 300, 2451, 0.5}]];
IMGV6 = ImageValue[img, Table[{i, 1116}, {i, 300, 2451, 0.5}]];
{IMGV1,IMGV2,....}=Table[ImageValue[img,Table[{i,j}....]],{j,1111,...}]? – Feyre Aug 09 '16 at 13:25ImageDataandImageTake? – Michael E2 Aug 09 '16 at 14:13Evaluate[Array[IMGV, 6]] = Table[ImageValue[img, Table[{i, j} ....]], {j, 1111, ...}]instead so that OP can indexed variables that can actually be operated on usingTable,Map, etc. – march Aug 09 '16 at 15:39