{
  "id": 39029,
  "title": "Read data with Matlab",
  "url": "/competitions/passenger-screening-algorithm-challenge/discussion/39029",
  "author_name": "",
  "post_date": "2017-09-05T21:15:38.404426500Z",
  "votes": 1,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hi, does anybody know how to extract and read the data for use it with Matlab? Thank you!</p>",
  "messages": [
    {
      "id": "218779",
      "postDate": "09/05/2017 21:15:38",
      "content": "<p>Hi, does anybody know how to extract and read the data for use it with Matlab? Thank you!</p>",
      "rawMarkdown": "Hi, does anybody know how to extract and read the data for use it with Matlab? Thank you!",
      "votes": null
    },
    {
      "id": "219395",
      "postDate": "09/08/2017 01:22:51",
      "content": "<p>Here is the general idea to get just the projection images (ignores the header data);</p>\n\n<pre><code>fid=fopen('1a10297e6c3101af33003e6c4f846f47.aps', 'rb');\nnum_im=16;\nx_dim=512;\ny_dim=660;\nsize_im=[x_dim y_dim];\n\nim_set=zeros(x_dim,y_dim,num_im);\n\nfseek(fid,512,'bof');\n\nfor i=1:num_im\n im_set(:,:,i)=fread(fid,size_im,'uint16');   \nend;\n\nfclose(fid);\n</code></pre>",
      "rawMarkdown": "Here is the general idea to get just the projection images (ignores the header data);\n\n    fid=fopen('1a10297e6c3101af33003e6c4f846f47.aps', 'rb');\n    num_im=16;\n    x_dim=512;\n    y_dim=660;\n    size_im=[x_dim y_dim];\n    \n    im_set=zeros(x_dim,y_dim,num_im);\n\n    fseek(fid,512,'bof');\n    \n    for i=1:num_im\n     im_set(:,:,i)=fread(fid,size_im,'uint16');   \n    end;\n\n    fclose(fid);",
      "votes": null
    },
    {
      "id": "220263",
      "postDate": "09/11/2017 16:36:54",
      "content": "<p>Thank you so so much!!\nDo you know where can I find the ground truth of that images (that is, which areas are targets and which ones are not)?</p>",
      "rawMarkdown": "Thank you so so much!!\nDo you know where can I find the ground truth of that images (that is, which areas are targets and which ones are not)?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 219395,
      "author_name": "olegktrt",
      "author_url": "",
      "post_date": "09/08/2017 01:22:51",
      "content": "<p>Here is the general idea to get just the projection images (ignores the header data);</p>\n\n<pre><code>fid=fopen('1a10297e6c3101af33003e6c4f846f47.aps', 'rb');\nnum_im=16;\nx_dim=512;\ny_dim=660;\nsize_im=[x_dim y_dim];\n\nim_set=zeros(x_dim,y_dim,num_im);\n\nfseek(fid,512,'bof');\n\nfor i=1:num_im\n im_set(:,:,i)=fread(fid,size_im,'uint16');   \nend;\n\nfclose(fid);\n</code></pre>",
      "votes": null,
      "replies": []
    },
    {
      "id": 220263,
      "author_name": "juanheredia",
      "author_url": "",
      "post_date": "09/11/2017 16:36:54",
      "content": "<p>Thank you so so much!!\nDo you know where can I find the ground truth of that images (that is, which areas are targets and which ones are not)?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "218779": "Hi, does anybody know how to extract and read the data for use it with Matlab? Thank you!",
    "219395": "Here is the general idea to get just the projection images (ignores the header data);\n\n    fid=fopen('1a10297e6c3101af33003e6c4f846f47.aps', 'rb');\n    num_im=16;\n    x_dim=512;\n    y_dim=660;\n    size_im=[x_dim y_dim];\n    \n    im_set=zeros(x_dim,y_dim,num_im);\n\n    fseek(fid,512,'bof');\n    \n    for i=1:num_im\n     im_set(:,:,i)=fread(fid,size_im,'uint16');   \n    end;\n\n    fclose(fid);",
    "220263": "Thank you so so much!!\nDo you know where can I find the ground truth of that images (that is, which areas are targets and which ones are not)?"
  },
  "source": "meta"
}