Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Is it possible to determine x,y positions of images through a .txt file?

2 ビュー (過去 30 日間)
Stelios Fanourakis
Stelios Fanourakis 2018 年 4 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am trying to give Matlab the x,y positions of a stack of images. If those images are hundred and each one of those have different x,y positions in order to be depicted, I need a method to specify it. I was thinking of embedding a .txt file in Matlab, writing for each image its x,y position. Is it possible to do that? Any idea?
  4 件のコメント
Guillaume
Guillaume 2018 年 4 月 23 日
編集済み: Guillaume 2018 年 4 月 23 日

Of course it is possible. Matlab is a generic programming language, you can make it do whatever you want as long as you write the code for it.

You can certainly have a text file or a binary file or a database or ... specifying the location of your images. If it were up to me, and I was the one outputting the images in the first place, I would embend their location as metadata within the image files themselves.

It is trivial to read a text file in matlab, so it's a bit unclear why you're asking the question.

Stelios Fanourakis
Stelios Fanourakis 2018 年 4 月 26 日
Can you please give me an example of how to do it? Embed a .txt file in my code, to determine x,y image positions? Thank you

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by