Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to convert image data in matrix form into vector in R?

$
0
0

@sid100158 wrote:

I have one data set of a brain image in which Intensity of each pixel is given.In the data set, I have given 50x50 image.So when I have loaded the image in R I am getting 50 columns, so I have transformed into a vector to get the coordinate value of each pixel value but still I am getting same 50 columns.I want to know how I can convert the data into the more readable form.So that I can understand the picture and plot it.

flower = read.csv("flower.csv",header=FALSE)
flowervector2=as.vector(flower)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles