09-02-2020 03:19 AM
Hi Everyone,
I want extract the grayscale values at certain parts of the image. I have graysclae values for the whole image and now want to get it from the certain part. I have drawn rectangles to get the (top, left, right and bottom points) of those areas (See imae). Could you please give an idea how to extract the required information.
Regards
Hassan
Solved! Go to Solution.
09-02-2020 03:51 AM
The Array Subset node should be able to get you most of the way there - you want to convert your image to a 2D array of values (which you might already be doing to get the greyscale values for the whole image), and then you just want the subset that are within the locations you need.
You can use one Subset per region.
09-02-2020 04:06 AM
Perhaps you want something like this:
09-02-2020 05:16 AM
Hi,
Just confirming.
In array subset I need for input (row, length, column, length). How I can get these inputs ?
Rectangle is a cluster which needs to be un-bundle first. Which element should I put in which input mentioned above. Need guidance.
Regards
Hassan
09-02-2020 06:37 AM
@HassanIqbal wrote:
Hi,
Just confirming.
In array subset I need for input (row, length, column, length). How I can get these inputs ?
Rectangle is a cluster which needs to be un-bundle first. Which element should I put in which input mentioned above. Need guidance.
Regards
Hassan
Left and top should be the indices, right-left and bottom-top the lengths...
You don't need the Array Subset if you get the subset from the pixmap (as suggested)...
09-02-2020 07:08 AM
@Proven Zealot,
Left and top should be the indices, right-left and bottom-top the lengths...
Even then its not working unfortunately. shows nothing in the subset array indicator.
09-02-2020 07:20 AM
@HassanIqbal wrote:Even then its not working unfortunately. shows nothing in the subset array indicator.
Post what you have. There might be a mistake...
09-02-2020 07:37 AM
Thanks for your reply.
I found out my mistake. was not wiring correctly.
Regards
Hassan