Group Abstract Group Abstract

Message Boards Message Boards

Obtain X,Y, Z coordinates from a gray scale image separately?

Posted 6 years ago

Hi, I require the X, Y and Z coordinates separately, in 3 different columns. I have tried with, Table, Grid and Matrix. Please let me have an idea how to perform it. I suppressed the output since there is large amount of data Thanks

Attachments:
POSTED BY: Manoj Imrith
5 Replies
Posted 6 years ago

Hi, In fact I'm trying to find the surface roughness of an image. According to ISO 25178 >> https://www.iso.org/obp/ui/#iso:std:iso:25178:-2:ed-1:v1:en >> 4.1: Height Parameters, the Sa and Sq values are multiplied by X (y,z). This is I presume to gather the X, Y and Z coordinates to implement the formula.

Thanks for your suggestionenter image description here

Attachment

Attachments:
POSTED BY: Manoj Imrith
Posted 6 years ago

Using the example from ImageData_x_y_z_Coordinates.nb

{yRange, xRange} = imData // Dimensions
Table[{x, y, imData[[y, x]]}, {x, xRange}, {y, yRange}] // Flatten[#, 1] &

evaluates to a list of {x, y, z} where z is the pixel value corresponding to coordinates x, y and 1, 1 is the top left of the image and 27, 51 is the bottom right of the image.

POSTED BY: Rohit Namjoshi
Posted 6 years ago

This looks very similar to a this question you asked earlier. Why are you partitioning by 3 when the data is 4 x 4?

POSTED BY: Rohit Namjoshi
Posted 6 years ago

Hi, Thank for feedback, I am doing trial with this example: The constraint is when I replace 4 with 3, the model, gets distorted. 4 is the good model whereas 3 is Not:

Thanks

Attachments:
POSTED BY: Manoj Imrith
Anonymous User
Anonymous User
Posted 6 years ago
POSTED BY: Anonymous User
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard