hi, am in confusion that how can i convert the k-means algorithm as a block using xilinx block set and simulink and whether i can implement such clustering algorithm in FPGA by converting MATLAB code to HDl?

here am giving an image as an input...

can u provide me a solution for this query pls?