how can i split image and edit on each part at the same image ?

5 ビュー (過去 30 日間)
odai kiwan
odai kiwan 2017 年 4 月 22 日
コメント済み: Image Analyst 2017 年 4 月 22 日
i have image I=[960x1280x3] uint8 and i want to split it in to half and edit on each part at the same image like i don't want to make each part separate!!! multiply edits on each part at the same image??

採用された回答

Image Analyst
Image Analyst 2017 年 4 月 22 日
Try this:
topHalf = rgbImage(1:480, :, :);
bottomHalf = rgbImage(481:end, :, :);
Now you have it split in half into two parts and you can do your "edit". I don't understand what "i don't want to make each part separate!" means. And I don't know what you mean by multiplying your edits on each part.
  2 件のコメント
odai kiwan
odai kiwan 2017 年 4 月 22 日
thanks for you response i meant i want to make two edits at the same image not split it for two parts and make my edit on each part
Image Analyst
Image Analyst 2017 年 4 月 22 日
I don't know what that means. For example, here is an edit where I changed the red value of the pixel in row 3, column 8 to a value of 200:
rgbImage(3, 8, 1) = 200;
Is that the edit you wanted to do? If not, specify exactly what kind of edit you want.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by