MATLAB Answers

Info

This question is closed. Reopen it to edit or answer.

How to export a figure as a spatially referenced image?

3 views (last 30 days)
Maximilian Stopfer
Maximilian Stopfer on 12 Dec 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
Dear all,
I have a figure with following properties which I'd like to export as spatially referenced image. I created a figure with rectangles, where one tick on the x-/y-axes stands for one mm in the real world. How can I export the figure with a chosen resolution (as example 3px/mm) as .tif?
Thank you in advance.
Sincerely, Max
A = figure(1)
Figure (1) with properties:
Number: 1
Name: ''
Color: [0.9400 0.9400 0.9400]
Position: [560 528 560 420]
Units: 'pixels'
F = getframe(A)
struct with fields:
cdata: [343×436×3 uint8]
colormap: []

Community Treasure Hunt

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

Start Hunting!