how to join two image

141 ビュー (過去 30 日間)
Ibrahim Thorig
Ibrahim Thorig 2014 年 5 月 13 日
編集済み: DGM 2023 年 3 月 29 日
I have two fragments of one image, i want join these two piece. someone please tell me how to join these two fragments.
thanks in advance
  3 件のコメント
Image Analyst
Image Analyst 2023 年 3 月 29 日
@heba If you have any more questions, start a new question and then attach your data and code to read it in with the paperclip icon after you read this:
DGM
DGM 2023 年 3 月 29 日
編集済み: DGM 2023 年 3 月 29 日
There isn't enough information to provide an answer as-is, but this probably should be posted as a new question anyway.
I'd suggest starting a new question by using the 'Ask' link at the top of the page. When you do, provide an explanation of the specifics.
  • what files you have (provide examples that work/don't work if possible)
  • attach a minimal code example that demonstrates the problem
  • describe the specific goals, expectations, observations

サインインしてコメントする。

回答 (2 件)

Benjamin Avants
Benjamin Avants 2014 年 5 月 13 日
You should use the cat() function.
if your images are A and B and you want to merge them so that you get AB (A on the left with be on the right) the command looks like this:
newImg = cat(2,A,B);
If you want A on top of B:
newImg = cat(1,A,B);
  8 件のコメント
Vaibhav
Vaibhav 2023 年 1 月 24 日
編集済み: Vaibhav 2023 年 1 月 24 日
I used the cat function but the new image produced is changed in color
Image Analyst
Image Analyst 2023 年 1 月 24 日
@Vaibhav it should not change the absolute color. Are both your images RGB? Or is one gray scale? Are both in a similar value range, like 0-1 or 0-255, or 0-65535? If the ranges are way different, then one may appear a lot darker than the other. If you still have problems, attach your code and both your images and create a new discussion thread.

サインインしてコメントする。


Image Analyst
Image Analyst 2014 年 5 月 13 日
Have you checked out these similar questions: http://www.mathworks.com/matlabcentral/answers/?term=tag%3A%22torn%22
  2 件のコメント
nicole
nicole 2022 年 10 月 21 日
Not all posts are similar. I've gone through several threads with no answer because they've been tagged as similar.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by