COMPUTER VISION AND IMAGE PROCESSING APPLICATIONS
OBJECT DETECTION
We performed an automatic detection of endocardium volume and its eccentricity based on computer vision algorithm starting from raw MRI short axis frames of a complete cardiac cycle.

In this work we tried to estimate the heart dynamic based on an automatic computer vision algorithm that tries first to extract the location of the left ventriculum (LV) from chest MRI acquisition performing a region of interest (ROI) identification on the first frame, applying then the mask extracted to the subsequent frames in order to save computation speed. The automatic coordinate detecion of the LV is achieved by applying a circular Hough Trasform, the purpose of the technique is to find imperfect instances of objects within a certain class of shapes by a voting procedure. In this application we set the equation of a circle as the default recognition shape, the radius range wa set between 15-30 pixels which correspond to a 27-45 mm that correspond to anatomical range size of the LV.
After extracting the correct circle location a binary mask is created and then convoluted with all the frames in order to perform the next post processing steps just on the ROI

Then, to perform a correct segmentation of the object, after applying a selection criteria based on a simple binary threshold on the pixel intensity since the structure of interest present higher values then the background, starting from the binarized image extracted, the boundaries of the object are extracted based on pixel connectivity criteria.

To estimate the volume we multiplied the number of pixel for the axial resolution contained in the metadata of the MRI aquisition, the eccentricity is calculated as the ratio of the distances of a point on the ellipse from the focus, and the directrix.
We performed an automatic detection for quantifying the remaining number of tablets left in a pillpack performing post processing of a raw image.

The first operation useful to inspect the information contained in the image is to perform color conversion and pass from RGB expression to HSV.
To extract the contours of the blister from the whole image we perfomred the canny edge detection algorithm based on the derivative of a 10x10 Gaussian filter with a sensibility threshold of 0.12 to extract and mantain the continuity of the borders, after that the bounding box of the image is axtracted based on continuinity of the region.

Then we identified which of the borders contained the expiring date extracting as Region Of Interest as the borders of the blister and a canny edge detector algorithm with a majority voting to understand with borders contained the greater number of features.

Finally to extract how many pills are present in the blister, thanks to the hypothesis that the presence of the pills is reflected in a very low level of the HUE channel, thanks to an object recognition algorithm tuned at a partivcular value of inclInation, area and eccentricity it is possible to identify the present pills.