I am writing a prototype of an image manipulation program in MATLAB and am hoping to port it to javascript once the prototyping phase is done.
I am not very familiar with javascript but there seem to be many image processing libraries available so my guess is most of the basic image manipulation functions I use in MATLAB are already implemented somewhere. However one of the more powerful functions I am using in MATLAB is called "regionprops", basically it figures out the strongly connected components of a binary image and outputs a bunch of stats pertaining to each "component", such as the area, the bounding box, the barycenter, etc.
What is the shortest way (i.e. with minimal implementation on my part) to having this available in js ? As a last resort I will convert the image to a graph in order to use a strongly-connected-component lib, if I can avoid this (and the subsequent image-related calculations) I would like to know.
Pointers to docs and libs are much appreciated ! Thanks, Tepp.