フィルターのクリア

why reshape command is actually needed ?

1 回表示 (過去 30 日間)
Touhidul islam
Touhidul islam 2017 年 12 月 28 日
回答済み: Star Strider 2018 年 1 月 1 日
why reshape command is actually needed in image segmentation
  4 件のコメント
Walter Roberson
Walter Roberson 2018 年 1 月 1 日
reshape() to something by 3 would be done as preparation for clustering by color, since the clustering routines expect the variables to go across the columns and that each row is a different sample.
Touhidul islam
Touhidul islam 2018 年 1 月 1 日
sorry , i couldnot understand what you have tried to say. Please, can you again explain?

サインインしてコメントする。

回答 (2 件)

Walter Roberson
Walter Roberson 2017 年 12 月 29 日
reshape() is never mandatory. There is always a way to write for loops to copy the data into the desired new shape. reshape() is just fast and convenient.

Star Strider
Star Strider 2018 年 1 月 1 日
@Touhidul islam
With the later advantage of being able to see what are apparently the entire code, what you describe is the ‘F’ matrix, formed by reshaping an image. The purpose (from the code you posted earlier today in Can anyone help me out with the following code ? (link)) appears to be to provide an easy reference for replacing NaN values by a specific random row of ‘F’ later in the code.
It would be of significant benefit to us if you would post all the relevant code so we can see it and provide you with the information you want.

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by