How to get pixels in a roi only?

Hey, how can i get pixels in a roi only?
Is it possible to get every pixel with a For-loop?

You may want to take a look through various courses if you are doing this much programming, or look into previous forum posts.

Much of these have to do with macros, but the same concepts could be applied to a plugin. In fact, CLIJ has a way of taking several operations and turning them into a plugin for you automatically. Kind of crazy. Crazy good.

1 Like
// image selection -> float matrix
float[][] selectionMatrix = ip.crop().getFloatArray();