Convert a mosaic picture to xy coordinate

Hello!
I have a mosaic picture. I would like to have a xy coordinate on it to indicate the location of each tiles. How can I do that ??
I am new to matlab image analysis. I really have no idea on it. Please help! Thank you very much.
Here is a sample of the mosaic picture with around 2500 tiles.

5 Comments

"Urgent" means something that needs attention immediately, in the most literal sense of "immediately". An incoming Tornado is "Urgent". Analysis of a mosaic is not "Urgent".
Oh. I am sorry about that. But do you have any suggestions on the problem? How to add a xy coordinate into a mosaic picture so that I can get the location of each tiles in terms of (X,Y)
Please help! Thank you very much.
You want to insert the text into the picture ?
The computer vision toolbox have a function to add text into the picture
https://www.mathworks.com/help/vision/ref/inserttext.html
https://www.mathworks.com/help/vision/ref/insertobjectannotation.html
Um.....
The xy-axis should be outside the mosaic picture, just like the xy coordinate of a plot. The value of xy-axis should be located within the middle of a tile so that I can locate the tile in terms of (X,Y).

Sign in to comment.

Answers (1)

Hey Ivan,
You can use the 'xticks' and 'yticks' function to add custom ticks to an axes. You could set the axes labels to '1:num_Columns' and '1:num_Rows' according your mosaic plot.
If you're using imshow to display your image, you could create a custom axes obect and set it as the parent axis of the image object. You could refer to the following code snippet for this.
imshow(image,'Parent',custom_Axes);
You could also refer to this answer for more help.
Hope this helps!

Categories

Find more on Images in Help Center and File Exchange

Products

Release

R2019b

Asked:

on 12 Mar 2020

Edited:

on 29 Sep 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!