이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
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일
0 개 추천
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!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 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)
