필터 지우기
필터 지우기

Assigning RGB values to a new 3D RGB image

조회 수: 2 (최근 30일)
t4741
t4741 2019년 9월 7일
편집: DGM 2024년 1월 31일
I am trying to apply a set of calculated RGB values as new values for a position in a m x n x 3 image. My attempt is shown in the code provided.
My error is in the line staticImage{i,j,:] = staticImage(1,j,newPixels) where i am trying to replace the layer at point i,j with the new RGB values 'newPixels'
Does anyone know how to do this?

채택된 답변

Stephen23
Stephen23 2019년 9월 7일
staticImage(i,j,:) = [R,G,B];

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by