Project to show the path of moving object - matlab

I have a project in which I have to show the path of a moving object from a video in a single image. How should I go about with this one as I am new to image processing and Matlab.

The easiest way would be to load the video as individual images. Afterwards, after segmentation or whatever needs to be done for your specific problem, you have to save the position of the object in each image.
Once you have saved all positions in a matrix you will be able to record and visualize a trajectory.

Related

How to randomly display multiple videos via one image target

I'm trying to display a random video from a group of videos each time the AR camera recognizes the marker. I know you can recognize multiple markers but I want to display a different video each time you tap the screen or each time it recognizes the marker (say you look away and then turn back towards it).
I tried adding more than one video to the image marker, but theres only space for one video.
Try This Solution :
first, add all the videos as children to the image target
in OnTrackinFound event try this :
1- generate a random index between 0 and the length of your videos then
Enable the Child object with this random index number and disable the others.
2- in OnTrackingLost event setActive(false) for all the Image target children.
Create a GameObject called VideoController. In the VideoController create a List of MovieTexture and add your videos to the list. Create a Plane with VideoPlayer component as a child of the ImageTarget.
In the DefaultTrackableEventHandler component of Image Target, look for a function called OnTrackingFound. It is called when Image Target is detected. Use native C# random function or Unity's Random.Range function to generate a random number between 0 and (n-1)th item of the list. Use that value to add Video Texture to the Plane.
Read more here:
https://docs.unity3d.com/Manual/class-MovieTexture.html
https://docs.unity3d.com/ScriptReference/Video.VideoPlayer.html
Let me know if you run into any problem.

How to save a 3D image or what's the image format that we can spin it manually after saving it from Matlab without opening Matlab?

I have plotted a 3-dimension figure which is the 3-D cloud water content from a Cloud Resolving Model. I would like to save it and preserve the image information that I can rotate it along different direction after I have saved it. I know it's possible to save it as format fig in Matlab and do what I want only using Matlab to open it. Is any other format of image that can do the same thing with open Matlab?
Actually I am not familiar with this part and not sure what's key word is more about this question.
Export figure to 3D interactive PDF
using this plugin it is possible to save a 3d figure as a U3D file and embed it into a pdf

Extracting measurements from a finger via ROI and image processing MATLAB

I am trying to do a number of things via MATLAB but I am getting a bit lost with what techniques to use. My ultimate goal is to extract various measurements from a users fingerprint presentation, e.g. how far the finger over/undershoots, the co-ordinates of where the finger enters, the angle of the finger.
In my current setup, I have a web camera recording footage of a top down view of the presentation which I then take the video file and break down into individual frames. https://www.dropbox.com/s/zhvo1vs2615wr29/004.bmp?dl=0
What I am trying to work on at the moment is using ROI based image processing to create a binary mask around the edges of the scanner. I'm using the imbw function to get a binarised image and getting this as a result. https://www.dropbox.com/s/1re7a3hl90pggyl/mASK.bmp?dl=0
What I could use is some guidance on where to go from here. I want to be able to take measurements from the defined ROI to work out various metrics e.g. how far a certain point is from the ROI so I must have some sort of border for the scanner edges. From my experience in image processing so far, this has been hard to clearly define. I would like to get a clearer image where the finger is outlined and defined and the background (i.e. the scanner light/blocks) are removed.
Any help would be appreciated.
Thanks

How to get image coordinates and color data per pixel clicking on a displayed image?

I loaded several PNG files into Matlab and displayed them with no problem but was wondering if there is a way to point (or click) on a pixel and immediately get its pixel coordinates and color (RGB), in real time, either as an output on-screen or stored in some variable.
For example, I have a 64 x 64 face photo to serve as a ground truth image for an eye detection algorithm. The algorithm will return the bounding box for an eye, but, to check it, I want to manually extract coordinates by clicking or mousing around the image as it is plotted, and also color information about the pixels on which I click or mouse.
Please feel free to suggest another language, software, or environment if Matlab does not support such interactivity.
Thank you for your help!
The Data Cursor does exactly what you want:
http://www.mathworks.co.uk/help/matlab/creating_plots/data-cursor-displaying-data-values-interactively.html
It is the icon to the right of the "rotate" icon in the image toolbar.
If you have the Image Processing Toolbox, there is a built in tool called impixel, which will allow you to click on an image and get pixel values and location automatically. There is no data cursor that pops up, but what the data cursor is returning, impixel is also, and you could easily display this with a uicontrol (text).

Is it possible to overlay dynamic boxes over a live video feed in matlab?

I'm doing an object recognition project and would like to actively see objects being recognized in a video feed. This requires the object be boxed around in the live feed. The box would automatically adjust in size depending on the size of the object.
Is this possible in matlab?
Assuming you can do it for an image, just do it for every image and you have done it for the video.
If this is too slow, you may only want to calculate the box for every nth image.
In case you want a more detailed answer, please show where you get stuck.