You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks to me like the expression should be Color.ByColor(image.GetPixel(x * (image.Width / (numX-1)), y * (image.Height / (numY-1)))))
because numx is not the max value of x but the number of x and x will never be equal to that number. so we'll never get a value which is equal to the max image width or image height.
If this issue is not a bug report or improvement request, please check the Dynamo forum, and start a thread there to discuss your issue.
2.0
(Which version of Dynamo are you using? Go to Help > About if you're not sure.)
2019.1
(Which version of Revit are you using?)
Windows 8.1 Enterprise
(e.g. Windows 7, Windows 8.1, etc)
Sampled an image with the Image.Pixels node
What did you expect to see?
The image was symmetrical, the resulting values should have been symmetrical.
What did you see instead?
The values appear to be sampling starting at 0,0 instead of the center of the first sample square and this is throwing the values off.
You can download the files from the Forum post:
https://forum.dynamobim.com/t/image-pixel-symmetry/26958?u=marla_smith
The text was updated successfully, but these errors were encountered: