現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
0 投票
I have taken a 26 image,processed,IWT,ebcot process,now i want to give 2 inputs to weighting weighting model,one is menn energy of co-efficients and other is VOI coordinates,please help
採用された回答
Walter Roberson
2011 年 12 月 31 日
I am having difficulty understanding your question as phrased. It is also not clear what bit-stream you are trying to form.
At this time could the question be simplified to "How do I convert numeric data to a bit stream?" If so then use dec2bin, possibly after having used typecast() if needed to re-represent floating point numbers as unsigned integers. dec2bin() will output a string of characters, each '0' or '1'. If you need decimal 0 and decimal 1, then you can subtract '0' from the result, as in
dec2bin(314159) - '0'
8 件のコメント
FIR
2011 年 12 月 31 日
i have an image from that i want to convert that into bit stream output
Walter Roberson
2011 年 12 月 31 日
The first step would be to define what "bit stream output" is, precisely.
The second step would be to convert your "image" to numeric data.
The third step would be to re-read my answer above and implement it.
FIR
2012 年 1 月 2 日
walter bit stream is getting the output in bitstreams=[0 1 1 0 0 1 0 etc]
Walter Roberson
2012 年 1 月 2 日
Okay, that would be the version that subtracts the character '0' from the dec2bin() result.
You will probably want to use transpose() and reshape() after the conversion to 0's and 1's.
FIR
2012 年 1 月 2 日
Walter will image compression output will give bitstream outputs
Walter Roberson
2012 年 1 月 2 日
That depends on which image compression routine you use. I have never looked at EBCOT as it is part of JPEG 2000, which I avoid looking at for patent reasons (*)
Some image compression routines produce byte-oriented outputs, and other image compression routines produce bit-oriented outputs.
If you end up with a numeric array after your image compression routine, then use dec2bin() and subtract '0' to convert to a stream of 0's and 1's.
* (The only way to find out what the JPEG 2000 patent terms say is to agree to them, and _then_ you can find out what you just agreed to. My legal department absolutely will not permit that.)
FIR
2012 年 1 月 2 日
I=imread('lena.bmp')
K=dec2bin(I);
[r c]=size(K)
J=K-0;
W=zeros(r,c);
J=K-W
i get numeric values
Walter Roberson
2012 年 1 月 2 日
K = dec2bin(I) - '0';
just like I wrote. The character, not the number.
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
タグ
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
