Hello,
I removed some noises from image and show the denoised image, I have used imwrite function to save the denoised image as follow:
.....
figure(2);clf;
imshow(a,[0 255]);
imwrite(a,'abc.png','png');
but the saved image is almost blank, a white background with few dot on it, any advise
|
|
0
|
|
|
|
Reply
|
Dariush
|
11/22/2010 5:35:04 PM |
|
any solution???? is that possible to save the figure image or No,,,, pls reply
"Dariush " <persianfriend12@yahoo.com> wrote in message <ice9k8$g3t$1@fred.mathworks.com>...
> Hello,
> I removed some noises from image and show the denoised image, I have used imwrite function to save the denoised image as follow:
> ....
> figure(2);clf;
> imshow(a,[0 255]);
> imwrite(a,'abc.png','png');
>
> but the saved image is almost blank, a white background with few dot on it, any advise
|
|
0
|
|
|
|
Reply
|
Dariush
|
11/23/2010 2:27:03 PM
|
|
Well, what is the value of a?
Is it a uint8? Or a double?
|
|
0
|
|
|
|
Reply
|
ImageAnalyst
|
11/23/2010 2:29:14 PM
|
|
100 X 100 double...
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <a8ce9a2f-326d-4cdb-b2bc-b7e8478d420a@q14g2000yqe.googlegroups.com>...
> Well, what is the value of a?
> Is it a uint8? Or a double?
|
|
0
|
|
|
|
Reply
|
Dariush
|
11/23/2010 2:59:04 PM
|
|
On Nov 23, 9:59=A0am, "Dariush " <persianfrien...@yahoo.com> wrote:
> 100 X 100 double...
>
> ImageAnalyst <imageanal...@mailinator.com> wrote in message <a8ce9a2f-326=
d-4cdb-b2bc-b7e8478d4...@q14g2000yqe.googlegroups.com>...
> > Well, what is the value of a?
> > Is it a uint8? =A0Or a double?
-------------------------------------------------
Maybe PNG doesn't like doubles. Try passing "a" into mat2gray()
before you save it with imwrite().
|
|
0
|
|
|
|
Reply
|
ImageAnalyst
|
11/23/2010 3:03:27 PM
|
|
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <45bd90f8-0b4b-46ed-879f-e4a2c897ba70@s9g2000vby.googlegroups.com>...
> On Nov 23, 9:59 am, "Dariush " <persianfrien...@yahoo.com> wrote:
> > 100 X 100 double...
> >
> > ImageAnalyst <imageanal...@mailinator.com> wrote in message <a8ce9a2f-326d-4cdb-b2bc-b7e8478d4...@q14g2000yqe.googlegroups.com>...
> > > Well, what is the value of a?
> > > Is it a uint8? Or a double?
>
> -------------------------------------------------
> Maybe PNG doesn't like doubles. Try passing "a" into mat2gray()
> before you save it with imwrite().
it works, thank u so much
|
|
0
|
|
|
|
Reply
|
Dariush
|
11/23/2010 3:14:04 PM
|
|
|
5 Replies
448 Views
(page loaded in 0.058 seconds)
Similiar Articles: How to save figure image as .png - comp.soft-sys.matlabHello, I removed some noises from image and show the denoised image, I have used imwrite function to save the denoised image as follow: ..... figure(2);clf; imshow(a ... how to save PNG file with imwrite function? - comp.soft-sys.matlab ...How to save figure image as .png - comp.soft-sys.matlab how to save PNG file with imwrite function? - comp.soft-sys.matlab ... How to save figure image as .png - comp.soft ... Save output image file in a specified folder - comp.graphics.apps ...How to save figure image as .png - comp.soft-sys.matlab Save output image file in a specified folder - comp.graphics.apps ... How to save figure image as .png - comp.soft ... How to save a figure without displaying ? - comp.soft-sys.matlab ...How to save figure image as .png - comp.soft-sys.matlab How to save a figure without displaying ? - comp.soft-sys.matlab ... How to save figure image as .png - comp.soft ... saving a figure at a set resolution - comp.soft-sys.matlab ...How to save figure image as .png - comp.soft-sys.matlab saving a figure at a set resolution - comp.soft-sys.matlab ... How to save figure image as .png - comp.soft-sys ... command-line printing of figure: how to resize/rescale figure for ...How to save figure image as .png - comp.soft-sys.matlab command-line printing of figure: how to resize/rescale figure for ... How to save figure image as .png - comp.soft ... Save image as tif by using imwrite - comp.soft-sys.matlab ...I want to save in TIF format the image edited by user ... Save figure as 1 bit tif - comp.soft-sys.matlab Save image as tif by using ... how to save PNG file with imwrite ... save to specified folder - comp.soft-sys.matlabHow to save figure image as .png - comp.soft-sys.matlab Save output image file in a specified folder - comp.graphics.apps ... How to save figure image as .png - comp.soft ... Change colormap font size then export to png - comp.soft-sys ...... the colorbar font size by either commanding set(colorbar,'fontsize',14) or using the figure GUI to make the adjustment, and then save the figure as a png, or other image ... Save figure as 1 bit tif - comp.soft-sys.matlabMost, but not all, require 8 bit uint8 images. Just check the help file. ... How to save figure image as .png - comp.soft-sys.matlab... removed ... How to save figure image as .png - comp.soft-sys.matlab | Computer ...Hello, I removed some noises from image and show the denoised image, I have used imwrite function to save the denoised image as follow: ..... figure(2);clf; imshow(a ... How to save figure image as .png - Newsreader - MATLAB CentralHello, I removed some noises from image and show the denoised image, I have used imwrite function to save the denoised image as follow:.... figure(2);clf; 7/26/2012 11:18:39 PM
|