How Can I cancate the array [ ] R G B Values ?

1 回表示 (過去 30 日間)
PRIYANGA
PRIYANGA 2012 年 12 月 3 日
Hi Every body? How are you..?
I had run that following code I got the following Error...
??? Error using
==> cat
CAT argument dimensions are not consistent.
>>domr =
6 7
>> domg
domg =
5
>> domb
domb =
3
how cai I concatnate that values..?
[domr]=domse(rang1r(i1,:),dompolr,gsize,ci1r(i1),ci2r(i1),ci3r(i1),msr(i1),md,cd1r,cd2r,cd3r,mscr);
[domg]=domse(rang1g(i1,:),dompolg,gsize,ci1g(i1),ci2g(i1),ci3g(i1),msg(i1),md,cd1g,cd2g,cd3g,mscg);
[domb]=domse(rang1b(i1,:),dompolb,gsize,ci1b(i1),ci2b(i1),ci3b(i1),msb(i1),md,cd1b,cd2b,cd3b,mscb);
dom=cat(3,domr,domg,domb);
Please any one help...
Thank You so much..

採用された回答

Walter Roberson
Walter Roberson 2012 年 12 月 3 日
The red layer has 2 values. The green and blue layers have 1 value each. What shape are you expecting the result to have? Are you expecting to copy the green and blue for each red ? And later when you have larger vectors and the mismatch becomes things like 17 red and 9 green and 9 blue ?
  1 件のコメント
Jan
Jan 2012 年 12 月 3 日
Did I mention your crystal ball already? I thought it could be "right", "general" and "bottom".

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by