Image to Vector

22 Ansichten (letzte 30 Tage)
Ashish Bhatt
Ashish Bhatt am 18 Dez. 2011
Kommentiert: juveria fatima am 30 Mär. 2018
Hi,
How Can I convert a JPEG image into a vector?
Thanks, Ashish
  1 Kommentar
Chandra Kurniawan
Chandra Kurniawan am 18 Dez. 2011
Vectorization??
Did you mean tracing??
Something such converting raster image to vector??

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 18 Dez. 2011
It depends.
You cannot convert a "JPEG image". JPEG is a file format and files are stored sequentially always. Therefore it is a kind of vector already.
The contents of the JPEG file can be imported as array using imread:
Img = imread(FileName);
For gray-scale images this is a 2D-matrix, for RGB-JPEGs this is a [Width x Height x 3] array. You can convert both to a vector by:
ImgVector = Img(:);
% Or:
ImgVector = rehsape(Img, 1, []);
But I cannot imagine how this could be useful.
  9 Kommentare
Ashish Bhatt
Ashish Bhatt am 20 Dez. 2011
Thank you Walter. That helps.
juveria fatima
juveria fatima am 30 Mär. 2018
how to get back image from vector

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by