由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
ComputerGraphics版 - JPEG2000 Question
相关主题
这版上大家都是干那行的XDJM 帮看一下我这情况的找美国工业界的工作有戏吗?
computer vision研究需要用些什么software?请问一个判断是真人还是照片的问题
能是什么问题呢?OpenCV Could not load image file:opencv tiff
寻找计算机视觉视频处理的合作伙伴opencv可以打开mov格式的视频文件吗?
问个GDI+的问题。。请推荐免费照片处理软件
工业界的vision商业软件都用OpenCV吗?help: how to remove or hide fonts in Adobe Illustrator
做image registration, matlab和ITK哪个快?请教大家,什么软件可以画附件里面的这种图?
请教:用哪种语言做做图形化显示结果比较方便急问各位朋友,谁能给我一份ADOBE ILLUSTRATOR 的破解软件
相关话题的讨论汇总
话题: ll话题: question话题: jpeg2000话题: hl话题: lh
进入ComputerGraphics版参与讨论
1 (共1页)
z*y
发帖数: 1311
1
I use lifting based filter on an 8-bit gray scale image.
After getting the subbands: LL LH HL HH, how to illustrate them as separate
images (see attached)? Major issue is that the value out of 8-bit bound.
Thanks.
l********a
发帖数: 1154
2
is this in matlab?
result =
[ LL LH
HL HH]
if size(result)=[m,n]
then
LL = result(1:m/2,1:n/2);
LH = result(1:m/2,n/2+1:end);
HL = result(m/2+1:end,1:n/2);
HH = result(m/2+1:end,n/2+1:end);
imwrite(LL,'ll.jpg','jpg'); % save LL
...
z*y
发帖数: 1311
3
Thanks, but not work very well.
I use C.
Here is the code I generate data.
FILE *f_out = fopen("LL.dat", "wb");
fwrite(LL, sizeof(short int), 256*256, f_out);
fclose(f_out);
Then I try Matlab.
f = fopen('LL.dat', 'rb');
d = fread(f, [256,256], 'int16');
imwrite(d, 'LL.jpg', 'jpg', 'BitDepth', 16, 'Mode', 'lossless');
imwrite(d, 'LL.png', 'png', 'BitDepth', 16);
The image is not right. BTW, data LL is correct.
I verify using other ways.
Thank you for the help.
B******m
发帖数: 2643
4
呵呵,因为你行数没算对啊y*xdim+x

【在 z*y 的大作中提到】
: Thanks, but not work very well.
: I use C.
: Here is the code I generate data.
: FILE *f_out = fopen("LL.dat", "wb");
: fwrite(LL, sizeof(short int), 256*256, f_out);
: fclose(f_out);
: Then I try Matlab.
: f = fopen('LL.dat', 'rb');
: d = fread(f, [256,256], 'int16');
: imwrite(d, 'LL.jpg', 'jpg', 'BitDepth', 16, 'Mode', 'lossless');

l********a
发帖数: 1154
5
matlab这个不对,我估计你的图片宽高不是偶数,所以简单除2就不对了
得ceil/floor.这个size一下图片尺寸就可以看到了
如果纯是为了把图切开,qq截图都可以了
编程语言不限,matlab/python(PIL)方便
非要C,也可用opencv之类的操作图像方便些

【在 z*y 的大作中提到】
: Thanks, but not work very well.
: I use C.
: Here is the code I generate data.
: FILE *f_out = fopen("LL.dat", "wb");
: fwrite(LL, sizeof(short int), 256*256, f_out);
: fclose(f_out);
: Then I try Matlab.
: f = fopen('LL.dat', 'rb');
: d = fread(f, [256,256], 'int16');
: imwrite(d, 'LL.jpg', 'jpg', 'BitDepth', 16, 'Mode', 'lossless');

1 (共1页)
进入ComputerGraphics版参与讨论
相关主题
急问各位朋友,谁能给我一份ADOBE ILLUSTRATOR 的破解软件问个GDI+的问题。。
I would like to buy the following software工业界的vision商业软件都用OpenCV吗?
求指导OpenCV图像采集做image registration, matlab和ITK哪个快?
SSD caching NAS的方案请教:用哪种语言做做图形化显示结果比较方便
这版上大家都是干那行的XDJM 帮看一下我这情况的找美国工业界的工作有戏吗?
computer vision研究需要用些什么software?请问一个判断是真人还是照片的问题
能是什么问题呢?OpenCV Could not load image file:opencv tiff
寻找计算机视觉视频处理的合作伙伴opencv可以打开mov格式的视频文件吗?
相关话题的讨论汇总
话题: ll话题: question话题: jpeg2000话题: hl话题: lh